|
@@ -95,7 +95,7 @@ class MobileController extends UserApi
|
|
|
}elseif ($data['search_type']=='precise'){
|
|
|
foreach ($data['keyword'] as $k=>$v){
|
|
|
$pos=$k+1;
|
|
|
- if($pos==1||is_null($v))continue;
|
|
|
+ if($pos==1||!$v)continue;
|
|
|
$model->where("filter_no_pos_{$pos}",$v);
|
|
|
}
|
|
|
}
|
|
@@ -253,7 +253,15 @@ class MobileController extends UserApi
|
|
|
$data=$this->_validate([
|
|
|
'id'=>['require'],
|
|
|
]);
|
|
|
+ $mobile=MobileOrder::whereNull('pay_time')->findOrFail($data['id']);
|
|
|
|
|
|
+ if($mobile['expire_time']<time()){
|
|
|
+ $this->error('订单已过期');
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ $this->success();
|
|
|
}
|
|
|
/**
|
|
|
* 订单列表
|