18 lines
782 B
PHP
18 lines
782 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace app\common\service\esign;
|
|
|
|
final class DoctorEsignAuthorizationRequired extends \DomainException
|
|
{
|
|
public function __construct(public readonly string $reason)
|
|
{
|
|
parent::__construct(match ($reason) {
|
|
'exhausted' => '医生实名和证书已保存。e签宝签署授权次数已用完,请在账号菜单查看快捷签授权',
|
|
'expired' => '医生实名和证书已保存。快捷签授权已到期,请在账号菜单续期',
|
|
'invalid' => '医生实名和证书已保存。e签宝签署授权已失效,请在账号菜单检查授权',
|
|
default => '医生实名和证书已保存。请在账号菜单的「医生电子签署身份」中授权快捷签',
|
|
});
|
|
}
|
|
}
|