no message
This commit is contained in:
parent
985556611f
commit
818e2ecaa3
@ -378,6 +378,7 @@ final class CacheTg
|
||||
|
||||
$tmp = explode("#", $arr["tiqu"]);
|
||||
$arr["name"] = $tmp[0] ?? '';
|
||||
$arr["name"] = trim($arr["name"]);
|
||||
}
|
||||
|
||||
return $arr;
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user