feat(接口): 今日打卡记录 调整逻辑

master
yin5th 2023-01-13 13:51:50 +08:00
parent 137204f0c2
commit 17eb80f55a
1 changed files with 4 additions and 4 deletions

View File

@ -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) { if (($offCount >= $onCount && $offCount >= 1) || $onCount > 0) {
$buttonColor = 'orange'; $buttonColor = 'orange';
} }
if (in_array('afternoon_off', $array) || ($offCount >= $onCount && $offCount >= 1)) {
$buttonColor = 'green';
}
} }
$list->each(function ($item) { $list->each(function ($item) {