From 8e0b51eae67a0544f0ffc9dfe6f6a086ed38e85a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Wed, 17 Sep 2025 00:31:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E6=8C=81=E4=BA=BA=E5=8F=97=E7=9B=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Room.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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'); - } //房间补贴