feat(admin): 完善后台角色管理与权限同步,新增当前管理员信息接口
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user