no message

This commit is contained in:
hellcat 2025-11-21 21:29:56 +08:00
parent 985556611f
commit 818e2ecaa3
3 changed files with 11 additions and 3 deletions

View File

@ -378,6 +378,7 @@ final class CacheTg
$tmp = explode("#", $arr["tiqu"]);
$arr["name"] = $tmp[0] ?? '';
$arr["name"] = trim($arr["name"]);
}
return $arr;

View File

@ -124,6 +124,7 @@ final class Schema
if ($aArticleSchemaRow['name'] == "schema_name") {
$sSchemaName = $aArticleSchemaRow["content"]["base"] ?? "⚠️ 提取name失败";
$sSchemaName = trim($sSchemaName);
$aArticle["name"] = $sSchemaName;
$aArticle["title"] = $this->nameToTitleCS($sSchemaName);
}

View File

@ -7,6 +7,7 @@ use App\Services\Tg\Hook\Dog;
use App\Services\Article\CacheTg as ServiceArticleCacheTg;
use App\Services\Article\Schema as ServiceArticleSchema;
use App\Services\Article\Cmd as ServiceArticleCmd;
use App\Models\ArticleCacheTime as ModelArticleCacheTime;
use App\Services\TomTool\Flow;
use App\Services\TomTool\ThrowableHandler;
@ -39,9 +40,14 @@ class ArticleCache extends Base {
$o->save();
$o = ModelArticleCache::orderBy("id", "desc")->first();
$o->status = 1;
$o->save();
return $o;
$r = ModelArticleCache::where("code", $o->code)->update(["status" => 1]);
// tomd($o->toArray(), 1);
//
// $o->status = 1;
// $o->save();
return $r;
}
}