修改了配置文件
This commit is contained in:
@@ -152,9 +152,14 @@ func (r *Pay) GetPayOrder(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
appId := config.C.Wechat.AppId
|
||||
if config.C.Env == "dev" {
|
||||
appId = config.C.Wechat.TestPayAppId
|
||||
}
|
||||
|
||||
// 处理返回数据
|
||||
g := app.PayOrderDataResponse{
|
||||
AppId: config.C.Wechat.TestPayAppId,
|
||||
AppId: appId,
|
||||
Total: paymentAmountTotal,
|
||||
Description: "肝病算一算",
|
||||
OpenId: user.OpenId,
|
||||
|
||||
Reference in New Issue
Block a user