feat(接口): 今日打卡记录 调整逻辑
parent
137204f0c2
commit
17eb80f55a
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue