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
f2d5e764
authored
Jul 07, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
特定代购供应商可以跳过校验,直接申请审核
parent
ac5713a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
app/Http/Validators/SupplierValidator.php
app/Http/routes.php
app/Http/Validators/SupplierValidator.php
View file @
f2d5e764
...
...
@@ -20,6 +20,11 @@ class SupplierValidator
//整理下请求数据
$validateData
=
$this
->
transformRequestData
(
$validateData
);
//这里还有个很特殊的校验,就是如果是代购供应商,就直接跳过校验
if
(
in_array
(
$validateData
[
'supplier_name'
],
config
(
'field.SkipChangeSupplierTypeNames'
)))
{
return
null
;
}
//没有忽略校验的权限并且供应商地区属于内地和港台才会去校验天眼查
if
(
!
checkPerm
(
'IgnoreCompanyCheck'
)
&&
in_array
(
$validateData
[
'region'
],
config
(
'field.NeedCheckCompanyRegion'
)))
{
...
...
app/Http/routes.php
View file @
f2d5e764
...
...
@@ -60,5 +60,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
(
new
\App\Http\Services\DataService
())
->
findDuplicateSupplier
();
//
(new \App\Http\Services\DataService())->findDuplicateSupplier();
});
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