| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public function getPreAuthorizationUrl(string $callbackUrl, bool $copyWxVerify = true) : string |
||
| 45 | { |
||
| 46 | $queries = [ |
||
| 47 | 'copy_wx_verify' => $copyWxVerify ? 1 : 0, |
||
| 48 | 'component_appid' => $this->component['config']['app_id'], |
||
| 49 | 'appid' => $this->app['config']['app_id'], |
||
| 50 | 'redirect_uri' => $callbackUrl, |
||
| 51 | ]; |
||
| 52 | |||
| 53 | return 'https://mp.weixin.qq.com/cgi-bin/fastregisterauth?'.http_build_query($queries); |
||
| 54 | } |
||
| 55 | } |