主持人受益
This commit is contained in:
@@ -315,7 +315,7 @@ class Room extends Model
|
|||||||
}
|
}
|
||||||
if($type == 1) {//1-我主持的
|
if($type == 1) {//1-我主持的
|
||||||
//今日收益
|
//今日收益
|
||||||
$v['today_profit'] = $this->get_room_today_earnings($v['room_id'],$uid);
|
$v['today_profit'] = round( $this->get_room_today_earnings($v['room_id'],$uid),4);
|
||||||
}else{
|
}else{
|
||||||
//今日流水
|
//今日流水
|
||||||
//金币与魅力比例
|
//金币与魅力比例
|
||||||
@@ -405,7 +405,6 @@ class Room extends Model
|
|||||||
->where(['room_id' => $room_id,'user_id' => $user_id,'change_type' =>19])
|
->where(['room_id' => $room_id,'user_id' => $user_id,'change_type' =>19])
|
||||||
->whereBetween('createtime', [$today_start_time, $today_end_time])
|
->whereBetween('createtime', [$today_start_time, $today_end_time])
|
||||||
->sum('change_value');
|
->sum('change_value');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//房间补贴
|
//房间补贴
|
||||||
|
|||||||
Reference in New Issue
Block a user