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
1754e2bb
authored
Jul 26, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
供应商名称
parent
2938074b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
app/Http/Validators/SupplierValidator.php
app/Http/Validators/SupplierValidator.php
View file @
1754e2bb
...
...
@@ -28,6 +28,10 @@ class SupplierValidator
$isAdd
=
empty
(
$validateData
[
'supplier_id'
])
?
true
:
false
;
if
(
!
$validateData
[
'supplier_name'
])
{
return
'供应商名称不能为空'
;
}
if
(
$validateData
[
'supplier_name'
])
{
//新增的时候要先去检验下一体化的数据,如果是实体黑名单用户,那么就不允许新增
$regionType
=
$validateData
[
'region'
]
==
SupplierChannelModel
::
REGION_CN
?
1
:
2
;
...
...
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