chuweiqiang vor 1 Jahr
Ursprung
Commit
01e35391f5
2 geänderte Dateien mit 3 neuen und 14 gelöschten Zeilen
  1. 2 13
      .idea/workspace.xml
  2. 1 1
      application/api/controller/Article.php

+ 2 - 13
.idea/workspace.xml

@@ -1,18 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="ChangeListManager">
-    <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
-      <change afterPath="$PROJECT_DIR$/application/user/controller/Active.php" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/application/user/view/active/index.html" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/api/controller/Article.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Article.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/api/controller/Login.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Login.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/cache/4c/d9aaff68a897261d9d4e25ac10435f.php" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/cache/4c/d9aaff68a897261d9d4e25ac10435f.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/log/single.log" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/log/single.log" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/log/single_error.log" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/log/single_error.log" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/log/single_sql.log" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/log/single_sql.log" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/temp/51ac356bd7874e224ee8887fec02136e.php" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/temp/51ac356bd7874e224ee8887fec02136e.php" afterDir="false" />
-    </list>
+    <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="" />
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -564,7 +553,7 @@
       <workItem from="1709339488628" duration="9537000" />
       <workItem from="1709512809659" duration="8143000" />
       <workItem from="1709599461139" duration="16311000" />
-      <workItem from="1709685213840" duration="18757000" />
+      <workItem from="1709685213840" duration="18880000" />
     </task>
     <servers />
   </component>

+ 1 - 1
application/api/controller/Article.php

@@ -508,7 +508,7 @@ class Article extends Base
                     $order =  ['id'=>'desc','sort'=>'desc'];
                     break;
             }
-            return  $is_release ? $query->order($order) : $query->order($order);
+            return  $is_release ? $query->order($order) : $query->where('status',1)->order($order);
         }])->find()->toArray();
         $detail['item_list'] = $detail['item_list2'];
         unset($detail['item_list2']);