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