diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php index f6558db..fe8033b 100644 --- a/app/index/controller/Index.php +++ b/app/index/controller/Index.php @@ -100,7 +100,7 @@ class Index extends BaseController $res['data'] = array(); foreach ($user as $key=>$v) { - $u['uid'] = $v['id']; + $u['uid'] = (string) url('user/home',['id'=>$v['id']]); $u['count(*)'] = $v['comments_count']; if($v['nickname']) { diff --git a/public/static/res/mods/index.js b/public/static/res/mods/index.js index 60e2ddc..56d45b8 100644 --- a/public/static/res/mods/index.js +++ b/public/static/res/mods/index.js @@ -661,7 +661,7 @@ layui.define(['layer', 'laytpl', 'form', 'element', 'upload', 'util'], function( //回帖榜 var tplReply = ['{{# layui.each(d.data, function(index, item){ }}' ,'