lizhen_gitee преди 1 година
родител
ревизия
9966e960d1
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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) {
             if($followlist) {
                 foreach($followlist as $k => $v) {
                 foreach($followlist as $k => $v) {
                     $followlist[$k]['createtime_text'] = get_last_time($v['createtime']);
                     $followlist[$k]['createtime_text'] = get_last_time($v['createtime']);
+                    $followlist[$k]["is_follow"] = 1;
                     if(in_array($v["user_id"],$ids)) {
                     if(in_array($v["user_id"],$ids)) {
                         $followlist[$k]["is_hu"] = 1;
                         $followlist[$k]["is_hu"] = 1;
                     } else {
                     } else {
@@ -327,6 +328,7 @@ class UserCenter extends Common
                     $fanslist[$k]['createtime_text'] = get_last_time($v['createtime']);
                     $fanslist[$k]['createtime_text'] = get_last_time($v['createtime']);
                     if(in_array($v["fans_id"],$ids)) {
                     if(in_array($v["fans_id"],$ids)) {
                         $fanslist[$k]["is_hu"] = 1;
                         $fanslist[$k]["is_hu"] = 1;
+                        $fanslist[$k]["is_follow"] = 1;
                     } else {
                     } else {
                         $fanslist[$k]["is_hu"] = 0;
                         $fanslist[$k]["is_hu"] = 0;
                     }
                     }
@@ -343,6 +345,7 @@ class UserCenter extends Common
             if($fanslist) {
             if($fanslist) {
                 foreach($fanslist as $k => $v) {
                 foreach($fanslist as $k => $v) {
                     $fanslist[$k]['createtime_text'] = get_last_time($v['createtime']);
                     $fanslist[$k]['createtime_text'] = get_last_time($v['createtime']);
+                    $fanslist[$k]["is_follow"] = 1;
                     if(in_array($v["fans_id"],$ids)) {
                     if(in_array($v["fans_id"],$ids)) {
                         $fanslist[$k]["is_hu"] = 1;
                         $fanslist[$k]["is_hu"] = 1;
                     } else {
                     } else {