香港人聊天室

【使用者條款與免責聲明】
1. 必須年滿 18 歲。
2. 禁止違法、低俗、騷擾、人身攻擊及種族歧視。
3. 嚴禁洗板、行鎖及未經授權之推廣活動。
4. 提防詐騙,謹慎發佈及分享個人私隱。
5. 自行承擔風險,本平台不承擔任何法律責任。
已有會員?登入 註冊新會員
香港人聊天室 在線人數 0 人
發送對象: 所有人
```[cite: 9] 同時,請記得檢查你目前的 `app.js` 裡面,動態產生在線名單(`user-item`)的部分是否有加上點擊自己的處理邏輯(點擊自己時呼叫 `/api/get-profile-token` 開啟設定頁面)。如果缺少這段,可以把 `app.js` 中渲染線上名單的邏輯補上這段: ```javascript if (!isSelf) { item.onclick = () => setTarget(u.name); } else { item.style.cursor = 'pointer'; item.onclick = async () => { if (me.email.startsWith('guest')) { return alert("訪客無法編輯個人資料,請註冊成為會員!"); } try { const res = await fetch('/api/get-profile-token', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ email: me.email }) }); const data = await res.json(); if (data.success) { window.open(data.url, '_blank'); } else { alert(data.error || "無法開啟個人資料設定"); } } catch (e) { alert('網路錯誤,無法開啟個人資料設定'); } }; }