1
This commit is contained in:
parent
7f8930851d
commit
ae8fab8fd6
@ -22,6 +22,33 @@ use models\BuyRecord;
|
||||
class BcUserController extends BaseController {
|
||||
|
||||
public function info()
|
||||
{
|
||||
$account = strtolower(getReqVal('account', ''));
|
||||
$token = getReqVal('token', '');
|
||||
$gameId = 2006;
|
||||
$channel = BC_CHANNEL;
|
||||
$accountId = phpcommon\createAccountId($channel, $gameId, $account);
|
||||
$conn = myself()->_getMarketMysql($accountId);
|
||||
$row = SqlHelper::ormSelectOne(
|
||||
$conn,
|
||||
't_user_wallet_offline_temp',
|
||||
array(
|
||||
'account_id' => $accountId,
|
||||
));
|
||||
|
||||
$gold = 0;
|
||||
$diamond = 0;
|
||||
if ($row) {
|
||||
$gold = $row['gold'];
|
||||
$diamond = $row['diamond'];
|
||||
}
|
||||
myself()->_rspData(array(
|
||||
'gold' => $gold,
|
||||
'diamond' => $diamond
|
||||
));
|
||||
}
|
||||
|
||||
private function old_info()
|
||||
{
|
||||
$account = strtolower(getReqVal('account', ''));
|
||||
$token = getReqVal('token', '');
|
||||
|
Loading…
x
Reference in New Issue
Block a user