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
c83402a1
authored
Sep 22, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复数据
parent
8d6db552
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
app/Http/routes.php
app/Http/routes.php
View file @
c83402a1
...
...
@@ -13,17 +13,18 @@
use
App\Model\RedisModel
;
use
App\Model\NationModel
;
use
App\Http\Services\CrmService
;
use
App\Http\Services\SkuService
;
use
App\Http\Services\DataService
;
use
App\Model\AttachmentAuditModel
;
use
App\Model\SupplierChannelModel
;
use
App\Model\SupplierContractModel
;
use
App\Http\Services\CompanyService
;
use
Illuminate\Support\Facades\Route
;
use
App\Http\Services\DepartmentService
;
use
App\Model\SupplierAttachmentsModel
;
use
App\Http\Services\DepartmentService
;
use
App\Http\Services\SupplierAccountService
;
use
App\Model\AttachmentAuditModel
;
Route
::
group
([
'middleware'
=>
[
'web'
,
'menu'
]],
function
()
{
Route
::
get
(
'/'
,
'WebController@Entrance'
);
...
...
@@ -95,9 +96,24 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
$updateData
=
[
'波斯尼亚和黑塞哥维那'
=>
'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::initSupplierReceiptNationId();
// SupplierAccountService::initYunxinAccountName();
DataService
::
syncSupplierToErp
();
//
DataService::syncSupplierToErp();
// DataService::repaireSkuUploadRuler();
});
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