no message

This commit is contained in:
hellcat 2025-11-14 14:13:01 +08:00
parent 59abc92c32
commit 1ead28ae2a
2 changed files with 9 additions and 9 deletions

View File

@ -26,7 +26,7 @@ final class HookController
// $this->sCustomCmd = "article";
// $this->sCustomFunc = "cache";
// $this->aCustomOption[1] = "ffq";
$this->sCustomText = "/article#cacheAdd__ffq_tg"." ".$sText;
$this->sCustomText = "/article#cacheAdd__ffq_tg_a"." ".$sText;
}
return $this->cmd();

View File

@ -168,19 +168,19 @@ class Article extends Base {
public function cacheAdd($aParam)
{
$sFrom = $aParam["aOption"][1] ?? "ffq_tg";
$sFromGroupCode = $aParam["aOption"][1] ?? "ffq_tg_a";
$sContent = implode(' ', $aParam["aArg"]);
$r = ServiceArticleSchema::make()->cacheAdd($sFrom, $sContent);
$r = ServiceArticleCacheTg::start()->add($sFromGroupCode, $sContent);
return $r;
}
public function save($aParam)
{
$r = ServiceArticleSchema::make()->save();
return $r;
}
// public function save($aParam)
// {
// $r = ServiceArticleSchema::make()->save();
//
// return $r;
// }
}