1
This commit is contained in:
@@ -250,7 +250,6 @@ func (c *PurchaseHandler) onAfsOrderMsg(msg *mtwmapi.CallbackMsg) (retVal *mtwma
|
||||
order.NewEarningPrice = order.EarningPrice
|
||||
}
|
||||
}
|
||||
globals.SugarLogger.Debugf("-----order.ShopPrice3:=%s,%d,%d", order.VendorOrderID, order.ShopPrice, order.NewEarningPrice)
|
||||
dao.UpdateEntity(db, order, "TotalShopMoney", "ShopPrice", "EarningPrice", "NewEarningPrice")
|
||||
} else {
|
||||
globals.SugarLogger.Debugf("美团平台售后获取退款金额信息错误: = %v", err)
|
||||
|
||||
@@ -4,7 +4,6 @@ import (
|
||||
"encoding/json"
|
||||
"git.rosy.net.cn/baseapi/platformapi/dingdingapi"
|
||||
"git.rosy.net.cn/baseapi/platformapi/mtwmapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/ddmsg"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||
@@ -25,7 +24,6 @@ type MtwmController struct {
|
||||
}
|
||||
|
||||
var MTWMVendorStoreIDMap = new(sync.Map)
|
||||
var MTWMVendorStoreIDDontHaveMap = make(map[string]string, 1000)
|
||||
|
||||
func (c *MtwmController) onCallbackMsg(msgType string) {
|
||||
msg, callbackResponse := api.MtwmAPI.GetCallbackMsg(c.Ctx.Request)
|
||||
@@ -43,7 +41,6 @@ func (c *MtwmController) onCallbackMsg(msgType string) {
|
||||
if _, have := MTWMVendorStoreIDMap.Load(vendorStoreId); vendorStoreId != "" && !have {
|
||||
storeDetail, _ := dao.GetStoreDetailByVendorStoreID(dao.GetDB(), vendorStoreId, model.VendorIDMTWM, "")
|
||||
if storeDetail == nil {
|
||||
MTWMVendorStoreIDDontHaveMap[vendorStoreId] = "2"
|
||||
switch web.BConfig.RunMode {
|
||||
case model.ServerTypeVegetable, "dev":
|
||||
callbackResponse = pushMTWMOrder2GY(msg.FormData, msgType, model.ServerTypeFruits)
|
||||
@@ -53,10 +50,6 @@ func (c *MtwmController) onCallbackMsg(msgType string) {
|
||||
callbackResponse = mtwmapi.Err2CallbackResponse(nil, "") // mtwmapi.Err2CallbackResponse(fmt.Errorf("美团菜市推果园,果园退超市未找到门店cmd:%s,storeId:%s", msgType, vendorStoreId), "")
|
||||
}
|
||||
|
||||
if time.Now().Hour()%2 == 0 {
|
||||
globals.SugarLogger.Debugf("MTWMVendorStoreIDDontHaveMap := %s", utils.Format4Output(MTWMVendorStoreIDDontHaveMap, false))
|
||||
}
|
||||
//c.Data["json"] = callbackResponse
|
||||
c.Data["json"] = mtwmapi.Err2CallbackResponse(nil, "")
|
||||
c.ServeJSON()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user