From 17eb80f55a0a377829d613ba6d3d15877b487002 Mon Sep 17 00:00:00 2001 From: yin5th <541304803@qq.com> Date: Fri, 13 Jan 2023 13:51:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3):=20=E4=BB=8A=E6=97=A5?= =?UTF-8?q?=E6=89=93=E5=8D=A1=E8=AE=B0=E5=BD=95=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/v1/User.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controller/api/v1/User.php b/app/controller/api/v1/User.php index db504d7..42edf83 100644 --- a/app/controller/api/v1/User.php +++ b/app/controller/api/v1/User.php @@ -418,13 +418,13 @@ class User extends Base } } - if (in_array('afternoon_off', $array) || ($offCount >= $onCount && $offCount >= 1)) { - $buttonColor = 'green'; - } - if (($offCount >= $onCount && $offCount >= 1) || $onCount > 0) { $buttonColor = 'orange'; } + + if (in_array('afternoon_off', $array) || ($offCount >= $onCount && $offCount >= 1)) { + $buttonColor = 'green'; + } } $list->each(function ($item) {