xxxrrrdddd 2 years ago
parent
commit
49d1be0c25
2 changed files with 3 additions and 1 deletions
  1. 2 0
      application/api/controller/MobileController.php
  2. 1 1
      application/common.php

+ 2 - 0
application/api/controller/MobileController.php

@@ -81,6 +81,7 @@ class MobileController extends UserApi
      */
     public function list(){
         $data=input();
+        $chanId=getChanId();
         $this->validate($data,[
             'keyword'=>['max:11'],
             'num_max'=>['integer','between:0,9'],
@@ -182,6 +183,7 @@ class MobileController extends UserApi
             }
         }
 
+
         $list=$model->paginate(input('limit',15));
         $this->success('',$list);
     }

+ 1 - 1
application/common.php

@@ -608,7 +608,7 @@ function buildUrl($url){
 function getChanId(){
     $id=input('chanId/d');
     if($id=='kuaishou'){
-        throw_user('禁止下单');
+        return 0;
     }
     if(!$id){
         return 0;