Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5691d711
authored
Nov 30, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
分类返回图片
parent
16fd48a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
app/Http/Services/ClassService.php
config/field.php
app/Http/Services/ClassService.php
View file @
5691d711
...
@@ -51,6 +51,7 @@ class ClassService
...
@@ -51,6 +51,7 @@ class ClassService
if
(
empty
(
$secondClass
[
'class_name_en'
]))
{
if
(
empty
(
$secondClass
[
'class_name_en'
]))
{
continue
;
continue
;
}
}
$topFields
[
$key
][
'img'
]
=
\Arr
::
get
(
config
(
'field.top_class_img_mapping'
),
$key
);
$topFields
[
$key
][
'children'
][]
=
$secondClass
;
$topFields
[
$key
][
'children'
][]
=
$secondClass
;
}
}
}
}
...
...
config/field.php
View file @
5691d711
...
@@ -15,5 +15,10 @@ return [
...
@@ -15,5 +15,10 @@ return [
'Actives'
=>
[
13396
,
13782
,
13359
,
13287
,
13482
,
13488
],
'Actives'
=>
[
13396
,
13782
,
13359
,
13287
,
13482
,
13488
],
'Passives'
=>
[
13693
,
13799
,
13706
,
13586
,
13626
,
13883
],
'Passives'
=>
[
13693
,
13799
,
13706
,
13586
,
13626
,
13883
],
'Modules & Devices & Products'
=>
[
13550
,
13449
,
13821
,
13734
,
13757
,
13762
],
'Modules & Devices & Products'
=>
[
13550
,
13449
,
13821
,
13734
,
13757
,
13762
],
],
'top_class_img_mapping'
=>
[
'Actives'
=>
'https://img.ichunt.com/images/cms/202009/15/6714a6cee89c8a258a9b8ed2642131ba.png'
,
'Passives'
=>
'https://img.ichunt.com/images/cms/202009/15/2e95ec65caf11787fa13ac60f90bf2f2.png'
,
'Modules & Devices & Products'
=>
'https://img.ichunt.com/images/cms/202009/15/37b1c3bb9823c5303cc22962695d2e58.jpg'
,
]
]
];
];
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