Commit 378076b6 by LiuJunYi

excel增加字段

parent a9286bc0
......@@ -78,7 +78,7 @@ class User extends AuthBase
$user_list = model('user')->where($condition)->field('nickname,gender,phone,is_vip,created_at,updated_at,vip_endtime')->select();
$mulit_arr = [];
$mulit_arr['data'] = [];
$cont = [['昵称','性别','电话','是否是会员','注册时间','更新时间','会员到期时间']];
$cont = [['姓名','微信号','昵称','性别','电话','是否是会员','注册时间','更新时间','会员到期时间']];
// [
// 'data'=>
// [
......@@ -96,6 +96,8 @@ class User extends AuthBase
// ];
foreach ($user_list as $vo){
$arr = [];
$arr[] = $vo['name'];
$arr[] = $vo['wx_number'];
$arr[] = $vo['nickname'];
$arr[] = $vo['gender']==1?'男':'女';
$arr[] = $vo['phone'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment