|
马上注册,下载996引擎,与更多游戏开发者交流。
您需要 登录 才可以下载或查看,没有账号?注册
×
--判断是否是主区
if tonumber(mainServiceId) == tonumber(serviceId) then
local file = io.open(path, "a+")
local result, errinfo = pcall(function()
if file then
file:write(tongqu_zhuli_list)
file:close()
end
end)
--创建通区转区文件
tongfile(0, path)
else
getmaintongfile(mainServiceId, log_path, path) --不是主区拉取主区文件(带主区命令),主区文件替换本地文件
local log_file = io.open(log_path, "a+")
local result, errinfo = pcall(function()
if log_file then
log_file:write(tongqu_zhuli_list)
log_file:close()
end
end)
--通区同步文本
updatemaintongfile(mainServiceId,path, log_path)
end
end)
end
本区的文件写入了,但是同步到主区文件的时候就是同步不上,请问这是什么问题呢?
|
|