This commit is contained in:
hujiabin 2024-04-25 11:57:52 +08:00
parent 6403b8a8f2
commit 6c5f84fa98

View File

@ -53,9 +53,9 @@ class OtherController extends BaseAuthedController {
$state = 0;
switch ($type){
case self::HERO : {
$res = myself()->_getSelfMysql()->execQueryOne("SELECT COUNT(idx) as totalNum FROM t_hero WHERE account_id=:account AND is_new=:is_new LIMIT 1",array(
$res = myself()->_getSelfMysql()->execQueryOne("SELECT COUNT(idx) as totalNum FROM t_hero WHERE account_id=:account AND is_old=:is_old LIMIT 1",array(
'account' => myself()->_getAccountId(),
'is_new' => 0,
'is_old' => 0,
));
if ($res['totalNum']){
$state = 1;
@ -67,9 +67,9 @@ class OtherController extends BaseAuthedController {
}
break;
case self::CHIP :{
$res = myself()->_getSelfMysql()->execQueryOne("SELECT COUNT(idx) as totalNum FROM t_chip WHERE account_id=:account AND is_new=:is_new LIMIT 1",array(
$res = myself()->_getSelfMysql()->execQueryOne("SELECT COUNT(idx) as totalNum FROM t_chip WHERE account_id=:account AND is_old=:is_old LIMIT 1",array(
'account' => myself()->_getAccountId(),
'is_new' => 0,
'is_old' => 0,
));
if ($res['totalNum']){
$state = 1;
@ -81,9 +81,9 @@ class OtherController extends BaseAuthedController {
}
break;
case self::BAG :{
$res = myself()->_getSelfMysql()->execQueryOne("SELECT COUNT(idx) as totalNum FROM t_bag WHERE account_id=:account AND is_new=:is_new LIMIT 1",array(
$res = myself()->_getSelfMysql()->execQueryOne("SELECT COUNT(idx) as totalNum FROM t_bag WHERE account_id=:account AND is_old=:is_old LIMIT 1",array(
'account' => myself()->_getAccountId(),
'is_new' => 0,
'is_old' => 0,
));
if ($res['totalNum']){
$state = 1;