|
@@ -111,7 +111,7 @@ class LoginLogic extends BaseLogic |
|
@@ -111,7 +111,7 @@ class LoginLogic extends BaseLogic |
|
111
|
* @method :post
|
111
|
* @method :post
|
|
112
|
* @time :2023/8/7 9:09
|
112
|
* @time :2023/8/7 9:09
|
|
113
|
*/
|
113
|
*/
|
|
114
|
- public function accessAddress($mobile){
|
114
|
+ public function accessAddress($manage_id){
|
|
115
|
$serviceSettingModel = new Service();
|
115
|
$serviceSettingModel = new Service();
|
|
116
|
$info = $serviceSettingModel->read(['type'=>4]);
|
116
|
$info = $serviceSettingModel->read(['type'=>4]);
|
|
117
|
if($info === false){
|
117
|
if($info === false){
|
|
@@ -125,6 +125,7 @@ class LoginLogic extends BaseLogic |
|
@@ -125,6 +125,7 @@ class LoginLogic extends BaseLogic |
|
125
|
//演示账号 用自己的号登录
|
125
|
//演示账号 用自己的号登录
|
|
126
|
if(!empty($this->param['project_id']) && $this->param['project_id'] == Project::DEMO_PROJECT_ID){
|
126
|
if(!empty($this->param['project_id']) && $this->param['project_id'] == Project::DEMO_PROJECT_ID){
|
|
127
|
unset($this->param['project_id']);
|
127
|
unset($this->param['project_id']);
|
|
|
|
128
|
+ $mobile = Manage::where('id', $manage_id)->value('mobile');
|
|
128
|
$user = User::where('mobile', $mobile)->first();
|
129
|
$user = User::where('mobile', $mobile)->first();
|
|
129
|
if(!$user){
|
130
|
if(!$user){
|
|
130
|
$this->fail('未在演示项目注册账号');
|
131
|
$this->fail('未在演示项目注册账号');
|