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