This commit is contained in:
aozhiwei 2022-06-06 14:44:57 +08:00
parent 7f8930851d
commit ae8fab8fd6

View File

@ -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', '');