Browse Source

wesmiler 报恩寺项目提交

wesmiler 4 năm trước cách đây
mục cha
commit
0697000607
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      app/Services/MemberService.php

+ 7 - 0
app/Services/MemberService.php

@@ -646,6 +646,13 @@ class MemberService extends BaseService
             return message('账户不可操作已冻结或不存在,请联系客服',false);
         }
 
+        $followInfo = $this->model::where(['id'=> $followUid, 'mark'=> 1,'status'=> 1])
+            ->select(['id','openid','nickname','status'])
+            ->first();
+        if(!$followInfo){
+            return message('被关注用户不可操作或不存在',false);
+        }
+
         $info = FollowModel::where(['user_id'=> $userId, 'follow_uid'=> $followUid])->select(['id','status'])->first();
         if($info && $info->status == 1 && $status == 1){
             return message('您已关注过', false);