liyaozhi
2025-11-27 d729c91f610c8902fcec2444df6cac7b1c2e1002
admin/app/branch/controller/auth/User.php
@@ -37,7 +37,7 @@
        $data = $this->postData();
        $data['branch_id'] = $this->getBranchId();
        $model = new UserModel();
        $num = $model->getUserName(['is_delete'=>0,'user_name' => $data['user_name']]);
        $num = $model->getUserName(['is_delete' => 0,'user_name' => $data['user_name']]);
        if ($num > 0) {
            return $this->renderError('用户名已存在');
        }