|
@@ -152,7 +152,7 @@ class Userfollow extends Api
|
|
|
->join('user user','user.id = msg.infotype_id','LEFT')
|
|
|
->join('user_wallet uw','user.id = uw.user_id','LEFT')
|
|
|
->field('msg.id as msg_id,user.id,user.username,user.nickname,user.avatar,user.bio,user.birthday,user.gender,user.attribute,uw.vip_endtime')
|
|
|
- ->where(['msg.infotype'=>'newfriend','msg.user_id'=>$this->auth->id,'msg.status'=>0])
|
|
|
+ ->where(['msg.infotype'=>'newfriend','msg.user_id'=>$this->auth->id,'msg.audit_status'=>0])
|
|
|
->where('msg.infotype_id','NOT IN',$my_follow_uids)
|
|
|
->order('msg.id desc')->autopage()->select();
|
|
|
|
|
@@ -177,7 +177,7 @@ class Userfollow extends Api
|
|
|
$id = input('msg_id',0);
|
|
|
|
|
|
$msg_info = Db::name('message')->where('id',$id)->find();
|
|
|
- Db::name('message')->where('id',$id)->update(['status'=>1]);
|
|
|
+ Db::name('message')->where('id',$id)->update(['audit_status'=>1]);
|
|
|
|
|
|
//拒绝给个消息
|
|
|
if($msg_info['infotype'] == 'newfriend' && !empty($msg_info['infotype_id'])){
|
|
@@ -246,6 +246,7 @@ class Userfollow extends Api
|
|
|
|
|
|
//我从好友审核列表过来的,我又回关了
|
|
|
if(!empty($msg_id)){
|
|
|
+ Db::name('message')->where('id',$id)->update(['audit_status'=>1]);
|
|
|
$msg_id = \app\common\model\Message::addMessage($follow_uid,'好友申请已通过',$this->auth->nickname.'同意了您的好友请求');
|
|
|
}
|
|
|
|