提交被注释的代码

This commit is contained in:
wong
2025-04-18 10:44:50 +08:00
parent bf0bcd6f71
commit b16786c74a

View File

@@ -100,6 +100,7 @@ class AccountController extends BaseController
$memo = $this->request->param('memo', '');
$departmentId = $this->request->param('departmentId', 0);
// 参数验证
if (empty($userName)) {
return errorJson('用户名不能为空');
@@ -121,6 +122,14 @@ class AccountController extends BaseController
return errorJson('公司ID不能为空');
}
// 检查账号是否已存在
$existingAccount = CompanyAccountModel::where('userName', $userName)->find();
if(!empty($existingAccount)){
return successJson($existingAccount);
}
// 构建请求参数
$params = [
'userName' => $userName,