+
-
@@ -492,6 +504,12 @@ function showLoggedIn(username){
document.getElementById('user-name').textContent=username;
document.getElementById('user-avatar').textContent=username[0].toUpperCase();
document.getElementById('frost-entry').style.display='block';
+ // 解锁模型下载
+ const dl=document.getElementById('model-dl-locked');
+ const du=document.getElementById('model-dl-unlocked');
+ if(dl&&du){dl.style.display='none';du.style.display='block'}
+ const tg=document.getElementById('model-dl-tag');
+ if(tg)tg.textContent='内测·已登录';
}
function goToRepo(){const u=localStorage.getItem('current_user');window.location.href='/code/'+u;}
function dismissRepo(){}
@@ -503,8 +521,14 @@ function logout(){
document.getElementById('frost-entry').style.display='none';
document.getElementById('login-bar').style.display='flex';
document.getElementById('login-user').value='';
+ // 锁定模型下载
+ const dl=document.getElementById('model-dl-locked');
+ const du=document.getElementById('model-dl-unlocked');
+ if(dl&&du){dl.style.display='block';du.style.display='none'}
+ const tg=document.getElementById('model-dl-tag');
+ if(tg)tg.textContent='登录后可下载';
}
-(function(){const u=localStorage.getItem('current_user');if(u&&localStorage.getItem('logged_in')==='true'){showLoggedIn(u);document.getElementById('frost-entry').style.display='block'}})();
+(function(){const u=localStorage.getItem('current_user');if(u&&localStorage.getItem('logged_in')==='true'){showLoggedIn(u)}})();
/* ── 对话记忆 ── */
let chatHistory={};