game2006api/webapp/controller/AccountVerifyController.class.php
aozhiwei 783a2101c1 1
2023-08-25 11:25:21 +08:00

39 lines
1.0 KiB
PHP

<?php
use phpcommon\SqlHelper;
class AccountVerify extends BaseController {
public function canBind()
{
$guestAccount = getReqVal('guest_account', '');
$targetPlat = getReqVal('target_plat', '');
$targetAccount = getReqVal('target_account', '');
{
$row = SqlHelper::ormSelectOne(
myself()->_getMysql(''),
't_user',
array(
'account_id' => TAPTAP_CHANNEL . '_2006_' . $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;
}
}
}
}