Merge branch 'china/dev-c' of http://60.1.1.230/gaoxin/JL_Client into china/dev-c

dev_chengFeng
jiaoyangna 2021-06-09 17:45:29 +08:00
commit 37d36a511f
3 changed files with 16 additions and 10 deletions

View File

@ -1938,10 +1938,16 @@ end
-- 网络url转码
function decodeURI(s)
if not s then
return ""
end
s = string.gsub(s, '%%(%x%x)', function(h) return string.char(tonumber(h, 16)) end)
return s
end
function encodeURI(s)
if not s then
return ""
end
s = string.gsub(s, "([^%w%.%- ])", function(c) return string.format("%%%02X", string.byte(c)) end)
return string.gsub(s, " ", "+")
end

View File

@ -523,15 +523,15 @@ function SkillCaster:CheckSkillHitEffect(checkType, combat, skill)
local sortingOrder = self.owner.role.camp == 0 and self.owner.GameObject:GetComponent("Canvas").sortingOrder + 21 or BattleManager.GetBattleSorting() + 20
local go2 = BattleManager.LoadAsset(combat.Hit, sortingOrder)
-- go2.transform:SetParent(self.owner.GameObject.transform.parent)
go2.transform:SetParent(self.effectRoot.transform)
go2.transform:SetParent(self.owner.GameObject.transform.parent)
-- 检测特效旋转
if self:CheckRotate(go2, combat.HitOrientation) then
offset = -offset
end
go2.transform.localScale = Vector3.one
go2.transform.localPosition = Vector3.zero--self.GameObject.transform.localPosition + Vector3.New(0, self.BuffFloatingCount * 180, 0)
go2.transform.anchoredPosition = offset--Vector2.zero
go2.transform:SetParent(self.effectRoot.transform)
go2.transform.localScale = Vector3.one
go2:SetActive(true)
BattleManager.AddDelayRecycleRes(combat.Hit, go2, 5)
end

View File

@ -37,13 +37,13 @@ function this.Initialize()
local result = string.split(loginResp, "#")
result[1] = tonumber(result[1])
if result[1] == SDK_RESULT.SUCCESS then
AppConst.SdkId = result[2]
AppConst.OpenId = result[2]
this.SdkLoginTimeStamp = result[3]
AppConst.TokenStr = result[4]
AppConst.SdkChannel = result[5]
this.extData = result[6]
this.p_appId = result[7]
AppConst.SdkId = result[2] or ""
AppConst.OpenId = result[2] or ""
this.SdkLoginTimeStamp = result[3] or ""
AppConst.TokenStr = result[4] or ""
AppConst.SdkChannel = result[5] or ""
this.extData = result[6] or ""
this.p_appId = result[7] or ""
AppConst.SdkPackageName = AndroidDeviceInfo.Instance:GetPackageName()
end
-- 判断是否是注册并登录