1
This commit is contained in:
@@ -291,6 +291,12 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
|
||||
if order.StoreID > math.MaxInt32 {
|
||||
order.StoreID = 0
|
||||
}
|
||||
|
||||
sendFeeDetail := utils.MustInterface2Int64(orderMap["send_fee_detail"].(map[string]interface{})["one_on_one_delivery_fee"])
|
||||
if sendFeeDetail > 0 {
|
||||
order.CouponIDs += ",11003"
|
||||
}
|
||||
|
||||
order.Status = p.getStatusFromVendorStatus(order.VendorStatus)
|
||||
if order.Status >= model.OrderStatusEndBegin {
|
||||
order.OrderFinishedAt = time.Now()
|
||||
|
||||
@@ -322,7 +322,9 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
|
||||
tagList := utils.Interface2Int64List(orderData["order_tag_list"].([]interface{}))
|
||||
tagListStr := make([]string, len(tagList), len(tagList))
|
||||
for _, v := range tagList {
|
||||
tagListStr = append(tagListStr, utils.Int64ToStr(v))
|
||||
if v == 11003 || v == 11002 { // 主单模式1v1急送订单
|
||||
tagListStr = append(tagListStr, utils.Int64ToStr(v))
|
||||
}
|
||||
}
|
||||
order.CouponIDs = strings.Join(tagListStr, ",")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user