|
@@ -610,6 +610,18 @@ func (o *OrderListDetails) SetRes(res []map[string]interface{}, queryM map[strin
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ //直播活动订单取消
|
|
|
+ if create_time.Unix() >= liveActiveStartTime && create_time.Unix() < liveActiveEndTime {
|
|
|
+ order_status := qutil.Int64All(v["order_status"])
|
|
|
+ if now_time_stamp >= liveActiveEndTime && order_status == 0 {
|
|
|
+ //数据库更改
|
|
|
+ if util.Mysql.Update(tableName_order, queryM, map[string]interface{}{"order_status": -2}) {
|
|
|
+ //前端传参更改
|
|
|
+ v["order_status"] = -2
|
|
|
+ log.Println("直播活动结束,取消订单", v["order_code"])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
if v["filter_publishtime"] != nil {
|
|
|
filter_publishtime := v["filter_publishtime"]
|
|
|
if filter_publishtime != nil {
|