瀏覽代碼

fix:排序修改

duxin 3 年之前
父節點
當前提交
0b17e4a2ec
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/activity/myPrize.go

+ 1 - 1
services/activity/myPrize.go

@@ -31,7 +31,7 @@ func (c *MyPrize) Show(r *ghttp.Request) {
 		"giving_rights": map[string]interface{}{"$exists": 0},
 	}
 	//老版用户关联
-	bData, _b := db.Mgo.Find("user_share", query, `{"createtime":-1}`, nil, false, 0, max)
+	bData, _b := db.Mgo.Find("user_share", query, `{"createtime":1}`, nil, false, 0, max)
 	if bData != nil && len(*bData) > 0 && _b {
 		allShare = append(allShare, *bData...)
 	}