增加机器人提醒
This commit is contained in:
parent
72940d3d0d
commit
2121aa2902
|
@ -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);
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue