|
@@ -151,7 +151,9 @@ class Userfollow extends Api
|
|
|
|
|
|
$check = Db::name('user_follow')->where($map)->find();
|
|
$check = Db::name('user_follow')->where($map)->find();
|
|
if($check){
|
|
if($check){
|
|
- $this->error('已经关注此人');
|
|
|
|
|
|
+ //取关
|
|
|
|
+ $rs = Db::name('user_follow')->where($map)->delete();
|
|
|
|
+ $this->success('操作成功');
|
|
}
|
|
}
|
|
|
|
|
|
Db::startTrans();
|
|
Db::startTrans();
|