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
aacd9d0e
Commit
aacd9d0e
authored
Oct 11, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature/issue_coin
parents
2bc2ae14
6dff60f7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 deletions
+13
-13
ApplicationController.php
backend/controllers/ApplicationController.php
+1
-1
image-index.php
backend/views/application/image-index.php
+1
-1
ApplicationBusiness.php
common/business/ApplicationBusiness.php
+1
-1
ExchangeBusiness.php
common/business/ExchangeBusiness.php
+8
-8
CoinApplication.php
common/models/psources/CoinApplication.php
+1
-1
Boc.php
common/service/exchange/Boc.php
+1
-1
No files found.
backend/controllers/ApplicationController.php
View file @
aacd9d0e
...
...
@@ -144,7 +144,7 @@ class ApplicationController extends BaseController
$coin_items
=
CoinImage
::
getItemsByIds
(
$coin_ids
);
}
$app_cate
=
CoinAppCate
::
getAppCate
(
$category_id
,
$id
);
if
(
$applicate
[
'icon'
])
{
if
(
$applicate
[
'icon'
]
&&
isset
(
$coin_items
[
$applicate
[
'icon'
]])
)
{
$icon_info
=
$coin_items
[
$applicate
[
'icon'
]];
$applicate
[
'icon_url'
]
=
$icon_info
[
'base_url'
]
.
$icon_info
[
'file_url'
];
}
else
{
...
...
backend/views/application/image-index.php
View file @
aacd9d0e
...
...
@@ -11,7 +11,7 @@
width
:
100px
;
}
</style>
<h4>
所属应用---
<?=
$applicate
->
name
?>
</h4>
<h4>
所属应用---
<?=
$applicate
->
name
[
"zh-CN"
]
?>
</h4>
<div
class=
"layui-row"
style=
"padding: 5px;"
>
<div
class=
"layui-tab layui-tab-card"
>
<ul
class=
"layui-tab-title"
>
...
...
common/business/ApplicationBusiness.php
View file @
aacd9d0e
...
...
@@ -117,7 +117,7 @@ class ApplicationBusiness
$cate_app_item
=
[];
foreach
(
$data
as
&
$value
){
if
(
$value
[
'icon'
]){
$value
[
'icon'
]
=
$icon_Infos
[
$value
[
'icon'
]][
'base_url'
]
.
$icon_Infos
[
$value
[
'icon'
]][
'file_url'
]
;
$value
[
'icon'
]
=
isset
(
$icon_Infos
[
$value
[
'icon'
]])
?
$icon_Infos
[
$value
[
'icon'
]][
'base_url'
]
.
$icon_Infos
[
$value
[
'icon'
]][
'file_url'
]
:
''
;
}
else
{
$value
[
'icon'
]
=
''
;
}
...
...
common/business/ExchangeBusiness.php
View file @
aacd9d0e
...
...
@@ -38,14 +38,14 @@ class ExchangeBusiness
9
=>
'Go'
,
10
=>
'Zhaobi'
,
11
=>
'Gdpro'
,
12
=>
'
Boc
'
,
13
=>
'
Ex
'
,
14
=>
'
Zt
'
,
15
=>
'
Tsc
'
,
16
=>
'
Binance
'
,
17
=>
'
Ceohk
'
,
18
=>
'Bi
ki
'
,
19
=>
'B
ilaxy
'
12
=>
'
Ex
'
,
13
=>
'
Zt
'
,
14
=>
'
Tsc
'
,
15
=>
'
Binance
'
,
16
=>
'
Ceohk
'
,
17
=>
'
Biki
'
,
18
=>
'Bi
laxy
'
,
19
=>
'B
oc
'
];
/**
...
...
common/models/psources/CoinApplication.php
View file @
aacd9d0e
...
...
@@ -100,7 +100,7 @@ class CoinApplication extends BaseActiveRecord
$recommendItems
=
CoinApplicateRecommend
::
getRecommendItemsByType
(
2
);
foreach
(
$data
as
$key
=>
&
$value
){
if
(
$value
[
'icon'
]){
$value
[
'icon_url'
]
=
$icon_Infos
[
$value
[
'icon'
]][
'base_url'
]
.
$icon_Infos
[
$value
[
'icon'
]][
'file_url'
]
;
$value
[
'icon_url'
]
=
isset
(
$icon_Infos
[
$value
[
'icon'
]])
?
$icon_Infos
[
$value
[
'icon'
]][
'base_url'
]
.
$icon_Infos
[
$value
[
'icon'
]][
'file_url'
]
:
''
;
}
else
{
$value
[
'icon_url'
]
=
''
;
}
...
...
common/service/exchange/Boc.php
View file @
aacd9d0e
...
...
@@ -64,7 +64,7 @@ class Boc extends Exchange implements ExchangeInterface
$response
=
iconv
(
'UTF-8'
,
'GBK//TRANSLIT'
,
$response
);
$html
=
HtmlDomParser
::
str_get_html
(
$response
);
$div
=
(
$html
->
find
(
'div.BOC_main'
))
[
0
]
;
$div
=
(
$html
->
find
(
'div.BOC_main'
));
foreach
(
$div
->
find
(
'td'
)
as
$key
=>
$e
){
if
(
$key
==
5
){
$key
=
$this
->
quotation_prefix
.
'CNY_JPY'
;
...
...
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