Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class Client extends BaseClient |
||
17 | { |
||
18 | /** |
||
19 | * @var \EasyWeChat\OpenPlatform\Application |
||
20 | */ |
||
21 | protected $component; |
||
22 | |||
23 | /** |
||
24 | * Client constructor. |
||
25 | * |
||
26 | * @param \EasyWeChat\Kernel\ServiceContainer $app |
||
27 | * @param \EasyWeChat\OpenPlatform\Application $component |
||
28 | */ |
||
29 | public function __construct(ServiceContainer $app, Application $component) |
||
30 | { |
||
31 | parent::__construct($app); |
||
32 | |||
33 | $this->component = $component; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * 从第三方平台跳转至微信公众平台授权注册页面, 授权注册小程序. |
||
38 | * |
||
39 | * @param string $callbackUrl |
||
40 | * @param bool $copyWxVerify |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getPreAuthorizationUrl(string $callbackUrl, bool $copyWxVerify = true) : string |
||
54 | } |
||
55 | } |