Parcourir la source

修改mozhu相关代码

249435196@qq.com il y a 1 an
Parent
commit
ad63f4b2f1

+ 9 - 4
script/module/mozhu/MoZhuLogic.lua

@@ -40,9 +40,10 @@ local ChatUnion = require("chat.ChatUnion")
 local JjcActLogic = require("jjc.JjcActLogic")
 local DragonNestLogic = require("copy.DragonNestLogic")
 local HeroLogic = require("hero.HeroLogic")
+local MozhuMiddleLogic = require("mozhu.MoZhuMiddleLogic")
 
-MOZHU_OPEN_DAY = {[4]= 1, [7] = 1}
-MOZHU_OPEN_DAY_2 = {4, 7}
+MOZHU_OPEN_DAY = {[1]= 1,[2] = 1,[3] = 1,[4] = 1,[5] = 1,[6] = 1, [7] = 1}
+MOZHU_OPEN_DAY_2 = {1, 7}
 MOZHU_DAY_TIME = 24 * 60 * 60
 MOZHU_END_TIME = 22 * 60 * 60
 MOZHU_TIAOZHAN_CNT = 3   -- 魔蛛挑战次数
@@ -341,10 +342,14 @@ function query(human)
         end       
     end
     initHuman(human)
-    local msgInner =  InnerMsg.lw.LW_MOZHU_QUERY
+    local msgInner = {}
     msgInner.uuid = human.db._id
     msgInner.unionUuid = human.db.unionUuid
-    InnerMsg.sendMsg(0, msgInner)
+    --[[local msgInner =  InnerMsg.lw.LW_MOZHU_QUERY
+    msgInner.uuid = human.db._id
+    msgInner.unionUuid = human.db.unionUuid
+    InnerMsg.sendMsg(0, msgInner)]]
+    MozhuMiddleLogic.LW_MOZHU_QUERY(human,msgInner)
 end
 
 function WLQuery(human, msg)

+ 3 - 3
script/module/mozhu/MoZhuMiddleLogic.lua

@@ -128,7 +128,7 @@ function  LW_MOZHU_QUERY(fd, msg)
     end
     
    -- Util.printTable(mozhuDB)
-    local msgInner = InnerMsg.wl.WL_MOZHU_QUERY
+    local msgInner = {} --InnerMsg.wl.WL_MOZHU_QUERY
     msgInner.uuid = msg.uuid
     msgInner.myRank = 0
     msgInner.roleRank = {}
@@ -143,8 +143,8 @@ function  LW_MOZHU_QUERY(fd, msg)
     fontRoleRank(mozhuDB, msgInner, 10)
     fontMyRank(mozhuDB, msg.uuid, msgInner)
     fontMyUnion(mozhuDB, msg.unionUuid, msgInner)
-    InnerMsg.sendMsg(fd, msgInner)
-
+    --InnerMsg.sendMsg(fd, msgInner)
+    WL_MOZHU_QUERY(fd,msgInner)
 end