|
@@ -64,7 +64,7 @@ class Wallet
|
|
|
]);
|
|
|
|
|
|
// 钱包和积分记录存到 fastadmin 钱包积分记录表
|
|
|
- if (in_array($type, ['money', 'score'])) {
|
|
|
+ /*if (in_array($type, ['money', 'score'])) {
|
|
|
$eventMap = (new WalletLog)->getEventMap();
|
|
|
$memo = $memo ?: $eventMap[$type][$event] ?? '';
|
|
|
if ($type === 'money') {
|
|
@@ -72,7 +72,7 @@ class Wallet
|
|
|
} else if ($type === 'score') {
|
|
|
ScoreLog::create(['user_id' => $user->id, 'score' => $amount, 'before' => $before, 'after' => $after, 'memo' => $memo]);
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
// 账户变动事件
|
|
|
$data = ['walletLog' => $walletLog, 'type' => $type];
|