diff --git a/app/Service/Api/Login/WxFastLoginService.php b/app/Service/Api/Login/WxFastLoginService.php index 560efe0..7f5e3da 100644 --- a/app/Service/Api/Login/WxFastLoginService.php +++ b/app/Service/Api/Login/WxFastLoginService.php @@ -14,6 +14,9 @@ use App\Exception\ApiException; use App\Model\UserThird; use App\Service\ServiceTrait\Api\WxMiniTrait; use Hyperf\DbConnection\Db; +use Psr\Container\ContainerExceptionInterface; +use Psr\Container\NotFoundExceptionInterface; +use RedisException; class WxFastLoginService extends LoginBaseService { @@ -24,7 +27,12 @@ class WxFastLoginService extends LoginBaseService */ const int LOGIN_TYPE = 2; - + /** + * @return array + * @throws ContainerExceptionInterface + * @throws NotFoundExceptionInterface + * @throws RedisException + */ public function handle() { $this->jsCode = $this->request->input('js_code'); @@ -46,6 +54,10 @@ class WxFastLoginService extends LoginBaseService return $this->getReturn(); } + /** + * 注册 + * @return void + */ protected function register(): void { $thirdInfo = $this->userThirdModel->getThirdInfoByOpenId($this->openId); diff --git a/config/autoload/system.php b/config/autoload/system.php index afe0250..addb8d6 100644 --- a/config/autoload/system.php +++ b/config/autoload/system.php @@ -22,7 +22,7 @@ return [ // admin 默认密码 'admin_default_password' => '123456', // 微信小程序的appid - 'wx_appid' => env('WX_APPID',''), + 'wx_appid' => env('WX_APPID','wxc2bc0e47e212d831'), // 微信小程序的secret - 'wx_secret' => env('WX_SECRET',''), + 'wx_secret' => env('WX_SECRET','5d89ebae17d836625f0e155216d71f2d'), ]; \ No newline at end of file