...
|
...
|
@@ -201,10 +201,10 @@ class SignController extends RestBaseController |
|
|
$type='sleep';
|
|
|
}
|
|
|
if(date('H:i:s',time())>$end_time){
|
|
|
$this->error('当前签到时间已过');
|
|
|
$this->error(['msg'=>'当前签到时间已过','code'=>40001]);
|
|
|
}
|
|
|
if(Db::name('user_sign')->where('user_id',$user['id'])->whereNotNull("$type")->find()){
|
|
|
$this->error('当前时间段已签到');
|
|
|
$this->error(['msg'=>'当前时间段已签到','code'=>40002]);
|
|
|
}
|
|
|
|
|
|
//将签到写入记录
|
...
|
...
|
|