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
9209bfae
authored
Aug 24, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
数据
parent
c1c62c70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
app/Http/Services/DataService.php
app/Http/routes.php
app/Http/Services/DataService.php
View file @
9209bfae
...
@@ -266,7 +266,8 @@ class DataService
...
@@ -266,7 +266,8 @@ class DataService
public
function
pushSupplierSKu
()
public
function
pushSupplierSKu
()
{
{
$supplierModel
=
new
SupplierChannelModel
();
$supplierModel
=
new
SupplierChannelModel
();
$suppliers
=
$supplierModel
->
where
(
'is_type'
,
0
)
->
where
(
'supplier_group'
,
4
)
->
get
()
->
toArray
();
$suppliers
=
$supplierModel
->
where
(
'is_type'
,
0
)
->
where
(
'supplier_group'
,
4
)
->
orderBy
(
'supplier_id'
,
'desc'
)
->
limit
(
130
)
->
get
()
->
toArray
();
$redis
=
new
RedisModel
();
$redis
=
new
RedisModel
();
foreach
(
$suppliers
as
$supplier
)
{
foreach
(
$suppliers
as
$supplier
)
{
$supplierTag
=
$redis
->
hget
(
'supplier_search_tags'
,
$supplier
[
'supplier_code'
]);
$supplierTag
=
$redis
->
hget
(
'supplier_search_tags'
,
$supplier
[
'supplier_code'
]);
...
...
app/Http/routes.php
View file @
9209bfae
...
@@ -44,7 +44,7 @@ Route::group(['middleware' => ['web'], 'namespace' => 'Api'], function () {
...
@@ -44,7 +44,7 @@ Route::group(['middleware' => ['web'], 'namespace' => 'Api'], function () {
});
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
$service
=
new
\App\Http\Services\DataService
();
$service
=
new
\App\Http\Services\DataService
();
$service
->
importBlockSupplier
();
$service
->
pushSupplierSKu
();
// $service->makeSupplierSystemTag();
// $service->makeSupplierSystemTag();
// $service->initSystemTag();
// $service->initSystemTag();
// $service->transferFileData();
// $service->transferFileData();
...
...
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