兑换变成积分
This commit is contained in:
parent
1caa11ebd6
commit
9599280ff8
|
|
@ -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']);
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ class User extends Base
|
|||
}
|
||||
|
||||
/**
|
||||
* 用户市集余额变化
|
||||
* 用户货币2变化
|
||||
* @param $user_id
|
||||
* @param $change_money
|
||||
* @param $type 1后台充值 2在线充值 3抽赏消费 4背包兑换 5推荐奖励
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user