【七界试炼】商店刷新事件

dev_chengFeng
ZhangBiao 2021-09-23 16:46:35 +08:00
parent 9b24649f36
commit 93b3839727
3 changed files with 11 additions and 8 deletions

View File

@ -1539,7 +1539,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -0.000006914139, y: 0.0000021457672}
m_AnchoredPosition: {x: -0.000006914139, y: -12}
m_SizeDelta: {x: 300.59998, y: 41.9}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7897235475359925225

View File

@ -604,6 +604,7 @@ SHOP_TYPE = {
CHIZHANFENGYUN_SHOP = 74,--叱咤风云商店
SHIBUKEDANG_SHOP = 75,--势不可挡商店
XUANJIMIAOSUAN_SHOP = 76,--旋即妙算商店
QIJIE_SHOP = 81,--七界商店
}
PropertyTypeIconDef = {

View File

@ -75,12 +75,14 @@ function this.ReceiveShopData(msg)
-- 更新事件
Game.GlobalEvent:DispatchEvent(GameEvent.Shop.OnShopInfoChange)
--for _, shopData in ipairs(this.allShopData) do
-- Log( "商店id = " .. shopData.id)
-- for _, v in ipairs(shopData.storeItem) do
-- Log(v.id .."::::::::::" .. v.buyNum)
-- end
--end
for _, shopData in ipairs(this.allShopData) do
local name = ConfigManager.GetConfigDataByKey(ConfigName.StoreTypeConfig,"Id",shopData.id).Name
Log("商店名称:"..tostring(name).."商店id:"..shopData.id.." 结束时间:"..tostring(TimeStampToDateStr(shopData.endTime/1000))..
" 上次刷新时间:"..tostring(TimeStampToDateStr(shopData.lastRefreshTime/1000)))
-- for _, v in ipairs(shopData.storeItem) do
-- Log("商品Id:"..v.id .." 购买次数:" .. v.buyNum)
-- end
end
end
-- 更新商店数据
@ -746,7 +748,7 @@ function this.CountShopRefreshLeftTime(shopId)
--- 按时间长度刷新
elseif shopInfo.RefreshType[1] == 3 then
local shopData = this.GetShopDataByType(shopType)
if shopType == 12 then
if shopType == SHOP_TYPE.GUILD_SHOP or shopType == SHOP_TYPE.QIJIE_SHOP then
local lastRefreshTime = shopData.lastRefreshTime / 1000
local deltaSeconds = shopInfo.RefreshType[2] * 60 * 60
local lastTime = lastRefreshTime + deltaSeconds - GetTimeStamp()