更新项目部分结构,新增加DB
This commit is contained in:
@@ -3,14 +3,11 @@
|
||||
namespace service\modules\v1\controllers;
|
||||
|
||||
use common\core\BaseServiceController;
|
||||
use common\enums\UserRoleEnum;
|
||||
use common\models\DoctorInfo;
|
||||
use common\models\HospitalYard;
|
||||
use common\models\PharmacistrInfo;
|
||||
use common\models\ServiceUserToken;
|
||||
use common\models\oldDb\DoctorInfo;
|
||||
use common\models\oldDb\HospitalYard;
|
||||
use common\models\oldDb\ServiceUserToken;
|
||||
use common\services\SmsService;
|
||||
use common\services\WeappService;
|
||||
use GuzzleHttp\Client;
|
||||
use service\models\forms\AgreementForm;
|
||||
use service\models\forms\LoginForm;
|
||||
use service\models\forms\MobileForm;
|
||||
@@ -61,7 +58,7 @@ class UserController extends BaseServiceController
|
||||
$this->requestValidate($post, [
|
||||
[['role', 'mobile'], 'required']
|
||||
]);
|
||||
$ServiceUser = \common\models\ServiceUser::findOne(['mobile' => $post['mobile']]);
|
||||
$ServiceUser = \common\models\oldDb\ServiceUser::findOne(['mobile' => $post['mobile']]);
|
||||
if (!$ServiceUser) {
|
||||
throw new Exception('您还没有任何账号');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user