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