Browse Source

加是否已关注

lizhen_gitee 1 year ago
parent
commit
9966e960d1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      application/api/controller/Usercenter.php

+ 3 - 0
application/api/controller/Usercenter.php

@@ -307,6 +307,7 @@ class UserCenter extends Common
             if($followlist) {
                 foreach($followlist as $k => $v) {
                     $followlist[$k]['createtime_text'] = get_last_time($v['createtime']);
+                    $followlist[$k]["is_follow"] = 1;
                     if(in_array($v["user_id"],$ids)) {
                         $followlist[$k]["is_hu"] = 1;
                     } else {
@@ -327,6 +328,7 @@ class UserCenter extends Common
                     $fanslist[$k]['createtime_text'] = get_last_time($v['createtime']);
                     if(in_array($v["fans_id"],$ids)) {
                         $fanslist[$k]["is_hu"] = 1;
+                        $fanslist[$k]["is_follow"] = 1;
                     } else {
                         $fanslist[$k]["is_hu"] = 0;
                     }
@@ -343,6 +345,7 @@ class UserCenter extends Common
             if($fanslist) {
                 foreach($fanslist as $k => $v) {
                     $fanslist[$k]['createtime_text'] = get_last_time($v['createtime']);
+                    $fanslist[$k]["is_follow"] = 1;
                     if(in_array($v["fans_id"],$ids)) {
                         $fanslist[$k]["is_hu"] = 1;
                     } else {