正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
@@ -83,6 +83,10 @@ class FriendController extends HomeBaseController | @@ -83,6 +83,10 @@ class FriendController extends HomeBaseController | ||
83 | exit(); | 83 | exit(); |
84 | } else { | 84 | } else { |
85 | $parent_id = ($info['role'] == 2) ? $uid : $info['parent_id']; | 85 | $parent_id = ($info['role'] == 2) ? $uid : $info['parent_id']; |
86 | + //如果只是单纯加好友,则不绑定 | ||
87 | + if($total == 0) { | ||
88 | + $parent_id = null; | ||
89 | + } | ||
86 | $tag = true; | 90 | $tag = true; |
87 | $friend_id = $request->param('friend_id'); | 91 | $friend_id = $request->param('friend_id'); |
88 | $friend_parent_id = Db::name('user')->where(['id' => $friend_id])->value('parent_id'); | 92 | $friend_parent_id = Db::name('user')->where(['id' => $friend_id])->value('parent_id'); |
-
请 注册 或 登录 后发表评论