no message
This commit is contained in:
parent
76d869d2be
commit
8239e49e23
@ -9,31 +9,34 @@ class Article extends Base {
|
||||
{
|
||||
$aArticleList = ModelArticle::orderBy("user_name")->get()->toArray();
|
||||
|
||||
foreach ($aArticleList as $row) {
|
||||
foreach ($aArticleList as &$row) { // 使用引用来修改原数组
|
||||
unset($row['updated_at']); // 移除 updated_at 字段
|
||||
unset($row['created_at']); // 移除 created_at 字段
|
||||
$this->oTGHttp->sendToTG(json_encode($row, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));
|
||||
}
|
||||
|
||||
$this->oHttp::response(200, 'ok');
|
||||
}
|
||||
|
||||
|
||||
public function Like($aParams)
|
||||
{
|
||||
|
||||
$aArticleList = ModelArticle::where($this->cmdGood($aParams['aOption'][1]), 'like', '%' . $aParams['aArg'][1] . '%')
|
||||
->orderBy("user_name")
|
||||
->get()
|
||||
->toArray();
|
||||
->orderBy("user_name")
|
||||
->get()
|
||||
->toArray();
|
||||
|
||||
if (empty($aArticleList)) {
|
||||
$this->oTGHttp->sendToTG("没有");
|
||||
} else {
|
||||
foreach ($aArticleList as &$row) { // 使用引用来修改原数组
|
||||
unset($row['updated_at']); // 移除 updated_at 字段
|
||||
unset($row['created_at']); // 移除 created_at 字段
|
||||
$this->oTGHttp->sendToTG(json_encode($row, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($aArticleList as $row) {
|
||||
$this->oTGHttp->sendToTG(json_encode($row, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));
|
||||
}
|
||||
|
||||
|
||||
$this->oHttp::response(200, 'ok');
|
||||
|
||||
}
|
||||
|
||||
public function Clone($aParam)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user