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
fa0389e9
authored
Oct 21, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复生成账号luoji
parent
a1b9107d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
app/Http/Services/SupplierAccountService.php
app/Http/Services/SupplierAuditService.php
app/Http/routes.php
app/Http/Services/SupplierAccountService.php
View file @
fa0389e9
...
...
@@ -82,6 +82,7 @@ class SupplierAccountService
if
(
strpos
(
$supplier
->
stockup_type
,
(
string
)
SupplierChannelModel
::
SUPPLIER_STOCKUP_TYPE_XINLIAN
)
===
false
)
{
return
;
}
//新建账号
SupplierAccountModel
::
insert
([
'supplier_id'
=>
$supplierId
,
...
...
app/Http/Services/SupplierAuditService.php
View file @
fa0389e9
...
...
@@ -34,8 +34,8 @@ class SupplierAuditService
'reject_reason'
=>
$rejectReason
,
];
//自动创建芯链账号
SupplierAccountService
::
autoCreateYunxinAccount
(
$supplierId
);
$result
=
$model
->
where
(
'supplier_id'
,
$supplierId
)
->
update
(
$update
);
SupplierAccountService
::
autoCreateYunxinAccount
(
$supplierId
);
//如果是待复审状态,通过的话还要将是否需要复审状态置为0
}
elseif
(
$supplier
[
'status'
]
===
SupplierChannelModel
::
STATUS_NEED_REVIEW
)
{
...
...
app/Http/routes.php
View file @
fa0389e9
...
...
@@ -96,7 +96,7 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
SupplierChannelModel
::
where
(
'supplier_id'
,
'18715'
)
->
delete
(
);
SupplierAccountService
::
autoCreateYunxinAccount
(
18780
);
// DataService::initSupplierReceiptNationId();
// SupplierAccountService::initYunxinAccountName();
// DataService::syncSupplierToErp();
...
...
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