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
30675b42
authored
May 26, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
3f24f7c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
app/Http/Controllers/Filter/SkuListFilter.php
app/Http/Services/SkuService.php
app/Http/Controllers/Filter/SkuListFilter.php
View file @
30675b42
...
@@ -21,7 +21,6 @@ class SkuListFilter
...
@@ -21,7 +21,6 @@ class SkuListFilter
$map
=
array_map
(
function
(
$item
)
{
$map
=
array_map
(
function
(
$item
)
{
return
trim
(
$item
);
return
trim
(
$item
);
},
$map
);
},
$map
);
//dd($map);
//只获取专卖的数据
//只获取专卖的数据
$map
[
'supplier_id'
]
=
17
;
$map
[
'supplier_id'
]
=
17
;
if
((
!
empty
(
$map
[
'create_time'
])))
{
if
((
!
empty
(
$map
[
'create_time'
])))
{
...
@@ -46,6 +45,7 @@ class SkuListFilter
...
@@ -46,6 +45,7 @@ class SkuListFilter
$query
->
whereIn
(
'purchase_uid'
,
$subordinateCodeIds
)
$query
->
whereIn
(
'purchase_uid'
,
$subordinateCodeIds
)
->
orWhereRaw
(
"channel_uid REGEXP '"
.
implode
(
'|'
,
$subordinateCodeIds
)
.
"'"
);
->
orWhereRaw
(
"channel_uid REGEXP '"
.
implode
(
'|'
,
$subordinateCodeIds
)
.
"'"
);
})
->
whereNotNull
(
'supplier_code'
)
->
where
(
'supplier_code'
,
'!='
,
''
)
->
pluck
(
'supplier_code'
)
->
toArray
();
})
->
whereNotNull
(
'supplier_code'
)
->
where
(
'supplier_code'
,
'!='
,
''
)
->
pluck
(
'supplier_code'
)
->
toArray
();
if
(
!
empty
(
$supplierCodes
))
{
if
(
!
empty
(
$supplierCodes
))
{
$map
[
'canal_new/eqs'
]
=
implode
(
','
,
$supplierCodes
);
$map
[
'canal_new/eqs'
]
=
implode
(
','
,
$supplierCodes
);
}
else
{
}
else
{
...
...
app/Http/Services/SkuService.php
View file @
30675b42
...
@@ -44,9 +44,7 @@ class SkuService extends BaseService
...
@@ -44,9 +44,7 @@ class SkuService extends BaseService
die
();
die
();
}
}
try
{
try
{
// $return = curl($url, $map, 1);
$return
=
curl
(
$url
,
$map
,
1
);
$url
=
base64_encode
(
$url
.
'?'
.
http_build_query
(
$map
));
$return
=
curl
(
config
(
'website.FootstoneCurlUrl'
)
.
$url
);
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
return
$e
->
getMessage
();
return
$e
->
getMessage
();
}
}
...
...
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