...
|
...
|
@@ -41,12 +41,14 @@ class BackController extends WebAction { |
|
|
);
|
|
|
if (PassportModel::verifyCode($verifyCode)) {
|
|
|
if (Helpers::verifyEmail($phoneNum)) {
|
|
|
if (empty(PassportModel::getUserInfoByEmail($phoneNum))) {
|
|
|
$ret = PassportModel::getUserInfoByEmail($phoneNum);
|
|
|
if (empty($ret)) {
|
|
|
$data['message'] = '该账户不存在';
|
|
|
$data['code'] = 400;
|
|
|
}
|
|
|
} else if (Helpers::verifyMobile($phoneNum)) {
|
|
|
if (empty(PassportModel::getUserInfoByMobile($area, $phoneNum))) {
|
|
|
$ret = PassportModel::getUserInfoByMobile($area, $phoneNum);
|
|
|
if (empty($ret)) {
|
|
|
$data['message'] = '该账户不存在';
|
|
|
$data['code'] = 400;
|
|
|
}
|
...
|
...
|
|