no message

This commit is contained in:
hellcat 2025-07-07 12:16:35 +08:00
parent 8adb35c805
commit f3ccc6ba17

View File

@ -15,15 +15,19 @@ class Article extends Base {
$aArticleList = ModelArticle::orderBy($sOrderBy)->get()->toArray();
$aTmp = [];
// $aTmp = [];
$str = "";
foreach ($aArticleList as &$row) { // 使用引用来修改原数组
unset($row['updated_at']); // 移除 updated_at 字段
unset($row['created_at']); // 移除 created_at 字段
$aTmp[] = $this->toJson($row);
// $aTmp[] = $this->toJson($row);
// $this->oTGHttp->sendToTG(json_encode($row, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));
$str .= $this->toJson($row);
$str .= "\n";
}
return $aTmp;
return $str;
}
public function Find($aParam)