This commit is contained in:
aozhiwei 2023-08-30 18:38:15 +08:00
parent 375838e685
commit d3de48d0bd

View File

@ -9,12 +9,19 @@ class AccountVerifyController extends BaseController {
$guestAccount = getReqVal('guest_account', ''); $guestAccount = getReqVal('guest_account', '');
$targetPlat = getReqVal('target_plat', ''); $targetPlat = getReqVal('target_plat', '');
$targetAccount = getReqVal('target_account', ''); $targetAccount = getReqVal('target_account', '');
$channel = phpcommon\extractChannel($guestAccount);
$gameId = phpcommon\extractGameId($guestAccount);
if ($channel != TAPTAP_CHANNEL ||
$gameId != 2006) {
myself()->_rspErr(1, 'guest_account error');
return;
}
{ {
$row = SqlHelper::ormSelectOne( $row = SqlHelper::ormSelectOne(
myself()->_getMysql(''), myself()->_getMysql(''),
't_user', 't_user',
array( array(
'account_id' => TAPTAP_CHANNEL . '_2006_' . $guestAccount 'account_id' => $guestAccount
)); ));
if (!$row) { if (!$row) {
myself()->_rspErr(1, 'guest_account not found'); myself()->_rspErr(1, 'guest_account not found');