Procházet zdrojové kódy

提交代码修改

SCFC před 8 měsíci
rodič
revize
934d8ace85

+ 5 - 3
script/module/drawCard/UnlimitDrawLogic.lua

@@ -219,7 +219,7 @@ function UnlimitDrawLogic_Get(human)
 
     UnlimitDraw_SetNum(human, -1)
     UnlimitDrawLogic_Query(human)
-    RoleSystemLogic.onDot(human, RoleSystemDefine.ROLE_SYS_ID_111)
+    RoleSystemLogic.onDot(human, RoleSystemDefine.ROLE_SYS_ID_111, nil, true)
 end
 
 function onLogin(human)
@@ -270,7 +270,8 @@ function ModuleisOpen(human)
         and true == UnlimitDraw_GetNextLogin(human) then
         if UnlimitDraw_GetNum(human) > 0 then
             return true
-        else 
+        else
+            print("[ModuleisOpen] 当前系统未开放")
             return false
         end
     end
@@ -283,7 +284,8 @@ function isDot(human)
 
     if true == ModuleisOpen(human) then
         if UnlimitDraw_GetNum(human) > 0 then
-            print("[UnlimitDraw_isDot] 当前系统开放可抽取数量大于0 ")
+            local nNowNum = UnlimitDraw_GetNum(human)
+            print("[UnlimitDraw_isDot] 当前系统开放可抽取数量大于0 nNowNum = "..nNowNum)
             return true
         end
     end

+ 2 - 2
script/module/roleSystem/RoleSystemLogic.lua

@@ -276,8 +276,8 @@ function onDotByUuid(uuid, id)
 	end
 end
 
-function onDot(human,id, noSend)
-	if isOpen(human,id) ~= true then
+function onDot(human,id, noSend, bForceSend)
+	if isOpen(human,id) ~= true and not bForceSend then
 		return
 	end