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
f0435e16
authored
Jun 03, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
3bfebb71
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
app/Http/Services/SkuService.php
config/field.php
app/Http/Services/SkuService.php
View file @
f0435e16
...
@@ -176,8 +176,8 @@ class SkuService extends BaseService
...
@@ -176,8 +176,8 @@ class SkuService extends BaseService
$selectFields
=
[
'goods_id'
,
'create_time'
,
'eccn'
,
'source'
,
'encoded'
,
'org_id'
];
$selectFields
=
[
'goods_id'
,
'create_time'
,
'eccn'
,
'source'
,
'encoded'
,
'org_id'
];
$skuDBData
=
$connection
->
table
(
$table
)
->
select
(
$selectFields
)
->
where
(
'goods_id'
,
$item
[
'goods_id'
])
->
first
();
$skuDBData
=
$connection
->
table
(
$table
)
->
select
(
$selectFields
)
->
where
(
'goods_id'
,
$item
[
'goods_id'
])
->
first
();
$skuDBData
=
$skuDBData
?
$skuDBData
:
[];
$skuDBData
=
$skuDBData
?
$skuDBData
:
[];
$item
[
'source_name'
]
=
array_get
(
config
(
'field.SkuSource'
),
@
$skuDBData
[
'source'
]
,
''
);
$item
[
'source_name'
]
=
array_get
(
config
(
'field.SkuSource'
),
!
empty
(
$skuDBData
[
'source'
])
?
$skuDBData
[
'source'
]
:
1
,
''
);
$item
[
'org_name'
]
=
array_get
(
config
(
'field.SkuOrgList'
),
@
$skuDBData
[
'org_id'
]
,
''
);
$item
[
'org_name'
]
=
array_get
(
config
(
'field.SkuOrgList'
),
!
empty
(
$skuDBData
[
'org_id'
])
?
$skuDBData
[
'org_id'
]
:
1
,
''
);
$item
[
'ability_level_name'
]
=
(
!
empty
(
$item
[
'ability_level'
])
?
$item
[
'ability_level'
]
:
0
)
==
2
?
'强履约'
:
'弱履约'
;
$item
[
'ability_level_name'
]
=
(
!
empty
(
$item
[
'ability_level'
])
?
$item
[
'ability_level'
]
:
0
)
==
2
?
'强履约'
:
'弱履约'
;
$item
[
'create_time'
]
=
!
empty
(
$skuDBData
[
'create_time'
])
?
date
(
'Y-m-d H:i:s'
,
$skuDBData
[
'create_time'
])
:
''
;
$item
[
'create_time'
]
=
!
empty
(
$skuDBData
[
'create_time'
])
?
date
(
'Y-m-d H:i:s'
,
$skuDBData
[
'create_time'
])
:
''
;
return
$item
;
return
$item
;
...
...
config/field.php
View file @
f0435e16
...
@@ -411,6 +411,6 @@ return [
...
@@ -411,6 +411,6 @@ return [
'SkuIsExpire'
=>
[
'SkuIsExpire'
=>
[
0
=>
'未过期'
,
0
=>
'未过期'
,
1
=>
'已过期'
,
1
=>
'已过期'
,
-
1
=>
''
-
1
=>
'
已过期
'
],
],
];
];
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