回帖奖励 190 金币 回复本帖可获得 10 金币奖励! 每人限 1 次

0

回帖

2534

金币

1336

积分

积分
1336
发表于 2025-3-17 20:54:31 | 显示全部楼层 |阅读模式

马上注册,下载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

本区的文件写入了,但是同步到主区文件的时候就是同步不上,请问这是什么问题呢?


最后回复时间:2025-03-20 09:22:24官方回复了此贴
回复

使用道具 举报

1万

回帖

2万

金币

1万

积分

积分
19742
发表于 2025-3-20 09:22:24 | 显示全部楼层

回帖奖励 +10 金币

加输出看看是卡在哪里了
回复

使用道具 举报