修改退差价结算

This commit is contained in:
邹宗楠
2024-06-06 14:22:06 +08:00
parent f16eda4bde
commit fa2b4bb250
5 changed files with 29 additions and 41 deletions

View File

@@ -18,35 +18,6 @@ func (c *MtwmController) onCallbackMsg(msgType string) {
c.Data["json"] = mtwmapi.Err2CallbackResponse(nil, "")
msg, callbackResponse := api.MtwmAPI.GetCallbackMsg(c.Ctx.Request)
if callbackResponse == nil {
// 定时任务在拉去,暂时不推送了
//if web.BConfig.RunMode != "jxgy" { // 订单查询不到所属门店默认为果园订单
// vendorStoreId := msg.FormData.Get("app_poi_code")
// if vendorStoreId == "" {
// vendorStoreId = msg.FormData.Get("wm_poi_id")
// }
// if msgType == mtwmapi.MsgTypeOrderFinishedPickup {
// finishedPickup := FinishedPickup{}
// json.Unmarshal([]byte(msg.FormData.Get("pick_up_data")), &finishedPickup)
// vendorStoreId = finishedPickup.AppPoiCode
// }
// if vendorStoreId != "" {
// storeDetail, err2 := dao.GetStoreDetailByVendorStoreID(dao.GetDB(), vendorStoreId, model.VendorIDMTWM, "")
//
// if storeDetail == nil {
// // 推送到果园
// if vendorStoreId == "9472886" {
// globals.SugarLogger.Debugf("=====store:%s", utils.Format4Output(storeDetail, false))
// globals.SugarLogger.Debugf("=====storeerr2:%s", utils.Format4Output(err2, false))
// globals.SugarLogger.Debugf("=====msg.FormData:%s", utils.Format4Output(msg.FormData, false))
// globals.SugarLogger.Debugf("=====msgType:%s", utils.Format4Output(msgType, false))
// }
// pushMTWMOrder2GY(msg.FormData, msgType)
// c.Data["json"] = mtwmapi.Err2CallbackResponse(nil, "")
// c.ServeJSON()
// return
// }
// }
//}
callbackResponse = mtwm.OnCallbackMsg(msg, msgType)
if callbackResponse == nil {
callbackResponse = mtwmapi.Err2CallbackResponse(nil, "")