Browse Source

fix:你为绑定供应商

super-yimizi 1 month ago
parent
commit
8cd5b94506
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/inspection/Order.php

+ 1 - 1
application/api/controller/inspection/Order.php

@@ -65,7 +65,7 @@ class Order extends Base
               $this->error($validate->getError());
               $this->error($validate->getError());
           }        
           }        
           // 设置默认值
           // 设置默认值
-          $userId = $this->auth->id;
+          $userId = 0;
           $param['page']     = $param['page'] ?? 1;
           $param['page']     = $param['page'] ?? 1;
           $param['page_size'] = $param['page_size'] ?? 10;
           $param['page_size'] = $param['page_size'] ?? 10;
           $status   = $param['status'] ?? 0; // 默认为0(全部订单)
           $status   = $param['status'] ?? 0; // 默认为0(全部订单)