Merge branch 'feature/huangqijiuguan' into dev
This commit is contained in:
commit
a91a8f0657
@ -127,7 +127,7 @@ export default class HQJGFun {
|
|||||||
*/
|
*/
|
||||||
static async getRankList(hdid: number) {
|
static async getRankList(hdid: number) {
|
||||||
let uids = await G.mongodb.collection("event").find(
|
let uids = await G.mongodb.collection("event").find(
|
||||||
{ type: this.dataType(hdid) },
|
{ type: this.dataType(hdid), "bossres.maxdps": { $gt: 0 } },
|
||||||
{
|
{
|
||||||
sort: { "bossres.maxdps": -1, "bossres.zhanli": -1 },
|
sort: { "bossres.maxdps": -1, "bossres.zhanli": -1 },
|
||||||
projection: { uid: 1, bossres: 1 }
|
projection: { uid: 1, bossres: 1 }
|
||||||
@ -369,7 +369,7 @@ export default class HQJGFun {
|
|||||||
// 设置任务
|
// 设置任务
|
||||||
if (isset == 1) {
|
if (isset == 1) {
|
||||||
await G.mongodb.collection('event').updateOne({ uid: call.uid, type: this.dataType(hd.hdid) }, setData)
|
await G.mongodb.collection('event').updateOne({ uid: call.uid, type: this.dataType(hd.hdid) }, setData)
|
||||||
|
|
||||||
if ((await this.getHongDian(call, hd, mydata)).show) {
|
if ((await this.getHongDian(call, hd, mydata)).show) {
|
||||||
G.server.sendMsgByUid(call.uid, "msg_s2c/HongDianChange", ["huodonghd"])
|
G.server.sendMsgByUid(call.uid, "msg_s2c/HongDianChange", ["huodonghd"])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user