|
@@ -14,6 +14,7 @@ use App\Services\Common\TaskService;
|
|
|
use App\Validators\RegisterValidatorRequest;
|
|
|
use Closure;
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
+use Illuminate\Support\Facades\DB;
|
|
|
|
|
|
class RegisterController extends WebBaseController
|
|
|
{
|
|
@@ -39,7 +40,7 @@ class RegisterController extends WebBaseController
|
|
|
* @var AuthService
|
|
|
*/
|
|
|
private $authService;
|
|
|
-
|
|
|
+ private $qrcode;
|
|
|
|
|
|
/**
|
|
|
* RegisterController constructor.
|
|
@@ -68,6 +69,7 @@ class RegisterController extends WebBaseController
|
|
|
});
|
|
|
$this->emailService = $emailService;
|
|
|
$this->authService = $authService;
|
|
|
+ $this->qrcode = DB::table('configs')->where('alias', '=', 'register_qrcode')->value('value');
|
|
|
}
|
|
|
|
|
|
public function registerIndex()
|
|
@@ -77,17 +79,17 @@ class RegisterController extends WebBaseController
|
|
|
|
|
|
public function registerCompany()
|
|
|
{
|
|
|
- return view('app.auth.register_company', ['title' => '企业会员注册']);
|
|
|
+ return view('app.auth.register_company', ['title' => '企业会员注册', 'qrcode' => $this->qrcode]);
|
|
|
}
|
|
|
|
|
|
public function registerPerson()
|
|
|
{
|
|
|
- return view('app.auth.register_person', ['title' => '个人会员注册']);
|
|
|
+ return view('app.auth.register_person', ['title' => '个人会员注册', 'qrcode' => $this->qrcode]);
|
|
|
}
|
|
|
|
|
|
public function registerOrg()
|
|
|
{
|
|
|
- return view('app.auth.register_org', ['title' => '机构会员注册']);
|
|
|
+ return view('app.auth.register_org', ['title' => '机构会员注册', 'qrcode' => $this->qrcode]);
|
|
|
}
|
|
|
|
|
|
public function showSendEmail($type)
|