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
0ca6e2b5
Commit
0ca6e2b5
authored
Jul 04, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature/jinse
parents
1026d6be
2e5d2f44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
+0
-8
CoinController.php
api/controllers/CoinController.php
+0
-4
CoinRecommend.php
common/models/psources/CoinRecommend.php
+0
-4
No files found.
api/controllers/CoinController.php
View file @
0ca6e2b5
...
...
@@ -151,10 +151,6 @@ class CoinController extends BaseController
if
(
$coin_infos
)
{
array_shift
(
$select
);
foreach
(
$coin_recommends
as
$key
=>
&
$value
)
{
if
(
!
isset
(
$coin_infos
[
$value
[
'cid'
]][
'name'
]))
{
unset
(
$coin_recommends
[
$key
]);
continue
;
}
$temp_key
=
$coin_infos
[
$value
[
'cid'
]][
'name'
];
foreach
(
$select
as
$item
)
{
$value
[
$item
]
=
$coin_infos
[
$value
[
'cid'
]][
$item
];
...
...
common/models/psources/CoinRecommend.php
View file @
0ca6e2b5
...
...
@@ -54,10 +54,6 @@ class CoinRecommend extends BaseActiveRecord
$coin_info
=
Coin
::
getCoinInfoByIds
(
$coin_ids
,
$select
,
'id'
);
}
foreach
(
$data
as
$key
=>
&
$value
)
{
if
(
!
isset
(
$coin_info
[
$value
[
'cid'
]][
'name'
])){
unset
(
$data
[
$key
]);
continue
;
};
$value
[
'coin'
]
=
$coin_info
[
$value
[
'cid'
]][
'name'
];
}
unset
(
$key
,
$value
);
...
...
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