feat(phone-image): add history popup with load config support

This commit is contained in:
augushong
2026-05-03 21:22:00 +08:00
parent c51cd8beb5
commit 5f5dc180c9
2 changed files with 119 additions and 0 deletions

View File

@@ -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]);
}
/**
* 删除输出记录
*/