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
68416be3
Commit
68416be3
authored
Dec 27, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/optimize' into 'master'
支持链增加返回字段 See merge request
!255
parents
3d72d072
10a94036
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
SupportedChainController.php
api/controllers/SupportedChainController.php
+1
-1
CoinSupportedChain.php
common/models/psources/CoinSupportedChain.php
+1
-1
No files found.
api/controllers/SupportedChainController.php
View file @
68416be3
...
...
@@ -30,7 +30,7 @@ class SupportedChainController extends BaseController
foreach
(
$supported_chain_model
as
$key
=>
&
$val
)
{
$data
[
$key
][
'chain'
]
=
isset
(
$val
->
coin
->
chain
)
?
$val
->
coin
->
chain
:
''
;
$data
[
$key
][
'icon'
]
=
isset
(
$val
->
coin
->
icon
)
?
$val
->
coin
->
icon
:
''
;
$data
[
$key
][
'name'
]
=
isset
(
$val
->
coin
->
name
)
?
$val
->
coin
->
name
:
''
;
}
$msg
=
'success'
;
$code
=
0
;
...
...
common/models/psources/CoinSupportedChain.php
View file @
68416be3
...
...
@@ -46,6 +46,6 @@ class CoinSupportedChain extends BaseActiveRecord
public
function
getCoin
()
{
return
$this
->
hasOne
(
Coin
::
className
(),
[
'id'
=>
'coin_id'
])
->
select
(
'name
as
chain, icon'
);
return
$this
->
hasOne
(
Coin
::
className
(),
[
'id'
=>
'coin_id'
])
->
select
(
'name
,
chain, icon'
);
}
}
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