|
@@ -113,8 +113,8 @@ class EndOrderAdminTask
|
|
Db::beginTransaction();
|
|
Db::beginTransaction();
|
|
try {
|
|
try {
|
|
//ad 变更状态为已经审核但是不生效,或者删除订单,或者加入别的状态:比如过期
|
|
//ad 变更状态为已经审核但是不生效,或者删除订单,或者加入别的状态:比如过期
|
|
- OrderAd::whereIn('order_id', $data)->update(['status' => 1]);
|
|
|
|
- OrderAd::whereIn('order_id', $data)->update(['status' => 1]);
|
|
|
|
|
|
+ OrderAd::whereIn('order_id', $data)->update(['status' => 1,'ad_status'=>8]);
|
|
|
|
+ OrderAd::whereIn('order_id', $data)->update(['status' => 1]);
|
|
$pid = OrderAd::whereIn('order_id', $data)->pluck('pid')->toArray();
|
|
$pid = OrderAd::whereIn('order_id', $data)->pluck('pid')->toArray();
|
|
Ad::whereIn('pid', $pid)->update(['status' => 1]);
|
|
Ad::whereIn('pid', $pid)->update(['status' => 1]);
|
|
Db::commit();
|
|
Db::commit();
|