增加机器人提醒

This commit is contained in:
jianghanbo 2024-09-10 18:27:43 +08:00
parent 72940d3d0d
commit 2121aa2902
1 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,9 @@ class ThirdApiService {
] ]
]; ];
if (Redis::setNx('notice-' . $os, 600, 1)) { $key = 'notice-' . $os;
if (Redis::setNx($key, 1)) {
Redis::expire($key, 600); // 十分钟内通知一次
$this->curlRequest($url, $method, [], $bodys); $this->curlRequest($url, $method, [], $bodys);
} }
return true; return true;