1
This commit is contained in:
parent
6403b8a8f2
commit
6c5f84fa98
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user