1.压注记录修改为游玩记录
2.测试结算并测试 3.备份数据库
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user