Browse Source

封号列表

lizhen_gitee 11 months ago
parent
commit
1fed044d20
1 changed files with 17 additions and 0 deletions
  1. 17 0
      application/api/controller/Baseconfig.php

+ 17 - 0
application/api/controller/Baseconfig.php

@@ -119,5 +119,22 @@ class Baseconfig extends Api
         $this->success(1,$list);
     }
 
+    //封号列表
+    public function fenghao_list(){
+        $list = Db::name('fenghao')->alias('fh')->field('fh.*,user.username')
+            ->join('user','fh.user_id = user.id','LEFT')
+            ->order('fh.id desc')
+            ->select();
+
+        if(!empty($list)){
+            foreach($list as $key => &$val){
+                $val['type'] = '封禁';
+                $val['username'] = substr($val['username'],0,2) . '***' . substr($val['username'],-2);
+            }
+        }
+
+        $this->success(1,$list);
+    }
+
 
 }