Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
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
92529de4
authored
May 12, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
类型添加新的枚举值
parent
29595f12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
app/Http/Services/SupplierTagService.php
config/fixed.php
app/Http/Services/SupplierTagService.php
View file @
92529de4
...
...
@@ -47,11 +47,16 @@ class SupplierTagService
//获取供应商对应的标签
public
function
getTagsBySupplierId
(
$supplierId
,
$type
)
{
//1是系统标签,2是自定义标签
$tagUse
=
$type
==
1
?
self
::
TAG_TYPE_SYSTEM
:
self
::
TAG_TYPE_CUSTOMER
;
$response
=
$this
->
client
->
get
(
'/get?tag_use='
.
$tagUse
.
'&req_id='
.
$supplierId
);
$data
=
json_decode
(
$response
->
getBody
()
->
getContents
(),
true
);
return
!
empty
(
$data
[
'data'
])
?
$data
[
'data'
]
:
[];
try
{
//1是系统标签,2是自定义标签
$tagUse
=
$type
==
1
?
self
::
TAG_TYPE_SYSTEM
:
self
::
TAG_TYPE_CUSTOMER
;
$response
=
$this
->
client
->
get
(
'/get?tag_use='
.
$tagUse
.
'&req_id='
.
$supplierId
);
$data
=
json_decode
(
$response
->
getBody
()
->
getContents
(),
true
);
return
!
empty
(
$data
[
'data'
])
?
$data
[
'data'
]
:
[];
}
catch
(
\Exception
$exception
)
{
return
[];
}
}
public
function
getSystemTagsBySupplierId
(
$supplierId
)
...
...
config/fixed.php
View file @
92529de4
...
...
@@ -80,6 +80,7 @@ return [
],
'StockupType'
=>
[
9
=>
'原厂授权'
,
1
=>
'国内现货'
,
6
=>
'猎芯期货'
,
3
=>
'国际现货'
,
...
...
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