Commit 4bd5ae32 authored by wangp's avatar wangp

lakala

parent 2067555f
...@@ -47,18 +47,18 @@ func (l *PayController) WxNotice(c *gin.Context) { ...@@ -47,18 +47,18 @@ func (l *PayController) WxNotice(c *gin.Context) {
//fmt.Println(ph2) //fmt.Println(ph2)
//验证签名 //验证签名
_, err := verySignByPublicKey(c) //_, err := verySignByPublicKey(c)
if err != nil { //if err != nil {
fmt.Println("verySignByPublicKey err: ", err) // fmt.Println("verySignByPublicKey err: ", err)
response := new(base.ResponseDataWxNotice) // response := new(base.ResponseDataWxNotice)
response.Code = "FAIL" // response.Code = "FAIL"
response.Message = "验证签名失败" // response.Message = "验证签名失败"
base.ResponseWxNotice(c, response) // base.ResponseWxNotice(c, response)
return // return
} //}
ph := new(models.WxNoticeInput) ph := new(models.WxNoticeInput)
err = c.ShouldBindJSON(ph) err := c.ShouldBindJSON(ph)
if err != nil { if err != nil {
response := new(base.ResponseDataWxNotice) response := new(base.ResponseDataWxNotice)
response.Code = "FAIL" response.Code = "FAIL"
......
...@@ -10,7 +10,7 @@ type PlaceAnOrderParamInput struct { ...@@ -10,7 +10,7 @@ type PlaceAnOrderParamInput struct {
GoodsPrice float64 `json:"goods_price" description:"商品金额,个位为分"` GoodsPrice float64 `json:"goods_price" description:"商品金额,个位为分"`
NoticeURL string `json:"notice_url" description:"客户端回调的url"` NoticeURL string `json:"notice_url" description:"客户端回调的url"`
PayType int `json:"pay_type" description:"1: 微信,2: 支付宝, 3: 拉卡拉 4: 收钱吧"` PayType int `json:"pay_type" description:"1: 微信,2: 支付宝, 3: 拉卡拉 4: 收钱吧"`
SourceCode uint8 `json:"source_code" description:"1: 微信 Native 2:微信小程序 3:微信内支付 4:h5 跳微信 5:支付宝(web)-扫码或登录支付宝账户 6:alipay(mobile) 7:alipay(app) 9: B2C 10:bk支付宝web 11:bk 支付宝手机"` SourceCode uint8 `json:"source_code" description:"1: 微信 Native 2:微信小程序 3:微信内支付 4:h5 跳微信 5:支付宝(web)-扫码或登录支付宝账户 6:alipay(mobile) 7:alipay(app) 9: B2C 10:bk支付宝web 11:bk 支付宝手机 15:快捷支付(银行卡)""`
OpenID string `json:"open_id" description:"此参数 支付类型是 JS API 的时候 必传"` OpenID string `json:"open_id" description:"此参数 支付类型是 JS API 的时候 必传"`
WapURL string `json:"wap_url" description:"WAP网站URL地址, 支付方式为微信MWEB时 必传"` WapURL string `json:"wap_url" description:"WAP网站URL地址, 支付方式为微信MWEB时 必传"`
WapName string `json:"wap_name" description:"WAP网站名称, 支付方式为微信MWEB时 必传"` WapName string `json:"wap_name" description:"WAP网站名称, 支付方式为微信MWEB时 必传"`
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment