function getUserBio(userid) { if (userid == "") { userid = getCookie("userid"); if (userid == "") { return; } } $.get( "../ucenter/get.php", { id: userid, bio: true, }, function (data, status) { let result = JSON.parse(data); let html = "
"; if (result.length > 0) { html += marked(result[0].bio); } else { html += gLocal.gui.not_found; } html += "
"; $("#bio").html(html); } ); } function getUserPalicanon(userid) { $.getJSON( "/api/v2/progress?view=studio&id="+userid ).done(function(data){ $('#content').html(render_palicanon_chapter_list(data.data.rows)); }); } function render_palicanon_chapter_list(data){ let html = ''; for (const iterator of data) { let link = ""; html += "
"; let title = iterator.title; if(title==''){ title = 'unkow'; } html += "
"+link+title+""+""+"
"; html += "
"+iterator.path+"
"; html += "
创建:"+iterator.created_at+" 更新:"+iterator.updated_at+"
"; html += "
"; } return html; }