You've already forked lubo_comment_query
彻底删除该list接口
This commit is contained in:
@ -100,20 +100,6 @@ class ProgramAppendConstructController extends BaseController
|
||||
];
|
||||
})->toArray();
|
||||
}
|
||||
|
||||
public function broadcast_list(Request $request) {
|
||||
$query = ProgramAppends::query()->groupBy("name")
|
||||
->where("broadcast", "=", 1)
|
||||
->select("name")->selectRaw("max(id) as id");
|
||||
return $query->get()->map(function ($item) {
|
||||
return [
|
||||
"text" => $item["name"],
|
||||
"value" => $item["id"],
|
||||
"alias" => implode("", \pinyin($item["name"], PINYIN_NO_TONE|PINYIN_KEEP_ENGLISH)),
|
||||
"abbr" => \pinyin_abbr($item["name"]),
|
||||
];
|
||||
});
|
||||
}
|
||||
// endregion
|
||||
|
||||
private function fill_model(Request $request, ?ProgramAppends $append = null): ProgramAppends
|
||||
|
Reference in New Issue
Block a user