From 5fd906adaa44a3663cd2d243b76168c745d67f8d Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期四, 21 三月 2019 15:39:21 +0800
Subject: [PATCH] 3131 【BUG】【2.0】拍卖,仙盟记录,缺少名字
---
System/Auction/AuctionHelpModel.cs | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/System/Auction/AuctionHelpModel.cs b/System/Auction/AuctionHelpModel.cs
index b5f2676..a57924c 100644
--- a/System/Auction/AuctionHelpModel.cs
+++ b/System/Auction/AuctionHelpModel.cs
@@ -189,6 +189,10 @@
int score = -1;
string equipGuid = string.Empty;
var equipSet = equipModel.GetEquipSet(equipLevel);
+ if (equipSet == null)
+ {
+ return -1;
+ }
equipGuid = equipSet.GetEquip(equipPlace);
var equiped = !string.IsNullOrEmpty(equipGuid);
if (equiped)
@@ -199,14 +203,14 @@
return score;
}
- public bool WhetherEquipped(int equipLevel, int equipPlace)//鏄惁瑁呭
+ public bool WhetherEquipped(int equipLevel, int equipPlace)//鏄惁鏄剧ず闇�瑕�
{
bool isBool = false;
string equipGuid = string.Empty;
var equipSet = equipModel.GetEquipSet(equipLevel);
if (equipSet == null)
{
- return false;
+ return true;
}
equipGuid = equipSet.GetEquip(equipPlace);
isBool = !string.IsNullOrEmpty(equipGuid);
--
Gitblit v1.8.0