|
如果想了解更多看这个帖子:
http://www.xyz-hunter.paangood.c ... id=3179&fpage=1
装备能当药吃的BUG
感谢报告,奖励现金50,000,此bug已修复。
其他安过此版本的朋友可以这样修复:
找- $query = $db->query("SELECT A.id,A.itemtype,A.itemnum,A.itemplus,B.itemname,B.itemtext,B.itemlevel FROM {$tablepre}mypetpacket A,{$tablepre}mypetitemdata B WHERE A.username='$discuz_user' And A.id ='$itemid' And A.itemtype =B.itemtype AND A.deleted<>1 order by A.itemtype,A.id ;");
复制代码 替换成- $query = $db->query("SELECT A.id,A.itemtype,A.itemnum,A.itemplus,B.itemname,B.itemtext,B.itemlevel,B.trade FROM {$tablepre}mypetpacket A,{$tablepre}mypetitemdata B WHERE A.username='$discuz_user' And A.id ='$itemid' And A.itemtype =B.itemtype AND A.deleted<>1 order by A.itemtype,A.id ;");
复制代码
在- if(!$itemdata=$db->fetch_array($query)){ showmessage("道具使用失败!!","pet.php?index=$returl"); }
复制代码 下加:- if(strpos($itemdata['trade'],"useable")===false) showmessage("此物品不可使用!!","pet.php?index=$returl");
复制代码 |
|