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
193b675f
Commit
193b675f
authored
Oct 17, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复已知问题 2
parent
309df1ea
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
ApplicationController.php
api/controllers/ApplicationController.php
+2
-2
ApplicationBusiness.php
common/business/ApplicationBusiness.php
+2
-2
CoinApplication.php
common/models/psources/CoinApplication.php
+1
-1
No files found.
api/controllers/ApplicationController.php
View file @
193b675f
...
...
@@ -129,7 +129,7 @@ class ApplicationController extends BaseController
$icon_Infos
=
CoinImage
::
getItemsByIds
(
$icon_Items
);
foreach
(
$data
as
$key
=>
&
$value
){
if
(
$value
[
'icon'
]){
$value
[
'icon'
]
=
$icon_Infos
[
$value
[
'icon'
]][
'base_
url'
]
.
$icon_Infos
[
$value
[
'icon'
]][
'file_url'
];
$value
[
'icon'
]
=
Yii
::
$app
->
params
[
'service'
][
'OssService'
][
'
url'
]
.
$icon_Infos
[
$value
[
'icon'
]][
'file_url'
];
}
else
{
$value
[
'icon'
]
=
""
;
}
...
...
@@ -157,7 +157,7 @@ class ApplicationController extends BaseController
$name
=
json_decode
(
$value
[
'name'
],
true
);
$value
[
'name'
]
=
$name
[
$this
->
lang
];
if
(
$value
[
'icon'
]){
$value
[
'icon'
]
=
$icon_Infos
[
$value
[
'icon'
]][
'base_
url'
]
.
$icon_Infos
[
$value
[
'icon'
]][
'file_url'
];
$value
[
'icon'
]
=
Yii
::
$app
->
params
[
'service'
][
'OssService'
][
'
url'
]
.
$icon_Infos
[
$value
[
'icon'
]][
'file_url'
];
}
else
{
$value
[
'icon'
]
=
''
;
}
...
...
common/business/ApplicationBusiness.php
View file @
193b675f
...
...
@@ -46,7 +46,7 @@ class ApplicationBusiness
}
}
if
(
$value
[
'icon'
])
{
$value
[
'icon'
]
=
$icon_Infos
[
$value
[
'icon'
]][
'base_
url'
]
.
$icon_Infos
[
$value
[
'icon'
]][
'file_url'
];
$value
[
'icon'
]
=
Yii
::
$app
->
params
[
'service'
][
'OssService'
][
'
url'
]
.
$icon_Infos
[
$value
[
'icon'
]][
'file_url'
];
}
else
{
$value
[
'icon'
]
=
''
;
}
...
...
@@ -206,7 +206,7 @@ class ApplicationBusiness
$cate_app_item
[
'id'
]
=
$value
[
'id'
];
$cate_app_item
[
'name'
]
=
$value
[
'name'
];
if
(
$value
[
'icon'
])
{
$cate_app_item
[
'icon_url'
]
=
$icon_Infos
[
$value
[
'icon'
]][
'base_
url'
]
.
$icon_Infos
[
$value
[
'icon'
]][
'file_url'
];
$cate_app_item
[
'icon_url'
]
=
Yii
::
$app
->
params
[
'service'
][
'OssService'
][
'
url'
]
.
$icon_Infos
[
$value
[
'icon'
]][
'file_url'
];
}
else
{
$cate_app_item
[
'icon_url'
]
=
''
;
}
...
...
common/models/psources/CoinApplication.php
View file @
193b675f
...
...
@@ -55,7 +55,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'
]
=
Yii
::
$app
->
params
[
'service'
][
'OssService'
][
'
url'
]
.
$icon_Infos
[
$value
[
'icon'
]][
'file_url'
];
}
else
{
$value
[
'icon_url'
]
=
''
;
}
...
...
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