作者 郭文星

123

@@ -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 }