diff --git a/application/api/model/Room.php b/application/api/model/Room.php index 27b3642..d793e21 100644 --- a/application/api/model/Room.php +++ b/application/api/model/Room.php @@ -315,7 +315,7 @@ class Room extends Model } 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{ //今日流水 //金币与魅力比例 @@ -405,7 +405,6 @@ class Room extends Model ->where(['room_id' => $room_id,'user_id' => $user_id,'change_type' =>19]) ->whereBetween('createtime', [$today_start_time, $today_end_time]) ->sum('change_value'); - } //房间补贴