no message
This commit is contained in:
parent
8adb35c805
commit
f3ccc6ba17
@ -15,15 +15,19 @@ class Article extends Base {
|
|||||||
|
|
||||||
$aArticleList = ModelArticle::orderBy($sOrderBy)->get()->toArray();
|
$aArticleList = ModelArticle::orderBy($sOrderBy)->get()->toArray();
|
||||||
|
|
||||||
$aTmp = [];
|
// $aTmp = [];
|
||||||
|
$str = "";
|
||||||
foreach ($aArticleList as &$row) { // 使用引用来修改原数组
|
foreach ($aArticleList as &$row) { // 使用引用来修改原数组
|
||||||
unset($row['updated_at']); // 移除 updated_at 字段
|
unset($row['updated_at']); // 移除 updated_at 字段
|
||||||
unset($row['created_at']); // 移除 created_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));
|
// $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)
|
public function Find($aParam)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user