fix(withdraw): 修复提现台账导出PHP8兼容性与页面崩溃问题,统一大余额与导出体验
这个提交包含在:
@@ -7,7 +7,7 @@ use app\admin\model\shopro\user\User as UserModel;
|
||||
use addons\shopro\service\Wallet;
|
||||
|
||||
/**
|
||||
* 历史收益全量结转至商城余额服务
|
||||
* 历史收益全量结转至钱包余额服务
|
||||
*/
|
||||
class WalletMigrationService
|
||||
{
|
||||
@@ -94,14 +94,14 @@ class WalletMigrationService
|
||||
// 1. 扣减佣金钱包
|
||||
Wallet::change($user, 'commission', -$amount, 'transfer_to_money', [
|
||||
'batch_migration' => 1,
|
||||
'reason' => '全量历史收益结转至商城余额',
|
||||
], '收益结转至商城余额');
|
||||
'reason' => '全量历史收益结转至钱包余额',
|
||||
], '收益结转至钱包余额');
|
||||
|
||||
// 2. 增加商城余额
|
||||
// 2. 增加钱包余额
|
||||
Wallet::change($user, 'money', $amount, 'transfer_by_commission', [
|
||||
'batch_migration' => 1,
|
||||
'reason' => '全量历史收益结转至商城余额',
|
||||
], '收益结转至商城余额');
|
||||
'reason' => '全量历史收益结转至钱包余额',
|
||||
], '收益结转至钱包余额');
|
||||
|
||||
return $amount;
|
||||
});
|
||||
|
||||
在新工单中引用
屏蔽一个用户