0 0 1

温泉代理插件多应用版本源码【可直接编译使用】

管理员组 安生 管理员组
11月前 854

温泉代理多应用版本

一个代理插件就可以对接温泉多个插件

适配小栗子和MY

下载地址

最后于 11月前 被安生编辑 ,原因:
看过的人 (68)
  • 485191567
  • 1736008448
  • 3830110755
  • 1873950
  • 2224105825
  • 2727018251
  • 2627914518
  • 3538115665
  • 知名
  • 安生
最新回复 (0)
全部楼主

    暂无评论

    • 全网机器人框架插件论坛
      2
          

请先登录后发表评论!

返回
您是第9999999位访客
机器人论坛

function xn_read_unread(tids, tid) { // 当前时间 var time = xn.time(); // 多长时间内的主题为最新主题 var time_range = 86400 * 3; // 三天内的 tids var recent_tids = $.pdata('recent_tids') || {}; // 已读的 tids var view_tids = $.pdata('view_tids') || {}; // 提取列表页的 tid function fetch_recent_tids(tids) { var changed = false; $.each(tids, function(tid, last_date) { if(time - last_date < time_range) { recent_tids[tid] = last_date; changed = true; } }); if(changed) $.pdata('recent_tids', recent_tids); } // 清理最近的 tid function gc_recent_tids() { var changed = false; $.each(recent_tids, function(tid, last_date) { if(time - last_date > time_range) { delete recent_tids[tid]; changed = true; } }); if(changed) $.pdata('recent_tids', recent_tids); } function gc_view_tids() { var changed = false; $.each(view_tids, function(tid, last_date) { if(!recent_tids[tid]) { delete view_tids[tid]; changed = true; } }); if(changed) $.pdata('view_tids', view_tids); } function save_view_tid(tid) { if(!recent_tids[tid]) return; view_tids[tid] = time; $.pdata('view_tids', view_tids); } if(tids) { fetch_recent_tids(tids); gc_recent_tids(); //gc_view_tids(); } if(tid) save_view_tid(tid); // 三天内的主题标记为已读 // 遍历主题列表,标记最近的,并且未读的为加粗 $('.thread').each(function() { var jthis = $(this); var tid = jthis.attr('tid') || jthis.data('tid'); if(recent_tids[tid] && recent_tids[tid] > xn.intval(view_tids[tid])) { jthis.find('.subject').addClass('font-weight-bold'); } }); }