feat: chunk uploads
This commit is contained in:
@@ -16,9 +16,9 @@ func (client *Client) WeChat_JSApiPayRequest(ctx context.Context, payerOpenID, o
|
||||
bm := make(gopay.BodyMap)
|
||||
|
||||
bm.
|
||||
Set("sp_appid", client.conf.WeChat.AppId).
|
||||
Set("sp_mchid", client.conf.WeChat.MechID).
|
||||
Set("sub_mchid", client.conf.WeChat.SubMechID).
|
||||
Set("sp_appid", client.conf.WechatAppId).
|
||||
Set("sp_mchid", client.conf.WechatMechID).
|
||||
Set("sub_mchid", client.conf.WechatSubMechID).
|
||||
Set("description", title).
|
||||
Set("out_trade_no", orderNo).
|
||||
Set("time_expire", expire).
|
||||
@@ -45,5 +45,5 @@ func (client *Client) WeChat_JSApiPayRequest(ctx context.Context, payerOpenID, o
|
||||
return nil, errors.New("获取预支付ID失败")
|
||||
}
|
||||
|
||||
return client.WeChat.PaySignOfJSAPI(client.conf.WeChat.AppId, resp.Response.PrepayId)
|
||||
return client.WeChat.PaySignOfJSAPI(client.conf.WechatAppId, resp.Response.PrepayId)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user