feat : login wx
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user