正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -265,12 +265,12 @@ class Index extends Api | @@ -265,12 +265,12 @@ class Index extends Api | ||
265 | public function timeout_cancellation(){ | 265 | public function timeout_cancellation(){ |
266 | //计算超时时间 | 266 | //计算超时时间 |
267 | $newtime=time()-43200; | 267 | $newtime=time()-43200; |
268 | - $order=Db::name("order")->where("is_pay",">",3)->where("driver_id",null)->where("create_time",">",$newtime)->select(); | 268 | + $order=Db::name("order")->where("is_pay","<",3)->where("driver_id",null)->where("create_time",">",$newtime)->select(); |
269 | foreach ($order as $k=>$v){ | 269 | foreach ($order as $k=>$v){ |
270 | $res=$this->refund($v['id']); | 270 | $res=$this->refund($v['id']); |
271 | + $order=Db::name("order")->where('id',$v['id'])->update(['is_pay'=>4]); | ||
271 | } | 272 | } |
272 | } | 273 | } |
273 | - | ||
274 | public function refund($id) | 274 | public function refund($id) |
275 | { | 275 | { |
276 | print_r($id); | 276 | print_r($id); |
-
请 注册 或 登录 后发表评论