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) {