fix(补卡接口): 补卡时间限制

master
yin5th 2023-01-14 13:47:16 +08:00
parent 029d552abc
commit 48c060ea08
1 changed files with 4 additions and 0 deletions

View File

@ -662,6 +662,10 @@ class User extends Base
return $this->json(4003, '当前身份不能补卡');
}
if (strtotime($input['day']) < (time()-86400*3) || strtotime($input['day']) > time()) {
return $this->json(4003, '只能补三天以内');
}
$time = time();
$now = date('Y-m-d H:i:s', $time);
$day = date('Ymd', strtotime($input['day']));