xxxrrrdddd 3 년 전
부모
커밋
8fd5f45994
2개의 변경된 파일365개의 추가작업 그리고 213개의 파일을 삭제
  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();
     }
     /**
      * 订单列表

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 356 - 212
public/api.html


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.