fix(补卡接口): 补卡时间限制
parent
029d552abc
commit
48c060ea08
|
@ -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']));
|
||||
|
|
Loading…
Reference in New Issue