add test
This commit is contained in:
parent
d6d53ec544
commit
9791b6dcfd
|
@ -241,9 +241,12 @@
|
|||
function bot_notify($name, $content)
|
||||
{
|
||||
switch ($name) {
|
||||
case 'inventory';
|
||||
case 'inventory':
|
||||
$uri = 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=20a40b87-7bb9-4bcf-bd38-6612377d0970';
|
||||
break;
|
||||
case 'test':
|
||||
$uri = 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=757bcb2d-913c-4ab6-9395-bfa45f488f68';
|
||||
break;
|
||||
default:
|
||||
throw new Exception('bot name not found!');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user