1.压注记录修改为游玩记录

2.测试结算并测试
3.备份数据库
This commit is contained in:
2026-04-23 17:21:02 +08:00
parent 1531115a26
commit f2b4dab54f
20 changed files with 2130 additions and 94 deletions

View File

@@ -27,7 +27,15 @@ class AdminWalletService
return Db::name('admin_wallet')->where('admin_id', $adminId)->find() ?: [];
}
public static function creditCommission(int $adminId, ?int $channelId, string $amount, string $refType, int $refId, string $remark): void
public static function creditCommission(
int $adminId,
?int $channelId,
string $amount,
string $refType,
int $refId,
string $remark,
?int $operatorAdminId = null
): void
{
$wallet = self::ensureWallet($adminId);
$before = strval($wallet['balance'] ?? '0.00');
@@ -49,7 +57,7 @@ class AdminWalletService
'ref_type' => $refType,
'ref_id' => $refId,
'idempotency_key' => 'commission_income_' . $adminId . '_' . $refId,
'operator_admin_id' => null,
'operator_admin_id' => $operatorAdminId,
'remark' => $remark,
'create_time' => $now,
]);