可以正常运行每日签到,正在完善签到等级功能
This commit is contained in:
1 parent
9dbd544b47
commit
99869ac3ad
8 files changed
+360
-113
No files matched your search
@@ -45,7 +45,7 @@ impl UserState {
|
||||
|
||||
pub fn checkin(&mut self) {
|
||||
self.is_checkin_today = true;
|
||||
let unix_time = tokio::time::Instant::now().elapsed().as_millis() as u64;
|
||||
let unix_time = chrono::Utc::now().timestamp_millis() as u64;
|
||||
|
||||
self.checkin_unix_mills = unix_time;
|
||||
self.checkin_times_in_month += 1;
|
||||
|
||||
Reference in new issue
Block a user