This commit is contained in:
aozhiwei 2024-08-09 11:12:05 +08:00
parent 0df98d3f14
commit 6b3c2ce7d3

View File

@ -1,45 +0,0 @@
<?php
use phpcommon\SqlHelper;
class AccountVerifyController extends BaseController {
public function canBind()
{
$guestAccount = getReqVal('guest_account', '');
$targetPlat = getReqVal('target_plat', '');
$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(
myself()->_getMysql(''),
't_user',
array(
'account_id' => $guestAccount
));
if (!$row) {
myself()->_rspErr(1, 'guest_account not found');
return;
}
}
{
$row = SqlHelper::ormSelectOne(
myself()->_getMysql(''),
't_user',
array(
'account_id' => BC_POLY_CHANNEL . '_2006_' . $targetPlat . '_' . $targetAccount
));
if ($row) {
myself()->_rspErr(1, 'cannot bind');
return;
}
}
}
}