1
This commit is contained in:
@@ -122,6 +122,10 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
|
||||
// 因为美团外卖不能自动设置商家门店号,且只能通过商家门店号来访问门店,
|
||||
// 为了在后台设置简单一致,把app_poi_code直接当成平台门店号使用(即在后台设置时,平台门店号与商家门店号一样)
|
||||
// 订单中wm_poi_id实际来平台门店号,app_poi_code为商家门店号,这样一来,这两个就相同了
|
||||
|
||||
//_修改为,
|
||||
caution := strings.ReplaceAll(utils.Interface2String(result["caution"]), "_", ",")
|
||||
|
||||
order = &model.GoodsOrder{
|
||||
VendorOrderID: vendorOrderID,
|
||||
// VendorOrderID2: utils.Int64ToStr(utils.MustInterface2Int64(result["wm_order_id_view"])),
|
||||
@@ -130,12 +134,13 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
|
||||
StoreID: 0,
|
||||
// VendorStoreID: utils.Int64ToStr(utils.MustInterface2Int64(result["wm_poi_id"])),
|
||||
// StoreID: int(utils.Str2Int64WithDefault(utils.Interface2String(result["app_poi_code"]), 0)),
|
||||
StoreName: result["wm_poi_name"].(string),
|
||||
ConsigneeName: result["recipient_name"].(string),
|
||||
ConsigneeMobile: jxutils.FormalizeMobile(result["recipient_phone"].(string)),
|
||||
ConsigneeAddress: result["recipient_address"].(string),
|
||||
CoordinateType: model.CoordinateTypeMars,
|
||||
BuyerComment: utils.TrimBlankChar(utils.Interface2String(result["caution"])),
|
||||
StoreName: result["wm_poi_name"].(string),
|
||||
ConsigneeName: result["recipient_name"].(string),
|
||||
ConsigneeMobile: jxutils.FormalizeMobile(result["recipient_phone"].(string)),
|
||||
ConsigneeAddress: result["recipient_address"].(string),
|
||||
CoordinateType: model.CoordinateTypeMars,
|
||||
//BuyerComment: utils.TrimBlankChar(utils.Interface2String(result["caution"])),
|
||||
BuyerComment: utils.TrimBlankChar(caution),
|
||||
ExpectedDeliveredTime: getTimeFromTimestamp(utils.Interface2Int64WithDefault(result["delivery_time"], 0)),
|
||||
PickDeadline: utils.DefaultTimeValue,
|
||||
VendorStatus: utils.Int64ToStr(utils.MustInterface2Int64(result["status"])),
|
||||
|
||||
Reference in New Issue
Block a user