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
122c913a
authored
Oct 17, 2019
by
叶明星
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
㕛修复
parent
4edd648f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
app/Services/IntegralService.php
app/Services/IntegralService.php
View file @
122c913a
...
...
@@ -28,7 +28,7 @@ class IntegralService
foreach
(
$result
[
'data'
]
as
$key
=>
$value
)
{
switch
(
$value
[
'id'
])
{
case
self
::
INTEGRAL_TYPE_INVITE_FRIEND
:
if
(
!
empty
(
$value
[
'operated_count'
])
&&
!
empty
(
$value
[
'daily_limit'
])
&&
if
(
isset
(
$value
[
'operated_count'
])
&&
isset
(
$value
[
'daily_limit'
])
&&
$value
[
'operated_count'
]
<
$value
[
'daily_limit'
]){
$result
[
'data'
][
$key
][
'button_text'
]
=
'去邀请'
;
}
else
{
...
...
@@ -36,7 +36,7 @@ class IntegralService
}
break
;
case
self
::
INTEGRAL_TYPE_UPLOAD_GOODS
:
if
(
!
empty
(
$value
[
'operated_count'
])
&&
!
empty
(
$value
[
'daily_limit'
])
&&
if
(
isset
(
$value
[
'operated_count'
])
&&
isset
(
$value
[
'daily_limit'
])
&&
$value
[
'operated_count'
]
<
$value
[
'daily_limit'
]){
$result
[
'data'
][
$key
][
'button_text'
]
=
'去上传'
;
}
else
{
...
...
@@ -51,7 +51,7 @@ class IntegralService
$result
[
'data'
][
$key
][
'code_exchanged'
]
=
$exchanged
;
break
;
case
self
::
INTEGRAL_TYPE_SHARE
:
if
(
!
empty
(
$value
[
'operated_count'
])
&&
!
empty
(
$value
[
'daily_limit'
])
&&
if
(
isset
(
$value
[
'operated_count'
])
&&
isset
(
$value
[
'daily_limit'
])
&&
$value
[
'operated_count'
]
<
$value
[
'daily_limit'
]){
$result
[
'data'
][
$key
][
'button_text'
]
=
'去分享'
;
}
else
{
...
...
@@ -59,7 +59,7 @@ class IntegralService
}
break
;
case
self
::
INTEGRAL_TYPE_OFFER
:
if
(
!
empty
(
$value
[
'operated_count'
])
&&
!
empty
(
$value
[
'daily_limit'
])
&&
if
(
isset
(
$value
[
'operated_count'
])
&&
isset
(
$value
[
'daily_limit'
])
&&
$value
[
'operated_count'
]
<
$value
[
'daily_limit'
]){
$result
[
'data'
][
$key
][
'button_text'
]
=
'去报价'
;
}
else
{
...
...
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