544782275@qq.com 3 rokov pred
rodič
commit
8f6658185a
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      application/api/controller/Index.php

+ 2 - 2
application/api/controller/Index.php

@@ -220,10 +220,10 @@ class Index extends Base
         if($comment_list){
             foreach ($comment_list as $key=>&$value){
                 $user_info = Db::name('store_member')->field('name,headimg,privacy_switch')->where('id',$value['user_id'])->find();
-                /*if($user_info['privacy_switch']){
+                if($user_info['privacy_switch']){
                     unset($comment_list[$key]);
                     continue;
-                }*/
+                }
                 $value['user_name'] = $user_info['name'];
                 $value['user_headimg'] = $user_info['headimg'];
                 //获取该条评论回复的数量