This commit is contained in:
候学杰 2019-07-02 16:37:27 +08:00
parent d6d53ec544
commit 9791b6dcfd

View File

@ -241,9 +241,12 @@
function bot_notify($name, $content) function bot_notify($name, $content)
{ {
switch ($name) { switch ($name) {
case 'inventory'; case 'inventory':
$uri = 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=20a40b87-7bb9-4bcf-bd38-6612377d0970'; $uri = 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=20a40b87-7bb9-4bcf-bd38-6612377d0970';
break; break;
case 'test':
$uri = 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=757bcb2d-913c-4ab6-9395-bfa45f488f68';
break;
default: default:
throw new Exception('bot name not found!'); throw new Exception('bot name not found!');
} }