|
@@ -384,13 +384,6 @@ func (this *WechatCommonController) GetSmsCode() {
|
|
|
br.Success = true
|
|
|
}
|
|
|
|
|
|
-//func init() {
|
|
|
-// itemToken, err := services.WxGetToken()
|
|
|
-// fmt.Println(err)
|
|
|
-// fmt.Println(itemToken.AccessToken)
|
|
|
-//
|
|
|
-//}
|
|
|
-
|
|
|
// @Title 微信获取用户绑定的手机号
|
|
|
// @Description 微信获取用户绑定的手机号接口
|
|
|
// @Param Code query string true "微信唯一编码code"
|
|
@@ -447,3 +440,20 @@ func (this *WechatController) Getuserphonenumber() {
|
|
|
br.Msg = "登录成功"
|
|
|
//br.Data = resp
|
|
|
}
|
|
|
+
|
|
|
+// @Title 微信付款回调接口
|
|
|
+// @Description 微信付款回调接口
|
|
|
+// @Success 200 {object} models.WxLoginResp
|
|
|
+// @router /wxpay/notify [post]
|
|
|
+func (this *WechatCommonController) WxpayNotify() {
|
|
|
+ body := this.Ctx.Input.RequestBody
|
|
|
+ utils.FileLog.Info("wechat notify:" + string(body))
|
|
|
+ item := new(models.CygxShanghaiCompanyLog)
|
|
|
+ item.CreateTime = time.Now()
|
|
|
+ //item.Body = jsonCompany
|
|
|
+ item.Result = string(body)
|
|
|
+
|
|
|
+ fmt.Println(item.Result)
|
|
|
+
|
|
|
+ go models.AddCygxShanghaiCompanyLog(item)
|
|
|
+}
|