|
@@ -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('盘点单创建成功');
|