...
|
...
|
@@ -523,8 +523,8 @@ class User extends Api |
|
|
{
|
|
|
$UserId = $this->is_token($this->request->header());
|
|
|
$params = $this->request->param();
|
|
|
$IsInvite1 = Db::name('group')->where('user_id', $params['user_id'])->find();
|
|
|
$IsInvite2 = Db::name('group')->where('fuser_id', $params['user_id'])->find();
|
|
|
$IsInvite1 = Db::name('group')->where('user_id', $UserId)->find();
|
|
|
$IsInvite2 = Db::name('group')->where('fuser_id', $UserId)->find();
|
|
|
if ($UserId != $params['user_id']&&empty($IsInvite1)&&empty($IsInvite2)) {
|
|
|
//添加绑定关系
|
|
|
$IsInvite = Db::name('group')->where('user_id', $UserId)->where('fuser_id', $params['user_id'])->find();
|
...
|
...
|
|