1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-23 20:00:27 +08:00

优化条件判断

This commit is contained in:
xiaochong0302 2023-02-14 22:30:02 +08:00
parent 74c08316f1
commit ecb20a14f4
4 changed files with 4 additions and 4 deletions

View File

@ -170,7 +170,7 @@ class DingTalkNotice extends Service
$result = $content['errcode'] == 0;
if ($result == false) {
if (!$result) {
$this->logger->error('Send Message Failed ' . kg_json_encode($content));
}

View File

@ -91,7 +91,7 @@ abstract class Smser extends Service
$result = $sendStatus->getCode() == 'Ok';
if ($result == false) {
if (!$result) {
$this->logger->error('Send Message Failed ' . $response->toJsonString());
}

View File

@ -14,7 +14,7 @@ class Throttle extends Service
{
$config = $this->getConfig();
if ($config->path('throttle.enabled') == false) {
if (!$config->path('throttle.enabled')) {
return true;
}

View File

@ -70,7 +70,7 @@ abstract class WeChatNotice extends Service
$result = $response['errcode'] == 0;
if ($result == false) {
if (!$result) {
$this->logger->error('Send Template Message Failed ' . kg_json_encode($response));
}