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
f99e3ecf
authored
Nov 13, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
加上日志
parent
67aa169f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
app/Http/Controllers/Api/SkuApiController.php
app/Http/Controllers/Api/SkuApiController.php
View file @
f99e3ecf
...
@@ -6,6 +6,7 @@ use Illuminate\Http\Request;
...
@@ -6,6 +6,7 @@ use Illuminate\Http\Request;
use
App\Model\SkuUploadLogModel
;
use
App\Model\SkuUploadLogModel
;
use
App\Http\Services\SkuService
;
use
App\Http\Services\SkuService
;
use
App\Model\SupplierChannelModel
;
use
App\Model\SupplierChannelModel
;
use
Illuminate\Support\Facades\Log
;
use
App\Http\Controllers\Controller
;
use
App\Http\Controllers\Controller
;
use
function
GuzzleHttp
\Promise\all
;
use
function
GuzzleHttp
\Promise\all
;
use
App\Http\Services\SupplierTagService
;
use
App\Http\Services\SupplierTagService
;
...
@@ -74,6 +75,14 @@ class SkuApiController extends Controller
...
@@ -74,6 +75,14 @@ class SkuApiController extends Controller
$uploadLogId
=
SkuUploadLogModel
::
where
(
'supplier_code'
,
$supplierCode
)
$uploadLogId
=
SkuUploadLogModel
::
where
(
'supplier_code'
,
$supplierCode
)
->
where
(
'status'
,
SkuUploadLogModel
::
STATUS_HANDLED
)
->
orderBy
(
'id'
,
'desc'
)
->
where
(
'status'
,
SkuUploadLogModel
::
STATUS_HANDLED
)
->
orderBy
(
'id'
,
'desc'
)
->
value
(
'id'
);
->
value
(
'id'
);
$content
=
[
'supplier_code'
=>
$supplierCode
,
'brand_id'
=>
$brandId
,
'log_id'
=>
$uploadLogId
,
"down_type"
=>
1
,
'user_name'
=>
$request
->
user
->
name
,
];
Log
::
info
(
$content
);
$data
=
[
$data
=
[
'supplier_code'
=>
$supplierCode
,
'supplier_code'
=>
$supplierCode
,
...
...
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