@@ -102,7 +102,7 @@ class FileController extends BaseAdminController
*/
public function addCate()
{
- $params = (new FileValidate())->post()->goCheck('addCate');
+ $params = (new FileValidate())->post()->goCheck('addCate',['tenant_id'=>$this->adminInfo['tenant_id']]);
FileLogic::addCate($params);
return $this->success('添加成功', [], 1, 1);
}
@@ -86,6 +86,7 @@ class FileLogic extends BaseLogic
public static function addCate($params)
TenantFileCate::create([
+ 'tenant_id'=> $params['tenant_id'],
'type' => $params['type'],
'pid' => $params['pid'],
'name' => $params['name']