...
|
...
|
@@ -191,6 +191,9 @@ class SignController extends RestBaseController |
|
|
if ($user['stay_sign_day']>$user['longest_sign_day']){
|
|
|
Db::name('user')->where('id',$this->getUserId())->update(['longest_sign_day'=>$user['stay_sign_day']]);
|
|
|
}
|
|
|
}else{
|
|
|
//非连续打卡
|
|
|
Db::name('user')->where('id',$user['id'])->update('stay_sign_day',0);
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|