|
@@ -45,7 +45,8 @@ class Timedtask extends Controller
|
|
|
* 订单过期
|
|
|
*/
|
|
|
public function checkshoporder(){
|
|
|
- $time = date('Y-m-d H:i:s',time()-(15*60));
|
|
|
+ $config = SystemConfig('merchant_config');
|
|
|
+ $time = date('Y-m-d H:i:s',time()-($config['cancellation_time']*60));
|
|
|
ShopOrder::mk()->where('status',2)->where('create_at','<',$time)->chunk(20,function ($list){
|
|
|
$list = $list->toArray();
|
|
|
foreach ($list as &$v){
|