Commit f2d5e764 by 杨树贤

特定代购供应商可以跳过校验,直接申请审核

parent ac5713a1
...@@ -20,6 +20,11 @@ class SupplierValidator ...@@ -20,6 +20,11 @@ class SupplierValidator
//整理下请求数据 //整理下请求数据
$validateData = $this->transformRequestData($validateData); $validateData = $this->transformRequestData($validateData);
//这里还有个很特殊的校验,就是如果是代购供应商,就直接跳过校验
if (in_array($validateData['supplier_name'], config('field.SkipChangeSupplierTypeNames'))) {
return null;
}
//没有忽略校验的权限并且供应商地区属于内地和港台才会去校验天眼查 //没有忽略校验的权限并且供应商地区属于内地和港台才会去校验天眼查
if (!checkPerm('IgnoreCompanyCheck') && in_array($validateData['region'], if (!checkPerm('IgnoreCompanyCheck') && in_array($validateData['region'],
config('field.NeedCheckCompanyRegion'))) { config('field.NeedCheckCompanyRegion'))) {
......
...@@ -60,5 +60,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function () ...@@ -60,5 +60,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
}); });
Route::match(['get', 'post'], '/test', function () { Route::match(['get', 'post'], '/test', function () {
(new \App\Http\Services\DataService())->findDuplicateSupplier(); // (new \App\Http\Services\DataService())->findDuplicateSupplier();
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment