modify
This commit is contained in:
@@ -48,6 +48,9 @@ function TRPConnect.procNetwork(cmd, succ, msg, paras)
|
||||
if (cmd == "connect") then
|
||||
-- socket正常
|
||||
require "db.DBRoot"
|
||||
if DBRoot then
|
||||
DBRoot.clean()
|
||||
end
|
||||
DBRoot.init()
|
||||
TRPConnect.getDataFromServer()
|
||||
end
|
||||
@@ -66,9 +69,6 @@ end
|
||||
|
||||
---public 从服务器取得数据
|
||||
function TRPConnect.getDataFromServer()
|
||||
if DBRoot then
|
||||
DBRoot.clean()
|
||||
end
|
||||
NetProto.send.filter_customers(
|
||||
function(content)
|
||||
if content.success then
|
||||
|
||||
Reference in New Issue
Block a user