_getSelfMysql(), 't_circuit_battle', array( 'account_id' => myself()->_getAccountId(), 'season' => $season ), array( 'cumulative_score' => $score, 'modifytime' => myself()->_getNowTime() ), array( 'account_id' => myself()->_getAccountId(), 'season' => $season, 'cumulative_score' => $score, 'createtime' => myself()->_getNowTime(), 'modifytime' => myself()->_getNowTime() ) ); } public static function getMyScore($season){ $row = SqlHelper::ormSelectOne( myself()->_getMysql(''), 't_circuit_battle', array( 'account_id' => myself()->_getAccountId(), 'season' => $season ) ); 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']); } }