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
0ca05ecd
Commit
0ca05ecd
authored
Mar 12, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
content
parent
48a7b87f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
Coupon.php
application/api/controller/Coupon.php
+24
-0
No files found.
application/api/controller/Coupon.php
View file @
0ca05ecd
...
...
@@ -44,6 +44,30 @@ class Coupon extends Basic{
$coupon_id
=
array_keys
(
$coupon_data
);
$activity_where
[
'id'
]
=
[
'in'
,
$activity_id
];
$data
=
$this
->
m_activity
->
getActivity
(
'money,return_type,return_action'
,
$activity_where
);
foreach
(
$data
as
$k
=>
$v
)
{
switch
(
$v
[
'return_action'
])
{
case
1
:
$title
=
'邀请用户'
;
$subheading
=
'成功注册并登陆的奖励'
;
break
;
case
2
:
$title
=
'邀请用户成交'
;
$subheading
=
'在同联商业成交的奖励'
;
break
;
default
:
$subheading
=
'APP - 我的现金红包中查看'
;
$title
=
'新用户专享'
;
}
if
(
$v
[
'return_type'
]
==
0
)
{
$content
=
'现金(可提现)'
;
}
else
{
$content
=
'返现红包'
;
}
$data
[
$k
][
'title'
]
=
$title
;
$data
[
$k
][
'subheading'
]
=
$subheading
;
$data
[
$k
][
'content'
]
=
$content
;
}
// $this->m_coupon->updateData(['first_show'=>1], ['id'=>['in',$coupon_id]]);
}
return
$this
->
response
(
200
,
''
,
$data
);
...
...
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