|
|
@@ -12,7 +12,6 @@ import ( |
|
|
|
"fmt" |
|
|
|
"github.com/gin-gonic/gin" |
|
|
|
"github.com/wechatpay-apiv3/wechatpay-go/utils" |
|
|
|
"time" |
|
|
|
) |
|
|
|
|
|
|
|
func AlipayJsApiCallBack(c *gin.Context) { |
|
|
@@ -72,8 +71,12 @@ func WxJsApiCallBack(c *gin.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
utils2.FilePutContents("WxJsApiCallBack", utils2.SerializeStr(resp)) |
|
|
|
successTime, _ := time.ParseInLocation("2006-01-02 15:04:05", resp.SuccessTime, time.Local) |
|
|
|
_, err = svc.DealCentralKitchenForSchoolOrderCallBackForWx(resp.OutTradeNo, resp.TransactionId, resp.TradeState, successTime.Format("2006-01-02 15:04:05")) |
|
|
|
successTime, err := utils2.ConvertWechatTime(resp.SuccessTime) |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
_, err = svc.DealCentralKitchenForSchoolOrderCallBackForWx(resp.OutTradeNo, resp.TransactionId, resp.TradeState, successTime) |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR, err.Error()) |
|
|
|
return |
|
|
|