Compare commits
No commits in common. "762c248ab111bcd6b77e1b9a7329c6a303ff6747" and "e745d172ffa84931b68ff6b9eb645889cc20b105" have entirely different histories.
762c248ab1
...
e745d172ff
@ -77,13 +77,9 @@ class NakamaManager {
|
||||
async authenticateWithGameToken(gameToken) {
|
||||
this.gameToken = gameToken;
|
||||
|
||||
// 获取或生成持久化的 custom ID
|
||||
let customId = uni.getStorageSync('nakama_custom_id');
|
||||
if (!customId) {
|
||||
customId = `game_${Date.now()}_${Math.random().toString(36).substring(7)}`;
|
||||
uni.setStorageSync('nakama_custom_id', customId);
|
||||
}
|
||||
console.log('[Nakama] Authenticating with Persistent ID:', customId);
|
||||
// 生成唯一的 custom ID
|
||||
const customId = `game_${Date.now()}_${Math.random().toString(36).substring(7)}`;
|
||||
console.log('[Nakama] Authenticating with Custom ID:', customId);
|
||||
|
||||
// HTTP 认证请求
|
||||
const scheme = this.useSSL ? 'https://' : 'http://';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user