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
b779eb93
authored
Jul 16, 2025
by
duwenjun
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'feature/wenjun/20250716_xinlian' into 'master'
联系人不能为空 See merge request
!3
parents
b8327d3a
9798ff45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
app/Http/Validators/SupplierAccountValidator.php
app/Http/Validators/SupplierAccountValidator.php
View file @
b779eb93
...
...
@@ -17,6 +17,7 @@ class SupplierAccountValidator
$account
=
$request
->
all
();
$rules
=
[
"supplier_code"
=>
"required"
,
"contacts_name"
=>
"required"
,
"mobile"
=>
"required|regex:/^1[0-9][0-9]
{
9
}
$/"
,
"password_raw"
=>
"required"
,
"a_type"
=>
"required"
,
...
...
@@ -55,6 +56,7 @@ class SupplierAccountValidator
{
return
[
'supplier_code.required'
=>
'请选择一个供应商'
,
'contacts_name.required'
=>
'联系人不能为空'
,
'a_type.required'
=>
'类型必须勾选为芯链商家'
,
'mobile.required'
=>
'登录账号不能为空'
,
'mobile.regex'
=>
'账号格式必须为手机号'
,
...
...
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