Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
17aee377
Commit
17aee377
authored
Mar 11, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
d0b94cab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
Coupon.php
application/index/controller/Coupon.php
+2
-5
No files found.
application/index/controller/Coupon.php
View file @
17aee377
...
@@ -38,16 +38,13 @@ class Coupon extends Basic
...
@@ -38,16 +38,13 @@ class Coupon extends Basic
$list
=
$this
->
m_coupon
->
getList
(
$page_no
,
$page_size
,
'id desc'
,
$field
,
$where
);
$list
=
$this
->
m_coupon
->
getList
(
$page_no
,
$page_size
,
'id desc'
,
$field
,
$where
);
$total
=
$this
->
m_coupon
->
getTotal
(
$where
);
$total
=
$this
->
m_coupon
->
getTotal
(
$where
);
$m_user
=
new
Users
();
$m_user
=
new
Users
();
$field_activity
=
'money,return_action
,activity_start_time,activity_end_time
'
;
$field_activity
=
'money,return_action'
;
foreach
(
$list
as
$k
=>
$v
)
{
foreach
(
$list
as
$k
=>
$v
)
{
$activity_data
=
$this
->
m_activity
->
getFind
(
$field_activity
,
[
'id'
=>
$v
[
'activity_id'
]]);
$activity_data
=
$this
->
m_activity
->
getFind
(
$field_activity
,
[
'id'
=>
$v
[
'activity_id'
]]);
$list
[
$k
][
'money'
]
=
$activity_data
[
'money'
];
$list
[
$k
][
'money'
]
=
$activity_data
[
'money'
];
$list
[
$k
][
'return_action'
]
=
$activity_data
[
'return_action'
];
$list
[
$k
][
'return_action'
]
=
$activity_data
[
'return_action'
];
$list
[
$k
][
'activity_start_time'
]
=
$activity_data
[
'activity_start_time'
];
$list
[
$k
][
'activity_end_time'
]
=
$activity_data
[
'activity_end_time'
];
$list
[
$k
][
'user_id'
]
=
$v
[
'user_id'
];
$list
[
$k
][
'user_id'
]
=
$v
[
'user_id'
];
$list
[
$k
][
'user_name'
]
=
''
;
$list
[
$k
][
'user_phone'
]
=
$m_user
->
getUserByWhereValue
(
'user_phone'
,
[
'id'
=>
$v
[
'user_id'
]]);
$list
[
$k
][
'user_phone'
]
=
''
;
}
}
$data
[
'total'
]
=
$total
;
$data
[
'total'
]
=
$total
;
...
...
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