兑换变成积分

This commit is contained in:
manghe 2025-03-23 09:37:52 +00:00
parent 1caa11ebd6
commit 9599280ff8
3 changed files with 4 additions and 3 deletions

View File

@ -359,7 +359,7 @@ class User extends Base
} elseif ($type == 2) {
$whe[] = ['change_money', '<', 0];
}
$data = ProfitScore::field('change_money,content,addtime')
$data = ProfitMoney2::field('change_money,content,addtime')
->withAttr('addtime', function ($value, $data) {
return date('Y-m-d H:i:s', (int) $data['addtime']);
})

View File

@ -640,7 +640,8 @@ class Warehouse extends Base
$total_money *= 100;
if ($total_money > 0) {
// $res[] = User::changeMoney($user_id, $total_money, 4, '兑换获得');
User::changeIntegral($user_id, $total_money, 4, '兑换获得');
// User::changeIntegral($user_id, $total_money, 4, '兑换获得');
User::changeMoney2($user_id, $total_money, 4, '兑换获得');
}
if (resCheck($res)) {
Db::commit();

View File

@ -135,7 +135,7 @@ class User extends Base
}
/**
* 用户市集余额变化
* 用户货币2变化
* @param $user_id
* @param $change_money
* @param $type 1后台充值 2在线充值 3抽赏消费 4背包兑换 5推荐奖励