Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
token
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
wallet
token
Commits
e9f78ac6
Commit
e9f78ac6
authored
Nov 05, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9bf1a51d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ExploreController.php
api/controllers/ExploreController.php
+1
-1
ExploreBannerController.php
wallet/controllers/ExploreBannerController.php
+2
-2
No files found.
api/controllers/ExploreController.php
View file @
e9f78ac6
...
@@ -93,7 +93,7 @@ class ExploreController extends BaseController
...
@@ -93,7 +93,7 @@ class ExploreController extends BaseController
goto
doEnd
;
goto
doEnd
;
}
}
$coin_banner
=
CoinBannerItem
::
find
()
->
select
(
'banner_url, image_url'
)
->
where
([
'platform_id'
=>
$platform_id
])
->
asArray
()
->
all
();
$coin_banner
=
CoinBannerItem
::
find
()
->
select
(
'banner_url, image_url
, title
'
)
->
where
([
'platform_id'
=>
$platform_id
])
->
asArray
()
->
all
();
$data
=
$coin_banner
;
$data
=
$coin_banner
;
doEnd
:
doEnd
:
...
...
wallet/controllers/ExploreBannerController.php
View file @
e9f78ac6
...
@@ -9,7 +9,7 @@ use common\models\psources\CoinBannerItem;
...
@@ -9,7 +9,7 @@ use common\models\psources\CoinBannerItem;
class
ExploreBannerController
extends
BaseController
class
ExploreBannerController
extends
BaseController
{
{
public
function
action
Banner
()
public
function
action
Index
()
{
{
$msg
=
'ok'
;
$msg
=
'ok'
;
$code
=
0
;
$code
=
0
;
...
@@ -23,7 +23,7 @@ class ExploreBannerController extends BaseController
...
@@ -23,7 +23,7 @@ class ExploreBannerController extends BaseController
}
}
$query
=
CoinBannerItem
::
find
()
$query
=
CoinBannerItem
::
find
()
->
select
(
'id, banner_url, image_url'
)
->
select
(
'id, banner_url, image_url
, title
'
)
->
where
([
'platform_id'
=>
$platform_id
])
->
where
([
'platform_id'
=>
$platform_id
])
->
asArray
();
->
asArray
();
$banner_model
=
$query
->
offset
((
$page
-
1
)
*
10
)
->
limit
(
10
)
->
asArray
()
->
all
();
$banner_model
=
$query
->
offset
((
$page
-
1
)
*
10
)
->
limit
(
10
)
->
asArray
()
->
all
();
...
...
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