修改了配置文件

This commit is contained in:
2024-09-20 14:55:15 +08:00
parent 4f47c2922e
commit 301b11fa4e
2 changed files with 18 additions and 3 deletions
+6 -1
View File
@@ -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,