Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
47fa66e9e4
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      app/task/svc/svc_hw_order.go

+ 3
- 3
app/task/svc/svc_hw_order.go View File

@@ -136,13 +136,13 @@ func AddOrder(method string, order map[string]interface{}) {
if utils.AnyToFloat64(order["total_rebate"]) == 0 { if utils.AnyToFloat64(order["total_rebate"]) == 0 {
order["total_rebate"] = order["rebate"] order["total_rebate"] = order["rebate"]
} }
if order["product_detail"] == "" && order["product_name"] != "" {
if (order["product_detail"] == nil || order["product_detail"] == "" || order["product_detail"] == "<nil>") && order["product_name"] != nil {
order["product_detail"] = order["product_name"] order["product_detail"] = order["product_name"]
} }
if order["product_detail"] == "" && order["cinema_name"] != "" {
if (order["product_detail"] == nil || order["product_detail"] == "" || order["product_detail"] == "<nil>") && order["cinema_name"] != nil {
order["product_detail"] = utils.AnyToString(order["cinema_name"]) + "-" + utils.AnyToString(order["movie_name"]) order["product_detail"] = utils.AnyToString(order["cinema_name"]) + "-" + utils.AnyToString(order["movie_name"])
} }
if order["product_detail"] == "" && order["delivery_brand_name"] != "" {
if (order["product_detail"] == nil || order["product_detail"] == "" || order["product_detail"] == "<nil>-<nil>" || order["product_detail"] == "<nil>") && order["delivery_brand_name"] != "" {
order["product_detail"] = utils.AnyToString(order["delivery_brand_name"]) + "-" + utils.AnyToString(order["delivery_goods_name"]) order["product_detail"] = utils.AnyToString(order["delivery_brand_name"]) + "-" + utils.AnyToString(order["delivery_goods_name"])
} }
var ord = &model.HwOrder{ var ord = &model.HwOrder{


Loading…
Cancel
Save