wupengfei 2 years ago
parent
commit
42cd888408
2 changed files with 3 additions and 3 deletions
  1. 2 2
      .idea/workspace.xml
  2. 1 1
      application/nutrition/controller/TopSearch.php

+ 2 - 2
.idea/workspace.xml

@@ -3,7 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/api/controller/Datum.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Datum.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/nutrition/controller/TopSearch.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/controller/TopSearch.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -225,7 +225,7 @@
       <workItem from="1665448772446" duration="594000" />
       <workItem from="1665451038308" duration="20434000" />
       <workItem from="1665535775245" duration="5105000" />
-      <workItem from="1665543789478" duration="5637000" />
+      <workItem from="1665543789478" duration="5750000" />
     </task>
     <servers />
   </component>

+ 1 - 1
application/nutrition/controller/TopSearch.php

@@ -44,7 +44,7 @@ class TopSearch extends Controller
         ];
         $query = $this->_query($this->table)->where('is_deleted',0);
         $query->like('title');
-        $query->order('sort desc, id desc')->page();
+        $query->order('num desc, sort desc,id desc')->page();
     }
 
     /**