修改多点未处理情况
This commit is contained in:
parent
fc48be5b8a
commit
4ff12d600e
@ -377,26 +377,23 @@ class TestController extends AbstractController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$options = [
|
$options = [
|
||||||
"jump_wxa" => [
|
'json' => [
|
||||||
"path" => "pages/expertDetail/expertDetail",
|
"path" => "pages/index/index",
|
||||||
"query" => "doctor_id=539452507563012096",
|
"query" => "doctor_id=539452507563012096",
|
||||||
|
"expire_type" => 1,
|
||||||
|
"expire_interval" => 1,
|
||||||
"env_version" => $env_version,
|
"env_version" => $env_version,
|
||||||
],
|
]
|
||||||
|
|
||||||
"expire_type" => 1,
|
|
||||||
"expire_interval" => 1,
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
$Wechat = new Wechat(1);
|
$Wechat = new Wechat(1);
|
||||||
$result = $Wechat->createUrlScheme($options);
|
$result = $Wechat->createUrlLink($options);
|
||||||
dump($result);
|
dump($result);
|
||||||
|
|
||||||
$options = [
|
$options = [
|
||||||
"scheme" => $result['openlink']
|
"url_link" => $result['url_link']
|
||||||
];
|
];
|
||||||
|
|
||||||
$result = $Wechat->getUrlScheme($options);
|
$result = $Wechat->getUrlLink($options);
|
||||||
dump($result);
|
dump($result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -722,7 +722,7 @@ class DoctorAuthService extends BaseService
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (empty($doctor_info_data)) {
|
if (empty($doctor_info_data)) {
|
||||||
return success();
|
return fail(HttpEnumCode::HTTP_ERROR,"请您修改后再提交");
|
||||||
}
|
}
|
||||||
|
|
||||||
Db::beginTransaction();
|
Db::beginTransaction();
|
||||||
|
|||||||
@ -344,7 +344,7 @@ class Wechat
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生成UrlScheme
|
* 生成UrlLink
|
||||||
* @throws NotFoundExceptionInterface
|
* @throws NotFoundExceptionInterface
|
||||||
* @throws RedirectionExceptionInterface
|
* @throws RedirectionExceptionInterface
|
||||||
* @throws ContainerExceptionInterface
|
* @throws ContainerExceptionInterface
|
||||||
@ -353,14 +353,14 @@ class Wechat
|
|||||||
* @throws TransportExceptionInterface
|
* @throws TransportExceptionInterface
|
||||||
* @throws ServerExceptionInterface
|
* @throws ServerExceptionInterface
|
||||||
*/
|
*/
|
||||||
public function createUrlScheme(array $options): array|string
|
public function createUrlLink(array $options): array|string
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$this->createApp($this->config['app_id'], $this->config['secret']);
|
$this->createApp($this->config['app_id'], $this->config['secret']);
|
||||||
|
|
||||||
$client = $this->createClient($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()) {
|
if ($response->isFailed()) {
|
||||||
// 出错了,处理异常
|
// 出错了,处理异常
|
||||||
@ -382,7 +382,7 @@ class Wechat
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取UrlScheme
|
* 获取UrlLink
|
||||||
* @throws NotFoundExceptionInterface
|
* @throws NotFoundExceptionInterface
|
||||||
* @throws RedirectionExceptionInterface
|
* @throws RedirectionExceptionInterface
|
||||||
* @throws ContainerExceptionInterface
|
* @throws ContainerExceptionInterface
|
||||||
@ -391,14 +391,14 @@ class Wechat
|
|||||||
* @throws TransportExceptionInterface
|
* @throws TransportExceptionInterface
|
||||||
* @throws ServerExceptionInterface
|
* @throws ServerExceptionInterface
|
||||||
*/
|
*/
|
||||||
public function getUrlScheme(array $options): array|string
|
public function getUrlLink(array $options): array|string
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$this->createApp($this->config['app_id'], $this->config['secret']);
|
$this->createApp($this->config['app_id'], $this->config['secret']);
|
||||||
|
|
||||||
$client = $this->createClient($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()) {
|
if ($response->isFailed()) {
|
||||||
// 出错了,处理异常
|
// 出错了,处理异常
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user