xxxrrrdddd 3 years ago
parent
commit
8fd5f45994
2 changed files with 365 additions and 213 deletions
  1. 9 1
      application/api/controller/MobileController.php
  2. 356 212
      public/api.html

+ 9 - 1
application/api/controller/MobileController.php

@@ -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();
     }
     /**
      * 订单列表

File diff suppressed because it is too large
+ 356 - 212
public/api.html


Some files were not shown because too many files changed in this diff