Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaifan committed Mar 18, 2024
1 parent 77ea022 commit 7bfc43c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app/Http/Controllers/Api/DialogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ public function beyond()
$unreadAt = Request::input('unread_at');
$todoAt = Request::input('todo_at');
//
$unreadAt = Base::isNumber($unreadAt) ? intval($unreadAt) : trim($unreadAt);
$unreadAt = Carbon::parse($unreadAt)->setTimezone(config('app.timezone'));
//
$todoAt = Base::isNumber($todoAt) ? intval($todoAt) : trim($todoAt);
$todoAt = Carbon::parse($todoAt)->setTimezone(config('app.timezone'));
//
$data = WebSocketDialog::getDialogBeyond($user->userid, $unreadAt, $todoAt);
Expand Down
14 changes: 12 additions & 2 deletions resources/assets/js/functions/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1376,9 +1376,19 @@ const localforage = require("localforage");
if ($A.isIos()) {
await localforage.setItem('__test__', $A.Time())
}
$A.openLog && console.log('IDBTest OK',)
$A.openLog && console.log('IDBTest OK')
} catch (error) {
$A.openLog && console.error('IDBTest Error: ', error)
if ($A.openLog) {
console.error('IDBTest Error: ', error)
$A.modalWarning({
content: error.message,
onOk: () => {
$A.reloadUrl();
}
});
} else {
$A.reloadUrl();
}
}
},

Expand Down
2 changes: 1 addition & 1 deletion resources/mobile

0 comments on commit 7bfc43c

Please sign in to comment.