|
@@ -18,6 +18,7 @@ use app\common\enum\notice\NoticeEnum;
|
|
|
use app\common\model\master_worker\MasterWorker;
|
|
use app\common\model\master_worker\MasterWorker;
|
|
|
use app\common\model\notice\NoticeSetting;
|
|
use app\common\model\notice\NoticeSetting;
|
|
|
use app\common\service\wechat\WeChatOaService;
|
|
use app\common\service\wechat\WeChatOaService;
|
|
|
|
|
+use app\workerapi\logic\DictLogic;
|
|
|
use app\workerapi\logic\LoginLogic;
|
|
use app\workerapi\logic\LoginLogic;
|
|
|
use app\workerapi\validate\LoginAccountValidate;
|
|
use app\workerapi\validate\LoginAccountValidate;
|
|
|
use app\workerapi\validate\RegisterValidate;
|
|
use app\workerapi\validate\RegisterValidate;
|
|
@@ -31,7 +32,7 @@ use app\workerapi\validate\RegisterValidate;
|
|
|
class LoginController extends BaseApiController
|
|
class LoginController extends BaseApiController
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
- public array $notNeedLogin = ['register', 'account', 'logout','testWeChat'];
|
|
|
|
|
|
|
+ public array $notNeedLogin = ['register', 'account', 'logout','testWeChat','getCredentialName'];
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -69,10 +70,11 @@ class LoginController extends BaseApiController
|
|
|
* 获取证件信息
|
|
* 获取证件信息
|
|
|
* @return \think\response\Json
|
|
* @return \think\response\Json
|
|
|
*/
|
|
*/
|
|
|
-// public function getCredentialName()
|
|
|
|
|
-// {
|
|
|
|
|
-//
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ public function getCredentialName()
|
|
|
|
|
+ {
|
|
|
|
|
+ $res = DictLogic::groupData(['type'=>'credential_name']);
|
|
|
|
|
+ return $this->success('', $res);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|