作者 赵彬吉

update

... ... @@ -62,7 +62,7 @@ class LoginController extends BaseController
* @time :2023/8/7 9:07
*/
public function getAccessAddress(LoginLogic $logic){
$data = $logic->accessAddress($this->uid);
$data = $logic->accessAddress($this->manage['mobile']);
return $this->response('success',Code::SUCCESS,$data);
}
... ...
... ... @@ -11,6 +11,7 @@ use App\Models\Manage\MenuSpecial;
use App\Models\Project\Project;
use App\Models\Service\Service;
use App\Models\Sms\SmsLog;
use App\Models\User\User;
use App\Utils\EncryptUtils;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Hash;
... ... @@ -110,7 +111,7 @@ class LoginLogic extends BaseLogic
* @method :post
* @time :2023/8/7 9:09
*/
public function accessAddress($user_id){
public function accessAddress($mobile){
$serviceSettingModel = new Service();
$info = $serviceSettingModel->read(['type'=>4]);
if($info === false){
... ... @@ -124,7 +125,11 @@ class LoginLogic extends BaseLogic
//演示账号 用自己的号登录
if(!empty($this->param['project_id']) && $this->param['project_id'] == Project::DEMO_PROJECT_ID){
unset($this->param['project_id']);
$this->param['user_id'] = $user_id;
$user = User::where('mobile', $mobile)->first();
if(!$user){
$this->fail('未在演示项目注册账号');
}
$this->param['user_id'] = $user->id;
}
//获取超级管理员登录
if(isset($this->param['project_id']) && !empty($this->param['project_id'])){
... ...