作者 郭文星

123123

... ... @@ -264,7 +264,7 @@ class Index extends Api
public function timeout_cancellation(){
//计算超时时间
$newtime=time()-43200;
$order=Db::name("order")->where("driver_id",null)->where("create_time",">",$newtime)->select();
$order=Db::name("order")->where("is_pay",">",3)->where("driver_id",null)->where("create_time",">",$newtime)->select();
foreach ($order as $k=>$v){
$res=$this->refund($v['id']);
}
... ...