diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_QiJieSingleTreasure.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_QiJieSingleTreasure.lua
index c30919e707..e4cd29152d 100644
--- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_QiJieSingleTreasure.lua
+++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_QiJieSingleTreasure.lua
@@ -28,18 +28,26 @@ end
function QiJieSingleTreasure:BindEvent()
Util.AddClick(self.activeBtn,function()
- if BagManager.GetTotalItemNum(self.data.Cost[1])>=self.data.Cost[2] then
- local state = self.data.state
+ local state = self.data.state
+ if state == 2 then
+ if BagManager.GetTotalItemNum(self.data.Cost[1])>=self.data.Cost[2] then
+ NetManager.SevenWorldRelicRequest(self.data.Id,function ()
+ Game.GlobalEvent:DispatchEvent(GameEvent.QiJieShiLian.BuySingleTreasure)
+ self.parent:ClosePanel()
+ PopupTipPanel.ShowTip("成功解锁遗物并将其激活!")
+ end)
+ end
+ elseif state == 0 then
NetManager.SevenWorldRelicRequest(self.data.Id,function ()
Game.GlobalEvent:DispatchEvent(GameEvent.QiJieShiLian.BuySingleTreasure)
self.parent:ClosePanel()
- if state == 0 then
- PopupTipPanel.ShowTip("已激活遗物!")
- elseif state == 1 then
- PopupTipPanel.ShowTip("已取消遗物激活状态!")
- elseif state == 2 then
- PopupTipPanel.ShowTip("成功解锁遗物并将其激活!")
- end
+ PopupTipPanel.ShowTip("已激活遗物!")
+ end)
+ elseif state == 1 then
+ NetManager.SevenWorldRelicRequest(self.data.Id,function ()
+ Game.GlobalEvent:DispatchEvent(GameEvent.QiJieShiLian.BuySingleTreasure)
+ self.parent:ClosePanel()
+ PopupTipPanel.ShowTip("已取消遗物激活状态!")
end)
end
end)