管理员列表支持解除电子签署身份,处理同一实名绑定冲突
e签宝 对同一证件只签发一个签署账号,同一实名在另一后台账号认证时会绑定冲突。 - 新增 auth.admin/esignUnbind:清除目标账号在当前 e签宝 应用下的签署账号绑定、 在途认证与快捷签授权;有在途操作时拒绝;不注销 e签宝 账号,已签处方不受影响 - 该接口加入 AuthMiddleware 强制鉴权列表,菜单未登记时也不放行; 迁移 2026_11_27_admin_esign_unbind_menu.sql 登记按钮权限,默认仅超级管理员可用 - 管理员列表显示「签署身份」并提供「解除签署」按钮 - 绑定冲突提示指明占用的后台账号(名称 + ID) - 医师认证失败日志把字段写进消息正文(ThinkPHP 不落盘 context) Co-Authored-By: Claude Opus 5 (1M context) <[EMAIL]>
This commit is contained in:
co-authored by
Claude Opus 5 (1M context)
parent
e4d788ed32
commit
2019f9dca1
@@ -27,6 +27,7 @@ use app\common\model\dept\Dept;
|
||||
use app\common\model\dept\Jobs;
|
||||
use app\common\model\doctor\Appointment;
|
||||
use app\common\model\tcm\Diagnosis;
|
||||
use app\common\service\esign\DoctorEsignIdentityService;
|
||||
use think\facade\Db;
|
||||
|
||||
/**
|
||||
@@ -247,6 +248,12 @@ class AdminLists extends BaseAdminDataLists implements ListsExtendInterface, Lis
|
||||
$adminLists[$k]['jobs_name'] = trim($jobsName, '/');
|
||||
}
|
||||
|
||||
// 当前 e签宝 应用下已绑定的签署实名,供管理员解除改绑
|
||||
$signerNames = DoctorEsignIdentityService::signerNames(array_column($adminLists, 'id'));
|
||||
foreach ($adminLists as $k => $v) {
|
||||
$adminLists[$k]['esign_signer_name'] = $signerNames[$v['id']] ?? '';
|
||||
}
|
||||
|
||||
return $adminLists;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user