39 lines
1.0 KiB
PHP
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;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|