|
楼主 |
发表于 2023-8-19 10:39:42
|
显示全部楼层
Run-time error
World: tj2.sjever.net
Function/Sub: haltok called by trigger
Reason: 正在处理触发器 "check_halt1"
[string "Script file"]:2344: attempt to perform arithmetic on local 's' (a string value)
stack traceback:
[string "Script file"]:2344: in function <[string "Script file"]:2304>
(tail call): ?
(tail call): ?
脚本错误处的上下文:
2340 : else
2341 : local s = f:read()
2342 : f:close()
2343 : if s ~= os.date("%Y%m%d%H") then
2344*: if os.date("%Y%m%d%H") - s >= 100 then
2345 : local x=tostring(os.date("%Y%m%d%H"))
2346 : local y1=tonumber(string.sub(x,-4,-3))
2347 : if y1==1 then
2348 : local y=tonumber(string.sub(x,-2,-1)) |
|