public function download($id = 0){
$content = '<center><table border="0" cellspacing="0" cellpadding="0" width="80%">';
$row = GiftModel::with('Giftinfo')->where($map)->order('id desc')->select();
if($row){
$content = $content.'<tr>
<td style="font-weight:bold;width:12.5%;height:40px;text-align:center;border:1px solid #D2D2D2;">会员姓名</td>
<td style="width:12.5%;height:40px;text-align:center;border:1px solid #D2D2D2;">'.$row['nick'].'</td>
<td style="font-weight:bold;width:12.5%;height:40px;text-align:center;border:1px solid #D2D2D2;">客服姓名</td>
<td style="width:12.5%;height:40px;text-align:center;border:1px solid #D2D2D2;">'.$kefu.'<
tp5 导出word
最新推荐文章于 2023-04-12 17:21:31 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)