Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_welfare_api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4edd648f
authored
Oct 17, 2019
by
叶明星
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复
parent
36f43574
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
app/Services/IntegralService.php
app/Services/IntegralService.php
View file @
4edd648f
...
...
@@ -28,16 +28,16 @@ class IntegralService
foreach
(
$result
[
'data'
]
as
$key
=>
$value
)
{
switch
(
$value
[
'id'
])
{
case
self
::
INTEGRAL_TYPE_INVITE_FRIEND
:
if
(
!
empty
(
$value
[
'operated_count'
])
&&
!
empty
(
$value
[
'
operated_coun
t'
])
&&
$value
[
'operated_count'
]
<
$value
[
'
operated_coun
t'
]){
if
(
!
empty
(
$value
[
'operated_count'
])
&&
!
empty
(
$value
[
'
daily_limi
t'
])
&&
$value
[
'operated_count'
]
<
$value
[
'
daily_limi
t'
]){
$result
[
'data'
][
$key
][
'button_text'
]
=
'去邀请'
;
}
else
{
$result
[
'data'
][
$key
][
'button_text'
]
=
'已完成'
;
}
break
;
case
self
::
INTEGRAL_TYPE_UPLOAD_GOODS
:
if
(
!
empty
(
$value
[
'operated_count'
])
&&
!
empty
(
$value
[
'
operated_coun
t'
])
&&
$value
[
'operated_count'
]
<
$value
[
'
operated_coun
t'
]){
if
(
!
empty
(
$value
[
'operated_count'
])
&&
!
empty
(
$value
[
'
daily_limi
t'
])
&&
$value
[
'operated_count'
]
<
$value
[
'
daily_limi
t'
]){
$result
[
'data'
][
$key
][
'button_text'
]
=
'去上传'
;
}
else
{
$result
[
'data'
][
$key
][
'button_text'
]
=
'已完成'
;
...
...
@@ -51,16 +51,16 @@ class IntegralService
$result
[
'data'
][
$key
][
'code_exchanged'
]
=
$exchanged
;
break
;
case
self
::
INTEGRAL_TYPE_SHARE
:
if
(
!
empty
(
$value
[
'operated_count'
])
&&
!
empty
(
$value
[
'
operated_coun
t'
])
&&
$value
[
'operated_count'
]
<
$value
[
'
operated_coun
t'
]){
if
(
!
empty
(
$value
[
'operated_count'
])
&&
!
empty
(
$value
[
'
daily_limi
t'
])
&&
$value
[
'operated_count'
]
<
$value
[
'
daily_limi
t'
]){
$result
[
'data'
][
$key
][
'button_text'
]
=
'去分享'
;
}
else
{
$result
[
'data'
][
$key
][
'button_text'
]
=
'已完成'
;
}
break
;
case
self
::
INTEGRAL_TYPE_OFFER
:
if
(
!
empty
(
$value
[
'operated_count'
])
&&
!
empty
(
$value
[
'
operated_coun
t'
])
&&
$value
[
'operated_count'
]
<
$value
[
'
operated_coun
t'
]){
if
(
!
empty
(
$value
[
'operated_count'
])
&&
!
empty
(
$value
[
'
daily_limi
t'
])
&&
$value
[
'operated_count'
]
<
$value
[
'
daily_limi
t'
]){
$result
[
'data'
][
$key
][
'button_text'
]
=
'去报价'
;
}
else
{
$result
[
'data'
][
$key
][
'button_text'
]
=
'已完成'
;
...
...
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