修改多点未处理情况
This commit is contained in:
parent
fc48be5b8a
commit
4ff12d600e
@ -377,26 +377,23 @@ class TestController extends AbstractController
|
||||
}
|
||||
|
||||
$options = [
|
||||
"jump_wxa" => [
|
||||
"path" => "pages/expertDetail/expertDetail",
|
||||
'json' => [
|
||||
"path" => "pages/index/index",
|
||||
"query" => "doctor_id=539452507563012096",
|
||||
"expire_type" => 1,
|
||||
"expire_interval" => 1,
|
||||
"env_version" => $env_version,
|
||||
],
|
||||
|
||||
"expire_type" => 1,
|
||||
"expire_interval" => 1,
|
||||
|
||||
]
|
||||
];
|
||||
|
||||
$Wechat = new Wechat(1);
|
||||
$result = $Wechat->createUrlScheme($options);
|
||||
$result = $Wechat->createUrlLink($options);
|
||||
dump($result);
|
||||
|
||||
$options = [
|
||||
"scheme" => $result['openlink']
|
||||
"url_link" => $result['url_link']
|
||||
];
|
||||
|
||||
$result = $Wechat->getUrlScheme($options);
|
||||
$result = $Wechat->getUrlLink($options);
|
||||
dump($result);
|
||||
}
|
||||
}
|
||||
@ -722,7 +722,7 @@ class DoctorAuthService extends BaseService
|
||||
}
|
||||
|
||||
if (empty($doctor_info_data)) {
|
||||
return success();
|
||||
return fail(HttpEnumCode::HTTP_ERROR,"请您修改后再提交");
|
||||
}
|
||||
|
||||
Db::beginTransaction();
|
||||
|
||||
@ -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()) {
|
||||
// 出错了,处理异常
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user