Ai
1 Star 0 Fork 0

vibly/wechat-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
native_url.go 608 Bytes
一键复制 编辑 原始数据 按行查看 历史
夏雨天 提交于 2023-05-12 08:37 +08:00 . init
package core
import (
"net/url"
)
// 扫码原生支付模式1的地址
func NativeURL1(appId, mchId, productId, timestamp, nonceStr, apiKey string) string {
m := make(map[string]string, 5)
m["appid"] = appId
m["mch_id"] = mchId
m["product_id"] = productId
m["time_stamp"] = timestamp
m["nonce_str"] = nonceStr
return "weixin://wxpay/bizpayurl?sign=" + Sign(m, apiKey, nil) +
"&appid=" + url.QueryEscape(appId) +
"&mch_id=" + url.QueryEscape(mchId) +
"&product_id=" + url.QueryEscape(productId) +
"&time_stamp=" + url.QueryEscape(timestamp) +
"&nonce_str=" + url.QueryEscape(nonceStr)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/vibly/wechat-sdk.git
git@gitee.com:vibly/wechat-sdk.git
vibly
wechat-sdk
wechat-sdk
v1.0.0

搜索帮助