fix(接口): 今日打卡记录 完善补卡显示逻辑
parent
48c060ea08
commit
b8ebcd8b5e
|
@ -377,8 +377,11 @@ class User extends Base
|
|||
}
|
||||
|
||||
$where = [];
|
||||
$where[] = ['cl.created_at', '>', date($day.' 00:00:00')];
|
||||
$where[] = ['cl.created_at', '<', date($day.' 23:59:59')];
|
||||
// $where[] = ['cl.created_at', '>', date($day.' 00:00:00')];
|
||||
// $where[] = ['cl.created_at', '<', date($day.' 23:59:59')];
|
||||
|
||||
$dayInt = str_replace('-', '', $day);
|
||||
$where[] = ['cl.day', '=', $dayInt];
|
||||
$where[] = ['cl.account_id', '=', $accountId];
|
||||
if ($worksiteId) {
|
||||
$where[] = ['cl.worksite_id', '=', $worksiteId];
|
||||
|
@ -662,7 +665,7 @@ class User extends Base
|
|||
return $this->json(4003, '当前身份不能补卡');
|
||||
}
|
||||
|
||||
if (strtotime($input['day']) < (time()-86400*3) || strtotime($input['day']) > time()) {
|
||||
if (strtotime($input['day']) < (time() - 86400 * 3) || strtotime($input['day']) > time()) {
|
||||
return $this->json(4003, '只能补三天以内');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue