refactor: 修改各模块导出
This commit is contained in:
@@ -40,19 +40,19 @@ class LeaveMessage
|
||||
public function export()
|
||||
{
|
||||
$schema = [
|
||||
'created_at' => '提交时间',
|
||||
'id' => 'ID',
|
||||
'name' => '姓名',
|
||||
'email' => '邮箱',
|
||||
'ip' => 'IP',
|
||||
'content' => '留言内容',
|
||||
'created_at' => '提交时间'
|
||||
'content' => '留言内容'
|
||||
];
|
||||
|
||||
// 获取留言导出数据
|
||||
$msgs = $this->getLeaveMessageExportData();
|
||||
|
||||
// 导出
|
||||
return xlsx_writer($msgs, $schema);
|
||||
return xlsx_writer($msgs, $schema, '联系我们列表' . date('YmdHis'));
|
||||
}
|
||||
// 获取留言导出数据
|
||||
private function getLeaveMessageExportData()
|
||||
|
||||
Reference in New Issue
Block a user