超管后台 - 对接新建项目

This commit is contained in:
柳清爽
2025-04-15 17:00:25 +08:00
parent 00aa18951e
commit 4581ef5ee1
2 changed files with 6 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ class CompanyController extends Controller
public function create()
{
// 获取参数
$params = Request::only(['name', 'nickname', 'account', 'password', 'realName', 'memo']);
$params = Request::only(['name', 'nickname', 'account', 'password', 'realName', 'description']);
try {
// 开启事务
@@ -33,7 +33,7 @@ class CompanyController extends Controller
// 1. 调用创建部门接口
$departmentResponse = $curl->setMethod('post')->send('v1/api/account/department/create', [
'name' => $params['name'],
'memo' => $params['memo'] ?: '',
'memo' => $params['description'] ?: '',
]);
$departmentData = json_decode($departmentResponse, true);