Browse Source

用户属性与动态审核

lizhen_gitee 1 year ago
parent
commit
963410d3ea

+ 1 - 1
application/admin/view/topicdongtai/edit.html

@@ -15,7 +15,7 @@
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
         <div class="col-xs-12 col-sm-8">
-            <input id="c-content" class="form-control" name="row[content]" type="text" value="{$row.content|htmlentities}">
+            <textarea id="c-content" class="form-control" name="row[content]" rows="10">{$row.content|htmlentities}</textarea>
         </div>
     </div>
     <div class="form-group">

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

@@ -48,8 +48,17 @@ class Index extends Api
         }
         //属性
         $attribute = input('attribute','all');
-        if($attribute != 'all' && $attribute != 'BOTH'){
-            $where['user.attribute'] = $attribute;
+        if($attribute != 'all'){
+
+            if($attribute == 'EE'){
+                $where['user.attribute'] = ['IN',['EE','BOTH']];
+            }
+            if($attribute == 'ER'){
+                $where['user.attribute'] = ['IN',['ER','BOTH']];
+            }
+            if($attribute == 'BOTH'){
+                $where['user.attribute'] = 'BOTH';
+            }
         }
         //排除黑名单的
         $where_black = [];