正在显示
1 个修改的文件
包含
11 行增加
和
0 行删除
@@ -256,4 +256,15 @@ class Index extends Api | @@ -256,4 +256,15 @@ class Index extends Api | ||
256 | $rs = json_decode($json, true); | 256 | $rs = json_decode($json, true); |
257 | return $rs; | 257 | return $rs; |
258 | } | 258 | } |
259 | + | ||
260 | + /** | ||
261 | + * 超时取消订单 | ||
262 | + * @return void | ||
263 | + */ | ||
264 | + public function timeout_cancellation(){ | ||
265 | + //计算超时时间 | ||
266 | + $newtime=time()-43200; | ||
267 | + $order=Db::name("order")->where("create_time",$newtime)->select(); | ||
268 | + print_r($order); | ||
269 | + } | ||
259 | } | 270 | } |
-
请 注册 或 登录 后发表评论