Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
亲子游项目
backend
Commits
b43df47d
Commit
b43df47d
authored
Dec 25, 2018
by
LiuJunYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复订单的到处
parent
2b5c05dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
application/admin/controller/Order.php
+6
-2
No files found.
application/admin/controller/Order.php
View file @
b43df47d
...
@@ -98,12 +98,16 @@ class Order extends AuthBase
...
@@ -98,12 +98,16 @@ class Order extends AuthBase
//导出到excel之前数据处理
//导出到excel之前数据处理
$mulit_arr
=
[];
$mulit_arr
=
[];
$mulit_arr
[
'data'
]
=
[];
$mulit_arr
[
'data'
]
=
[];
$cont
=
[[
'订单标题'
,
'订单来源'
,
'用户名'
,
'电话'
,
'vip购买信息'
,
'活动名称'
,
'活动价格'
,
'家庭组数'
,
'大人数量'
,
'孩子数量'
,
'孩子年龄'
,
'订单总价'
,
'下单时间'
,
'订单状态'
]];
$cont
=
[[
'订单标题'
,
'订单
号'
,
'订单
来源'
,
'用户名'
,
'电话'
,
'vip购买信息'
,
'活动名称'
,
'活动价格'
,
'家庭组数'
,
'大人数量'
,
'孩子数量'
,
'孩子年龄'
,
'订单总价'
,
'下单时间'
,
'订单状态'
]];
foreach
(
$order_list
as
$vo
)
{
foreach
(
$order_list
as
$vo
)
{
$arr
=
[];
$arr
=
[];
$arr
[]
=
$vo
[
'title'
];
$arr
[]
=
$vo
[
'title'
];
$arr
[]
=
$vo
[
'out_trade_no'
];
$arr
[]
=
$vo
[
'type'
]
==
1
?
'活动报名'
:
'购买会员卡订单'
;
$arr
[]
=
$vo
[
'type'
]
==
1
?
'活动报名'
:
'购买会员卡订单'
;
$arr
[]
=
$vo
->
user_info
[
'nickname'
];
$nickname
=
json_encode
(
$vo
->
user_info
[
'nickname'
]);
$nickname
=
preg_replace
(
"/
\\
\u[ed][0-9a-f]
{
3}\\\u[ed][0-9a-f]{3
}
/"
,
"*"
,
$nickname
);
//替换成*
$nickname
=
json_decode
(
$nickname
);
$arr
[]
=
$nickname
;
$arr
[]
=
$vo
->
user_info
[
'phone'
];
$arr
[]
=
$vo
->
user_info
[
'phone'
];
$arr
[]
=
isset
(
$vo
[
'extras'
][
'vip_endtime'
])
?
$vo
[
'extras'
][
'vip_endtime'
]
.
'到期'
:
''
;
$arr
[]
=
isset
(
$vo
[
'extras'
][
'vip_endtime'
])
?
$vo
[
'extras'
][
'vip_endtime'
]
.
'到期'
:
''
;
$arr
[]
=
$vo
->
project
[
'title'
];
$arr
[]
=
$vo
->
project
[
'title'
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment