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
3b4afffc
authored
Sep 26, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
加入更多判断
parent
c83402a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
15 deletions
app/Http/Services/SupplierAuditService.php
app/Http/routes.php
app/Http/Services/SupplierAuditService.php
View file @
3b4afffc
...
@@ -57,6 +57,7 @@ class SupplierAuditService
...
@@ -57,6 +57,7 @@ class SupplierAuditService
]);
]);
}
}
}
else
{
}
else
{
SupplierAccountService
::
autoCreateYunxinAccount
(
$supplierId
);
//剩下的就是普通的审核
//剩下的就是普通的审核
$result
=
$model
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
$result
=
$model
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'update_time'
=>
time
(),
'update_time'
=>
time
(),
...
...
app/Http/routes.php
View file @
3b4afffc
...
@@ -96,21 +96,7 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
...
@@ -96,21 +96,7 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
$updateData
=
[
SupplierAccountService
::
autoCreateYunxinAccount
(
18708
);
'波斯尼亚和黑塞哥维那'
=>
'BA'
,
'中非共和国'
=>
'CF'
,
'民主刚果'
=>
'CD'
,
'马其顿'
=>
'MK'
,
'几内亚(比绍)'
=>
'GW'
,
'密克罗尼西亚'
=>
'FM'
,
'俄罗斯'
=>
'RU'
,
'南苏丹'
=>
'SS'
,
'阿拉伯联合酋长国'
=>
'AE'
,
];
foreach
(
$updateData
as
$chineseName
=>
$englishCode
)
{
NationModel
::
where
(
'name_cn'
,
$chineseName
)
->
update
([
'international_code'
=>
$englishCode
]);
}
// DataService::initSupplierNationId();
// DataService::initSupplierNationId();
// DataService::initSupplierReceiptNationId();
// DataService::initSupplierReceiptNationId();
// SupplierAccountService::initYunxinAccountName();
// SupplierAccountService::initYunxinAccountName();
...
...
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