1
This commit is contained in:
commit
7f8550dba5
@ -105,7 +105,7 @@ class RankingController extends BaseAuthedController {
|
||||
)
|
||||
);
|
||||
if ($row['row_count'] > 0) {
|
||||
$count = ceil($row['row_count'] / 10.0);
|
||||
$count = ceil($row['row_count'] / 2);
|
||||
$rows = myself()->_getSelfMysql()->execQuery(
|
||||
'SELECT * FROM t_rank_activity ' .
|
||||
'WHERE type=:type AND channel=:channel AND value>=:value ' .
|
||||
@ -135,6 +135,21 @@ class RankingController extends BaseAuthedController {
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
$row = myself()->_getSelfMysql()->execQueryOne(
|
||||
'SELECT * FROM t_rank_activity ' .
|
||||
'WHERE type=:type AND channel=:channel AND account_id=:account_id;',
|
||||
array(
|
||||
':type' => $type,
|
||||
':channel' => $channel,
|
||||
':account_id' => myself()->_getAccountId(),
|
||||
)
|
||||
);
|
||||
if ($row) {
|
||||
$myRanked['value'] = $row['value'];
|
||||
$myRanked['modifytime'] = $row['modifytime'];
|
||||
}
|
||||
}
|
||||
}
|
||||
$timeZone = 8;
|
||||
$rankingData = array(
|
||||
|
@ -371,12 +371,16 @@ class UserController extends BaseAuthedController {
|
||||
public function query()
|
||||
{
|
||||
$name = getReqVal('name', '');
|
||||
$filter = array(
|
||||
'name' => $name,
|
||||
);
|
||||
if (SERVER_ENV == _ONLINE) {
|
||||
$filter['channel'] = BC_CHANNEL;
|
||||
}
|
||||
$userDb = SqlHelper::ormSelectOne
|
||||
($this->_getMysql($name),
|
||||
't_user',
|
||||
array(
|
||||
'name' => $name
|
||||
)
|
||||
$filter
|
||||
);
|
||||
if (!$userDb) {
|
||||
$this->_rspErr(1, 'not found');
|
||||
|
@ -42,7 +42,7 @@ class RankActivityService extends BaseService {
|
||||
{
|
||||
$this->internalUpdateRankActivity(
|
||||
self::ALIVE_TYPE,
|
||||
getReqVal('alive_time', 0),
|
||||
getReqVal('alive_time', 0) / 1000,
|
||||
self::OP_SUM);
|
||||
$this->internalUpdateRankActivity(
|
||||
self::KILLS_TYPE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user