修改多点未处理情况
This commit is contained in:
@@ -344,7 +344,7 @@ class Wechat
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成UrlScheme
|
||||
* 生成UrlLink
|
||||
* @throws NotFoundExceptionInterface
|
||||
* @throws RedirectionExceptionInterface
|
||||
* @throws ContainerExceptionInterface
|
||||
@@ -353,14 +353,14 @@ class Wechat
|
||||
* @throws TransportExceptionInterface
|
||||
* @throws ServerExceptionInterface
|
||||
*/
|
||||
public function createUrlScheme(array $options): array|string
|
||||
public function createUrlLink(array $options): array|string
|
||||
{
|
||||
try {
|
||||
$this->createApp($this->config['app_id'], $this->config['secret']);
|
||||
|
||||
$client = $this->createClient($this->config['app_id'], $this->config['secret']);
|
||||
|
||||
$response = $client->postJson('wxa/generatescheme', $options);
|
||||
$response = $client->postJson('wxa/generate_urllink', $options);
|
||||
|
||||
if ($response->isFailed()) {
|
||||
// 出错了,处理异常
|
||||
@@ -382,7 +382,7 @@ class Wechat
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取UrlScheme
|
||||
* 获取UrlLink
|
||||
* @throws NotFoundExceptionInterface
|
||||
* @throws RedirectionExceptionInterface
|
||||
* @throws ContainerExceptionInterface
|
||||
@@ -391,14 +391,14 @@ class Wechat
|
||||
* @throws TransportExceptionInterface
|
||||
* @throws ServerExceptionInterface
|
||||
*/
|
||||
public function getUrlScheme(array $options): array|string
|
||||
public function getUrlLink(array $options): array|string
|
||||
{
|
||||
try {
|
||||
$this->createApp($this->config['app_id'], $this->config['secret']);
|
||||
|
||||
$client = $this->createClient($this->config['app_id'], $this->config['secret']);
|
||||
|
||||
$response = $client->postJson('/wxa/queryscheme', $options);
|
||||
$response = $client->postJson('wxa/query_urllink', $options);
|
||||
|
||||
if ($response->isFailed()) {
|
||||
// 出错了,处理异常
|
||||
|
||||
Reference in New Issue
Block a user