no message

This commit is contained in:
hellcat 2025-06-17 16:02:55 +08:00
parent e8b783d29c
commit 5d92acc929
2 changed files with 16 additions and 6 deletions

View File

@ -343,9 +343,9 @@ class SakaiController
$s = "/dove#check cfn"; $s = "/dove#check cfn";
$s = "/dove%zzz"; $s = "/dove%zzz";
$s = "/dove%cmd#list"; $s = "/dove%cmd#list";
$s = "/dove#add xxx"; // $s = "/dove#add xxx";
$s = "/dove#set__xxx__memo fff"; // $s = "/dove#set__xxx__memo fff";
$s = "/dove#del xxx"; // $s = "/dove#list";

View File

@ -5,6 +5,7 @@ namespace App\Services\TG\Hook\Mod;
//use App\Models\Hook as ModelHook; //use App\Models\Hook as ModelHook;
use App\Models\DoveSite as ModelDoveSite; use App\Models\DoveSite as ModelDoveSite;
use App\Services\TomTool\Http; use App\Services\TomTool\Http;
use App\Services\TG\Http as TGHttp;
class Dove extends Base { class Dove extends Base {
@ -20,18 +21,27 @@ class Dove extends Base {
$aData['dove_token'] = env('dove_token'); $aData['dove_token'] = env('dove_token');
$oTGHttp = new TGHttp();
$oHttp = new Http(); $oHttp = new Http();
$oHttp->sMethod = "post"; $oHttp->sMethod = "post";
$oHttp->bIsJson = true; $oHttp->bIsJson = true;
$r = [];
foreach ($oDoveSiteCheckedList as $row) { foreach ($oDoveSiteCheckedList as $row) {
$sApiUrl = "https://".$row->www.$row->api_path; $sApiUrl = "https://".$row->www.$row->api_path;
$oHttp->sToUrl = $sApiUrl; $oHttp->sToUrl = $sApiUrl;
$oHttp->aData = $aData; $oHttp->aData = $aData;
$r[] = $oHttp->send(); $tmp = $oHttp->send();
// $r[] = [$row->www => $tmp];
$r = "\n".$row->www."\n".$tmp;
// tomd($r);
$oTGHttp->sendToTG($r);
} }
return $r; Http::response(200, 'ok');
} }
public function del($aParam) public function del($aParam)
@ -127,7 +137,7 @@ class Dove extends Base {
$r = ModelDoveSite::query()->update(["dove_checked" => 0]); $r = ModelDoveSite::query()->update(["dove_checked" => 0]);
return $this->now(); return $this->list();
} }
public function uncheck($aParam) public function uncheck($aParam)