This commit is contained in:
邹宗楠
2024-05-27 16:01:18 +08:00
parent 6a8aa0cfff
commit 25c8696d99

View File

@@ -22,7 +22,7 @@ type MtwmController struct {
func (c *MtwmController) onCallbackMsg(msgType string) {
c.Data["json"] = mtwmapi.Err2CallbackResponse(nil, "")
msg, callbackResponse := api.MtwmAPI.GetCallbackMsg(c.Ctx.Request)
globals.SugarLogger.Debugf("===========msg := %s", utils.Format4Output(msg, false))
if callbackResponse == nil {
if web.BConfig.RunMode != "jxgy" { // 订单查询不到所属门店默认为果园订单
vendorStoreId := msg.FormData.Get("app_poi_code")
@@ -149,8 +149,6 @@ type FinishedPickup struct {
// 订单所属门店在菜市不存在时尝试推送到果园去
func pushMTWMOrder2GY(value url.Values, msgType string) {
globals.SugarLogger.Debugf("=========pushMTWMOrder2GY := %s", utils.Format4Output(value, false))
globals.SugarLogger.Debugf("=========msgType := %s", msgType)
cl := http.Client{}
request, err := http.NewRequest(http.MethodPost, "http://callback-jxgy.jxc4.com/mtwm/"+msgType, strings.NewReader(value.Encode()))
if err != nil {