This commit is contained in:
aozhiwei 2024-10-15 17:14:54 +08:00
parent a81757dbeb
commit 432871a78b
2 changed files with 3 additions and 1 deletions

View File

@ -377,6 +377,7 @@ class UserController extends BaseAuthedController {
$userInfo['total_lucky'] = Hero::getAccountLuckyTemp();
$userInfo['admission_item_num'] = myself()->_getItemCount(900006, $userInfo);
$userInfo['circuit_score'] = myself()->_callModelStatic('Circuit', 'getCurrentMyScore');
$userInfo['has_lucky_symbol'] = myself()->_callModelStatic('LuckySymbol', 'hasLuckySymbol');
}
$heroDb = Hero::findByAccountId(myself()->_getAccountId(), $userInfo['hero_uniid']);
if (!$heroDb) {

View File

@ -16,7 +16,8 @@ class LuckySymbol extends BaseModel {
'account_id' => myself()->_getAccountId(),
)
);
return empty($row) ? false : $row['in_use_item'] > 0;
$has = empty($row) ? false : $row['in_use_item'] > 0;
return $has ? 1 : 0;
}
public static function dec()