|
@@ -462,7 +462,35 @@ func (this *WechatCommonController) WxpayNotify() {
|
|
|
if itemNotify.OutTradeNo != "" {
|
|
|
go services.HandleOrderHandle(itemNotify)
|
|
|
}
|
|
|
- br.Data = itemNotify
|
|
|
+ //br.Data = itemNotify
|
|
|
+ br.Ret = 200
|
|
|
+ br.Success = true
|
|
|
+}
|
|
|
+
|
|
|
+// @Title 微信付款回调接口
|
|
|
+// @Description 微信付款回调接口
|
|
|
+// @Success 200 {object} models.WxLoginResp
|
|
|
+// @router /wxpay/refunds/notify [post]
|
|
|
+func (this *WechatCommonController) WxpayRefundsNotify() {
|
|
|
+ br := new(models.BaseResponse).Init()
|
|
|
+ defer func() {
|
|
|
+ this.Data["json"] = br
|
|
|
+ this.ServeJSON()
|
|
|
+ }()
|
|
|
+ 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)
|
|
|
+ //return
|
|
|
+ go models.AddCygxShanghaiCompanyLog(item)
|
|
|
+ //itemNotify := services.WxDecodeNotify(body)
|
|
|
+ //if itemNotify.OutTradeNo != "" {
|
|
|
+ // go services.HandleOrderHandle(itemNotify)
|
|
|
+ //}
|
|
|
+ //br.Data = itemNotify
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
}
|