mm
This commit is contained in:
@@ -1 +1 @@
|
||||
{"2020158":{"2":{"id":"2", "host":"app.ttf-cti.com", "name":"\u6d4b\u8bd5\u670d\u52a1\u5668", "iosVer":"ceef852ff2aaecf717fb291eebe3c624", "port":29006, "androidVer":"45f853394a2d2eec6e57960b9ffcbc97", "isDev":1}, "3":{"id":"3", "host":"192.168.1.11", "name":"\u672c\u5730\u6d4b\u8bd5", "iosVer":"ceef852ff2aaecf717fb291eebe3c624", "port":29000, "androidVer":"45f853394a2d2eec6e57960b9ffcbc97", "isDev":1}, "1":{"id":"1", "host":"app.ttf-cti.com", "name":"\u6b63\u5f0f\u670d\u52a1\u5668", "iosVer":"ceef852ff2aaecf717fb291eebe3c624", "port":29004, "androidVer":"45f853394a2d2eec6e57960b9ffcbc97", "isDev":0}}}
|
||||
{"2020158":{"2":{"id":"2", "host":"app.ttf-cti.com", "name":"\u6d4b\u8bd5\u670d\u52a1\u5668", "iosVer":"ceef852ff2aaecf717fb291eebe3c624", "port":29006, "androidVer":"cceff7919d47acefdae7e412c2f3f5e7", "isDev":1}, "3":{"id":"3", "host":"192.168.1.11", "name":"\u672c\u5730\u6d4b\u8bd5", "iosVer":"ceef852ff2aaecf717fb291eebe3c624", "port":29000, "androidVer":"cceff7919d47acefdae7e412c2f3f5e7", "isDev":1}, "1":{"id":"1", "host":"app.ttf-cti.com", "name":"\u6b63\u5f0f\u670d\u52a1\u5668", "iosVer":"ceef852ff2aaecf717fb291eebe3c624", "port":29004, "androidVer":"cceff7919d47acefdae7e412c2f3f5e7", "isDev":0}}}
|
||||
@@ -21,11 +21,12 @@ NetProto.setSever = function(_host, _port)
|
||||
socketUrl = joinStr("ws://", host, ":", port, "/tr_socket/websocket/")
|
||||
end
|
||||
|
||||
NetProto.isDebug = false
|
||||
|
||||
---@type Dist.SpringWebsocket.Client
|
||||
local socket = Client4Stomp.self
|
||||
local appid = 2020158
|
||||
local appsecret = "ea042bc86428ca968756a6e47b10742d"
|
||||
local isDebug = true
|
||||
local ErrCode = {
|
||||
success = 1000,
|
||||
invalidToken = 2019
|
||||
@@ -94,7 +95,7 @@ local dispatch = function(content, params)
|
||||
end
|
||||
|
||||
local dispatchHttp = function(content, params)
|
||||
if isDebug then
|
||||
if NetProto.isDebug then
|
||||
print(content)
|
||||
end
|
||||
local map = json.decode(content)
|
||||
@@ -168,7 +169,7 @@ NetProto.sendGet = function(cmd, map, callback, failedCallback, orgs, _baseUrl)
|
||||
failedCallback = failedCallback
|
||||
}
|
||||
url = Uri.EscapeUriString(url)
|
||||
if isDebug then
|
||||
if NetProto.isDebug then
|
||||
print(url)
|
||||
end
|
||||
WWWEx.get(url, NetProto.httpHeader, CLAssetType.text, dispatchHttp, onFailedSend, params, true, 1)
|
||||
@@ -353,7 +354,7 @@ end
|
||||
|
||||
---@param frame Dist.SpringWebsocket.StompFrame
|
||||
NetProto.OnReceiveStompMsg = function(frame)
|
||||
-- if isDebug then
|
||||
-- if NetProto.isDebug then
|
||||
-- print(frame.Code, frame.Content)
|
||||
-- end
|
||||
if frame.Code == StompStatus.OPENSERVER then
|
||||
@@ -394,7 +395,7 @@ NetProto.OnReceiveStompMsg = function(frame)
|
||||
end
|
||||
end
|
||||
|
||||
if isDebug then
|
||||
if NetProto.isDebug then
|
||||
printw(cmd, frame.Content)
|
||||
end
|
||||
if cmd then
|
||||
@@ -461,7 +462,7 @@ NetProto.sendSocket = function(content, callback, timeOutSec)
|
||||
end
|
||||
|
||||
NetProto.doSendMsg = function(contentStr)
|
||||
if isDebug then
|
||||
if NetProto.isDebug then
|
||||
print("send=", contentStr)
|
||||
end
|
||||
socket:Send("/tr_socket", {atytopic = "socket.server.operation"}, contentStr)
|
||||
|
||||
@@ -49,6 +49,7 @@ function CLLPStart.setLuasAtBegainning()
|
||||
Prefs.getUserName(),
|
||||
function(iswhite)
|
||||
if iswhite then
|
||||
NetProto.isDebug = true
|
||||
if ReporterMessageReceiver.self and ReporterMessageReceiver.self.gameObject then
|
||||
ReporterMessageReceiver.self.gameObject:SetActive(true)
|
||||
end
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
r8 (trCRM/resVer/Android/VerCtl/priority.ver8,d355588f9f678a2333c17a6be164732b8 %trCRM/resVer/Android/VerCtl/other.ver8,f3502f2ef879c7667f2af161db4bfdee
|
||||
r8 (trCRM/resVer/Android/VerCtl/priority.ver8,0601e37e701e00c5b9945ad22038c8a18 %trCRM/resVer/Android/VerCtl/other.ver8,f3502f2ef879c7667f2af161db4bfdee
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user