mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-04-29 14:34:27 +08:00
支付模块重构完成
This commit is contained in:
@@ -74,6 +74,7 @@ func (s *WxPayService) Pay(params PayRequest) (string, error) {
|
||||
bm.Set("total", utils.IntValue(params.TotalFee, 0)).
|
||||
Set("currency", "CNY")
|
||||
})
|
||||
logger.Debugf("wxpay params: %+v", bm)
|
||||
if params.Device == "mobile" {
|
||||
bm.SetBodyMap("scene_info", func(bm gopay.BodyMap) {
|
||||
bm.Set("payer_client_ip", params.ClientIP)
|
||||
|
||||
Reference in New Issue
Block a user