1
This commit is contained in:
parent
1025a621db
commit
ff35d2d44b
@ -376,6 +376,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');
|
||||
}
|
||||
$heroDb = Hero::findByAccountId(myself()->_getAccountId(), $userInfo['hero_uniid']);
|
||||
if (!$heroDb) {
|
||||
@ -414,6 +415,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');
|
||||
}
|
||||
$heroDb = Hero::findByAccountId(myself()->_getAccountId(), $userInfo['hero_uniid']);
|
||||
if (!$heroDb) {
|
||||
@ -453,6 +455,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');
|
||||
}
|
||||
$heroDb = Hero::findByAccountId(myself()->_getAccountId(), $heroUniId);
|
||||
if (!$heroDb) {
|
||||
|
@ -41,4 +41,12 @@ class Circuit extends BaseModel
|
||||
return $row ? $row['cumulative_score'] : 0;
|
||||
}
|
||||
|
||||
public static function getCurrentMyScore(){
|
||||
$circuitMeta = myself()->_callMtStatic('CircuitTime', 'getCurrentCircuit');
|
||||
if (empty($circuitMeta)) {
|
||||
return 0;
|
||||
}
|
||||
return self::getMyScore($circuitMeta['circuit_season']);
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user