切换导航条
此项目
正在载入...
登录
root
/
jyht
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
sgj
6 years ago
提交
3e0d579748f671599fdef1cb41a5eb3ea19cc4f2
1 个父辈
0f3a7986
1 个管道 的构建
通过
耗费 2 秒
调整评论顺序
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
6 行增加
和
2 行删除
app/portal/controller/FriendsController.php
public/themes/simpleboot3/portal/friends/friendlist.html
app/portal/controller/FriendsController.php
查看文件 @
3e0d579
...
...
@@ -10,6 +10,7 @@ namespace app\portal\controller;
use
app\portal\model\GroupModel
;
use
app\user\model\UserModel
;
use
cmf\controller\WeChatBaseController
;
use
EasyWeChat\Foundation\Application
;
use
think\Log
;
...
...
@@ -43,6 +44,8 @@ class FriendsController extends WeChatBaseController
$group_id
=
input
(
'id'
);
/*检查权限*/
$user_id
=
cmf_get_current_user_id
();
$User
=
new
UserModel
();
$user
=
$User
->
getUser
(
$user_id
);
$isin
=
$this
->
GroupModel
->
checkUser
(
$user_id
,
$group_id
);
if
(
empty
(
$isin
)){
$this
->
error
();
...
...
@@ -57,6 +60,7 @@ class FriendsController extends WeChatBaseController
}
$this
->
assign
(
'silence'
,
$silence
);
$this
->
assign
(
'info'
,
$info
);
$this
->
assign
(
'user'
,
$user
);
$this
->
assign
(
'group'
,
$group
);
$this
->
assign
(
'article'
,
$article
);
return
$this
->
fetch
();
...
...
public/themes/simpleboot3/portal/friends/friendlist.html
查看文件 @
3e0d579
...
...
@@ -237,8 +237,8 @@
if
(
res
.
code
==
1
){
$
(
'.bottom_box'
).
hide
().
attr
(
'id'
,
''
);
$
(
'.'
+
'comment'
+
id
).
append
(
"<div>"
+
" <text class=\"comment_name\">宋医生 :</text>"
+
" <text>1111</text>"
+
" <text class=\"comment_name\">{$user_name} :</text>"
+
" <text>"
+
content
+
"</text>"
+
" </div>"
)
alert
(
'评论成功'
);
}
...
...
请
注册
或
登录
后发表评论