feat(admin): 完善后台角色管理与权限同步,新增当前管理员信息接口

This commit is contained in:
2026-05-19 14:39:54 +08:00
parent 063cb98311
commit 057ddecaa1
30 changed files with 1286 additions and 124 deletions

View File

@@ -322,7 +322,11 @@ final class LotteryTransferService
string $action,
string $remark = '',
): void {
if ($order->status !== self::ST_PENDING_RECONCILE) {
$allowedStatuses = $action === 'manually_process'
? [self::ST_PROCESSING, self::ST_FAILED, self::ST_PENDING_RECONCILE]
: [self::ST_PENDING_RECONCILE];
if (! in_array($order->status, $allowedStatuses, true)) {
throw new WalletOperationException(
'order_not_pending_reconcile',
ErrorCode::WalletExternalRejected->value,