diff --git a/app/task/svc/svc_hw_order.go b/app/task/svc/svc_hw_order.go index e72f72a..8d68aa5 100644 --- a/app/task/svc/svc_hw_order.go +++ b/app/task/svc/svc_hw_order.go @@ -136,13 +136,13 @@ func AddOrder(method string, order map[string]interface{}) { if utils.AnyToFloat64(order["total_rebate"]) == 0 { order["total_rebate"] = order["rebate"] } - if order["product_detail"] == "" { + if order["product_detail"] == "" && order["product_name"] != "" { order["product_detail"] = order["product_name"] } - if order["product_detail"] == "" { + if order["product_detail"] == "" && order["cinema_name"] != "" { order["product_detail"] = utils.AnyToString(order["cinema_name"]) + "-" + utils.AnyToString(order["movie_name"]) } - if order["product_detail"] == "" { + if order["product_detail"] == "" && order["delivery_brand_name"] != "" { order["product_detail"] = utils.AnyToString(order["delivery_brand_name"]) + "-" + utils.AnyToString(order["delivery_goods_name"]) } var ord = &model.HwOrder{