修改多点未处理情况

This commit is contained in:
2023-07-19 13:37:38 +08:00
parent fc48be5b8a
commit 4ff12d600e
3 changed files with 15 additions and 18 deletions
+6 -6
View File
@@ -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()) {
// 出错了,处理异常