|
楼主 |
发表于 2022-12-17 14:07:08
|
显示全部楼层
本帖最后由 zhaoziyu@tj 于 2022-12-18 09:14 编辑
function checkJob() --添加如下内容
if job.last ~= 'diemenglou' and (not condition.busy or condition.busy == 0) and locl.hour<22 or locl.hour>8 then
local fn = 'logs\\diemenglou_mark_'..score.id..'.log'
local f = io.open(fn,"r")
if not f then
return dml_check()
else
local s = f:read()
f:close()
if s ~= os.date("%Y%m%d%H") then
if os.date("%Y%m%d%H") - s >= 100 then
local x=tostring(os.date("%Y%m%d%H"))
local y1=tonumber(string.sub(x,-4,-3))
if y1==1 then
local y=tonumber(string.sub(x,-2,-1))
s=tostring(s)
local z=tonumber(string.sub(s,-2,-1))
if y>=z then
return dml_check()
end
else
return dml_check()
end
end
end
end
end |
|