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
4af63110
Commit
4af63110
authored
Nov 19, 2018
by
ZhuChunYang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
aebc2ffd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CoinController.php
backend/controllers/CoinController.php
+2
-2
ExchangeBusiness.php
common/business/ExchangeBusiness.php
+1
-1
No files found.
backend/controllers/CoinController.php
View file @
4af63110
...
...
@@ -435,7 +435,7 @@ class CoinController extends BaseController
foreach
(
$data
as
$item
){
if
(
$item
){
$platformInfo
[
'platform'
]
=
$item
;
$icon
=
Yii
::
$app
->
redis
_app
->
hget
(
'platform_image_info'
,
$item
);
$icon
=
Yii
::
$app
->
redis
->
hget
(
'platform_image_info'
,
$item
);
$platformInfo
[
'icon'
]
=
$icon
??
''
;
$platformItems
[]
=
$platformInfo
;
}
...
...
@@ -452,7 +452,7 @@ class CoinController extends BaseController
$platform
=
Yii
::
$app
->
request
->
post
(
'platform'
);
$image
=
Yii
::
$app
->
request
->
post
(
'image'
);
if
(
$platform
&&
$image
){
Yii
::
$app
->
redis
_app
->
hset
(
'platform_image_info'
,
$platform
,
$image
);
Yii
::
$app
->
redis
->
hset
(
'platform_image_info'
,
$platform
,
$image
);
return
[
'code'
=>
0
,
'msg'
=>
'图片添加成功'
];
}
return
[
'code'
=>
0
,
'msg'
=>
'图片添加失败'
];
...
...
common/business/ExchangeBusiness.php
View file @
4af63110
...
...
@@ -182,7 +182,7 @@ class ExchangeBusiness
foreach
(
$rows
as
$key
=>
$row
)
{
$rows
[
$key
][
'sid'
]
=
ucfirst
(
$rows
[
$key
][
'sid'
]);
$platform
=
strtoupper
(
$rows
[
$key
][
'platform'
]);
$platform_icon
=
Yii
::
$app
->
redis
_app
->
hget
(
'platform_image_info'
,
$platform
);
$platform_icon
=
Yii
::
$app
->
redis
->
hget
(
'platform_image_info'
,
$platform
);
$rows
[
$key
][
'platform_icon'
]
=
$platform_icon
??
''
;
}
return
[
'total'
=>
$total
,
'data'
=>
$rows
];
...
...
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