diff --git a/webapp/controller/OtherController.class.php b/webapp/controller/OtherController.class.php index cea19db2..e52458c7 100644 --- a/webapp/controller/OtherController.class.php +++ b/webapp/controller/OtherController.class.php @@ -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;