Pārlūkot izejas kodu

Merge branch 'dev'

guhongwei 2 gadi atpakaļ
vecāks
revīzija
e9e0aa3390

+ 1 - 1
app/controller/system/config/.goodsTags.js

@@ -35,7 +35,7 @@ module.exports = {
     options: {
     options: {
       query: ['skip', 'limit'],
       query: ['skip', 'limit'],
       sort: ['sort'],
       sort: ['sort'],
-      desc: false,
+      desc: true,
       count: true,
       count: true,
     },
     },
   },
   },

+ 1 - 1
app/controller/system/config/.platformAct.js

@@ -33,7 +33,7 @@ module.exports = {
     service: 'query',
     service: 'query',
     options: {
     options: {
       query: ['skip', 'limit'],
       query: ['skip', 'limit'],
-      sort: ['meta.createdAt'],
+      sort: ['sort'],
       desc: true,
       desc: true,
       count: true,
       count: true,
     },
     },

+ 1 - 1
app/service/system/platformAct.js

@@ -19,7 +19,7 @@ class PlatformActService extends CrudService {
     const { populate } = this.getRefMods();
     const { populate } = this.getRefMods();
     // 带ref查询
     // 带ref查询
     let rs = await this.model
     let rs = await this.model
-      .find(condition, projection, { skip, limit, sort: { sort: 1, 'meta.createdAt': -1 } })
+      .find(condition, projection, { skip, limit, sort: { sort: -1, 'meta.createdAt': -1 } })
       .populate(populate)
       .populate(populate)
       .exec();
       .exec();
     rs = JSON.parse(JSON.stringify(rs));
     rs = JSON.parse(JSON.stringify(rs));