|
@@ -1606,7 +1606,7 @@ class Party extends Common
|
|
|
}
|
|
|
// 事务处理余额与记录信息
|
|
|
$userjewellogModel = new \app\common\model\UserJewelLog();
|
|
|
- $usersoundcoinlogModel = new \app\common\model\UserSoundcoinLog();
|
|
|
+ //$usersoundcoinlogModel = new \app\common\model\UserSoundcoinLog();
|
|
|
|
|
|
// 获取当天零点
|
|
|
$day = date("Ymd");
|
|
@@ -1677,15 +1677,15 @@ class Party extends Common
|
|
|
$res5 = $giftuserpartyModel->allowField(true)->save($data);
|
|
|
|
|
|
// 添加赠送用户声币余额
|
|
|
- $where = [];
|
|
|
+ /* $where = [];
|
|
|
$where["id"] = $user_id;
|
|
|
$res3 = $userModel->where($where)->setInc("sound_coin", $getValue);
|
|
|
- $getValue == 0 && $res3 = true;
|
|
|
+ $getValue == 0 && $res3 = true;*/
|
|
|
// 添加赠送用户声币流水记录soundCoin
|
|
|
// xxx送你
|
|
|
- $res4 = $usersoundcoinlogModel->addUserSoundcoinLog($user_id, $getValue, "+", $touserInfo["sound_coin"], "{$this->auth->nickname}送你{$giftInfo['name']}x{$number}", 1, $giftuserpartyModel->id);
|
|
|
+ //$res4 = $usersoundcoinlogModel->addUserSoundcoinLog($user_id, $getValue, "+", $touserInfo["sound_coin"], "{$this->auth->nickname}送你{$giftInfo['name']}x{$number}", 1, $giftuserpartyModel->id);
|
|
|
|
|
|
- if ($partyInfo && $guilderValue > 0) {
|
|
|
+ /*if ($partyInfo && $guilderValue > 0) {
|
|
|
// 增加房主抽成
|
|
|
$where = [];
|
|
|
$where["id"] = $partyInfo->user_id;
|
|
@@ -1693,9 +1693,9 @@ class Party extends Common
|
|
|
// 添加赠送用户声币流水记录soundCoin
|
|
|
// xxx送礼物给xxx,房间礼物抽成
|
|
|
$usersoundcoinlogModel->addUserSoundcoinLog($partyInfo->user_id, $guilderValue, "+", $touserInfo["sound_coin"], "{$this->auth->nickname}送礼物{$giftInfo['name']}x{$number}给{$touserInfo['nickname']},房间礼物抽成", 4, $giftuserpartyModel->id);
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
- if ($res1 && $res2 && $res3 && $res4 && $res5) {
|
|
|
+ if ($res1 && $res2 && $res5) {
|
|
|
$i++;
|
|
|
if($party_id > 0) {
|
|
|
// 添加redis记录做财富排行榜日榜用
|