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