From cb766e0cb54582789728e9ef14c767f2620bf1b0 Mon Sep 17 00:00:00 2001 From: wanyongkang <937888580@qq.com> Date: Wed, 25 Nov 2020 16:49:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E6=8A=A4=E7=94=A8=E6=88=B7=E9=94=80?= =?UTF-8?q?=E5=94=AE=E7=BB=9F=E8=AE=A1=E2=80=94=E2=80=94=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/manager/controller/UserFollow.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/manager/controller/UserFollow.php b/app/manager/controller/UserFollow.php index d2e2501..9ee3deb 100644 --- a/app/manager/controller/UserFollow.php +++ b/app/manager/controller/UserFollow.php @@ -5,7 +5,7 @@ * @Author: kangkang * @Date: 2020-10-13 19:52:37 * @LastEditors: Please set LastEditors - * @LastEditTime: 2020-11-25 16:41:06 + * @LastEditTime: 2020-11-25 16:49:22 */ namespace app\manager\controller; @@ -192,7 +192,7 @@ class UserFollow extends Controller //消费统计比对 foreach ($new_month_cost as $info) { $list[$info['UserId']]['MonthAmount'] = $info['money']; - $list[$info['UserId']]['AddAmount'] = $info['money'] - $list[$info['UserId']]['PrevMonthAmount']; + $list[$info['UserId']]['AddAmount'] = round($info['money'] - $list[$info['UserId']]['PrevMonthAmount'],2); if ($list[$info['UserId']]['PrevMonthAmount'] != 0) { $list[$info['UserId']]['persent'] = round(($info['money'] - $list[$info['UserId']]['PrevMonthAmount']) / $list[$info['UserId']]['PrevMonthAmount'] * 100, 2) . '%'; } else {