wugg 3 months ago
parent
commit
bc269a41e2
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/cxinv/controller/FinancialProducts.php

+ 1 - 2
app/cxinv/controller/FinancialProducts.php

@@ -9,7 +9,6 @@ use app\cxinv\model\ProductsCombind;
 use think\App;
 class FinancialProducts extends Base{
     public function __construct(App $app) {
-        $this->noLogin=["*"];
         parent::__construct($app);
         $this->model=new \app\cxinv\model\FinancialProducts();
     }
@@ -293,7 +292,7 @@ class FinancialProducts extends Base{
              if($use->isEmpty()) throw new \think\Exception("新增盘点单失败");
         }catch (\Exception $e){
             $this->model->rollback();
-            return error($e->getTrace());
+            return error($e->getMessage());
         }
         $this->model->commit();
       return success('盘点单创建成功');