mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-19 09:30:10 +08:00
Merge pull request #111 from Dishesdog/hotfix/20210817/ding_talk_send
Hotfix/20210817/ding talk send
This commit is contained in:
commit
7f37c98d8b
11
index.php
11
index.php
@ -11,6 +11,17 @@
|
|||||||
|
|
||||||
require 'vendor/autoload.php';
|
require 'vendor/autoload.php';
|
||||||
|
|
||||||
|
|
||||||
|
if ($argc >= 3) {
|
||||||
|
if ($argv[2] == 'script') {
|
||||||
|
define('__MODE__', 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!defined('__MODE__')) {
|
||||||
|
define('__MODE__', 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$app = new BiliHelper\Core\App(__DIR__);
|
$app = new BiliHelper\Core\App(__DIR__);
|
||||||
$app->load($argv)
|
$app->load($argv)
|
||||||
->inspect()
|
->inspect()
|
||||||
|
|||||||
@ -148,7 +148,7 @@ class App
|
|||||||
public function start()
|
public function start()
|
||||||
{
|
{
|
||||||
// Todo 模式名称需要优化
|
// Todo 模式名称需要优化
|
||||||
if ($this->script_mode) {
|
if (__MODE__ == 2) {
|
||||||
Log::info('执行Script模式');
|
Log::info('执行Script模式');
|
||||||
$this->script_m();
|
$this->script_m();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -192,7 +192,7 @@ class Notice
|
|||||||
'msgtype' => 'markdown',
|
'msgtype' => 'markdown',
|
||||||
'markdown' => [
|
'markdown' => [
|
||||||
'title' => $info['title'],
|
'title' => $info['title'],
|
||||||
'content' => $info['content'],
|
'text' => $info['content'],
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
$headers = [
|
$headers = [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user