mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-07-07 05:32:47 +08:00
feat(phone-image): add history popup with load config support
This commit is contained in:
@@ -489,6 +489,31 @@ class Post extends Common
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取输出记录列表(JSON)
|
||||
*/
|
||||
public function getOutputListJson()
|
||||
{
|
||||
$id = $this->request->param('id', 0);
|
||||
$list = \app\model\PostOutput::where('post_id', $id)
|
||||
->where('output_type', 'phone_image')
|
||||
->order('id', 'desc')
|
||||
->limit(20)
|
||||
->select();
|
||||
|
||||
$result = [];
|
||||
foreach ($list as $item) {
|
||||
$result[] = [
|
||||
'id' => $item->id,
|
||||
'status' => $item->status,
|
||||
'page_count' => $item->page_count,
|
||||
'create_time' => $item->create_time,
|
||||
];
|
||||
}
|
||||
|
||||
return json(['code' => 0, 'data' => $result]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除输出记录
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user