mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Fans.php
This commit is contained in:
parent
1ef99e4d80
commit
55101d845e
@ -74,8 +74,6 @@ class Fans extends Controller
|
|||||||
try {
|
try {
|
||||||
$code = sysqueue('同步微信用户数据', "xadmin:fansall", 1, [], 0);
|
$code = sysqueue('同步微信用户数据', "xadmin:fansall", 1, [], 0);
|
||||||
$this->success('创建任务成功,请等待完成!', $code);
|
$this->success('创建任务成功,请等待完成!', $code);
|
||||||
} catch (HttpResponseException $exception) {
|
|
||||||
throw $exception;
|
|
||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
$queue = $exception->getData();
|
$queue = $exception->getData();
|
||||||
if (isset($queue['code'])) {
|
if (isset($queue['code'])) {
|
||||||
@ -83,6 +81,8 @@ class Fans extends Controller
|
|||||||
} else {
|
} else {
|
||||||
$this->error($exception->getMessage());
|
$this->error($exception->getMessage());
|
||||||
}
|
}
|
||||||
|
} catch (HttpResponseException $exception) {
|
||||||
|
throw $exception;
|
||||||
} catch (\Exception $exception) {
|
} catch (\Exception $exception) {
|
||||||
$this->error("创建任务失败,{$exception->getMessage()}");
|
$this->error("创建任务失败,{$exception->getMessage()}");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user