调整文章录入
This commit is contained in:
parent
eb86ede96b
commit
22793d8ec3
@ -268,9 +268,9 @@ class CompanyController extends BaseAdminController
|
|||||||
* @throws \think\db\exception\DbException
|
* @throws \think\db\exception\DbException
|
||||||
* @throws \think\db\exception\ModelNotFoundException
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
*/
|
*/
|
||||||
public function subordinate($id)
|
public function subordinate($company_id)
|
||||||
{
|
{
|
||||||
$company = Company::findOrEmpty($id);
|
$company = Company::findOrEmpty($company_id);
|
||||||
$result = loopGetChild(Company::class, $company->id, 'level_one');
|
$result = loopGetChild(Company::class, $company->id, 'level_one');
|
||||||
return $this->success('success', $result, 1, 1);
|
return $this->success('success', $result, 1, 1);
|
||||||
}
|
}
|
||||||
|
@ -45,6 +45,8 @@ class ArticleLogic extends BaseLogic
|
|||||||
'cid' => $params['cid'],
|
'cid' => $params['cid'],
|
||||||
'is_show' => $params['is_show'],
|
'is_show' => $params['is_show'],
|
||||||
'content' => $params['content'] ?? '',
|
'content' => $params['content'] ?? '',
|
||||||
|
'admin_id' => request()->adminInfo['id'] ?? 0,
|
||||||
|
'company_id' => request()->adminInfo['company_id'] ?? 0,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user