1
This commit is contained in:
parent
4e91f065da
commit
afc61298be
@ -371,12 +371,17 @@ class UserController extends BaseAuthedController {
|
||||
public function query()
|
||||
{
|
||||
$name = getReqVal('name', '');
|
||||
$filter = array(
|
||||
'name' => $name,
|
||||
'channel' => BC_CHANNEL
|
||||
);
|
||||
if (SERVER_ENV == _ONLINE) {
|
||||
$filter['channel'] = BC_CHANNEL;
|
||||
}
|
||||
$userDb = SqlHelper::ormSelectOne
|
||||
($this->_getMysql($name),
|
||||
't_user',
|
||||
array(
|
||||
'name' => $name
|
||||
)
|
||||
$filter
|
||||
);
|
||||
if (!$userDb) {
|
||||
$this->_rspErr(1, 'not found');
|
||||
|
Loading…
x
Reference in New Issue
Block a user