|
@@ -30,7 +30,7 @@ class AppiontController extends Controller
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- public function getAppiontInfo()
|
|
|
|
|
|
+ public function getAppiontInfo()
|
|
{
|
|
{
|
|
// 允许 $originarr 数组内的 域名跨域访问
|
|
// 允许 $originarr 数组内的 域名跨域访问
|
|
header('Access-Control-Allow-Origin:*');
|
|
header('Access-Control-Allow-Origin:*');
|
|
@@ -155,4 +155,17 @@ class AppiontController extends Controller
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public function orverTime()
|
|
|
|
+ {
|
|
|
|
+ $st = strtotime('2020-02-25 18:00:00');
|
|
|
|
+ $orders = Order::select('id')
|
|
|
|
+ ->where(['product_type'=>4,'order_status'=>7])
|
|
|
|
+ ->where('appoint_end_time','<',$st)->get();
|
|
|
|
+ foreach ($orders as $order){
|
|
|
|
+ Order::where('id',$order->id)->update(['order_status'=>4]);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|