作者 李宇航

合并分支 'lyh-server' 到 'master'

gx



查看合并请求 !1508
... ... @@ -21,6 +21,7 @@ use App\Models\Project\Project;
use App\Models\Project\ProjectAiSetting;
use App\Models\RouteMap\RouteMap;
use App\Services\AiBlogService;
use App\Services\DingService;
use App\Services\ProjectServer;
use Illuminate\Console\Command;
use App\Models\Project\AiBlogTask as AiBlogTaskModel;
... ... @@ -87,6 +88,13 @@ class AiBlogTask extends Command
}else{
$aiBlogTaskModel->edit(['status'=>9],['id'=>$item['id']]);
// 钉钉通知
$dingService = new DingService();
$body = [
'keyword' => '生成错误',
'msg' => '任务id:'.$item['task_id'].'拉取数据失败',
'isAtAll' => false, // 是否@所有人
];
$result = $dingService->handle($body);
}
echo date('Y-m-d H:i:s'). '错误信息:'.json_encode($result,true).PHP_EOL;
return false;
... ...
... ... @@ -15,7 +15,7 @@ class DingService
{
use RedisTrait;
const LINK = 'https://oapi.dingtalk.com/robot/send111?access_token=723c99369cc16806a26fee8b8ab2c5ae37a78ef842e6a3af89fed0b2a6211836';
const LINK = 'https://oapi.dingtalk.com/robot/send?access_token=2cdba958f11f24f961f13aba2d1acbcd60ed64c998a184492cc63814696e34e1';
const INFO = 'INFO';
const ERROR = 'ERROR';
const WARNNING = 'WARNNING';
... ...