作者 赵彬吉

update

@@ -62,7 +62,7 @@ class LoginController extends BaseController @@ -62,7 +62,7 @@ class LoginController extends BaseController
62 * @time :2023/8/7 9:07 62 * @time :2023/8/7 9:07
63 */ 63 */
64 public function getAccessAddress(LoginLogic $logic){ 64 public function getAccessAddress(LoginLogic $logic){
65 - $data = $logic->accessAddress($this->manage['mobile']); 65 + $data = $logic->accessAddress($this->manage['id']);
66 return $this->response('success',Code::SUCCESS,$data); 66 return $this->response('success',Code::SUCCESS,$data);
67 } 67 }
68 68
@@ -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('未在演示项目注册账号');