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
f9c1a5b7
authored
Jul 22, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
carbon问题
parent
ad1a96d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
app/Http/Validators/SupplierValidator.php
app/Http/Validators/SupplierValidator.php
View file @
f9c1a5b7
...
@@ -125,12 +125,11 @@ class SupplierValidator
...
@@ -125,12 +125,11 @@ class SupplierValidator
'is_business_abnormal'
=>
'required'
,
'is_business_abnormal'
=>
'required'
,
'phone'
=>
'required'
,
'phone'
=>
'required'
,
];
];
//2022年6月30日(含)之前新建的供应商,在修改供应商信息时,可跳过“注册资金”这一必填项
//2022年6月30日(含)之前新建的供应商,在修改供应商信息时,可跳过“注册资金”这一必填项
if
(
!
$isAdd
)
{
if
(
!
$isAdd
)
{
$supplier
=
SupplierChannelModel
::
where
(
'supplier_id'
,
$validateData
[
'supplier_id'
])
$supplier
=
SupplierChannelModel
::
where
(
'supplier_id'
,
$validateData
[
'supplier_id'
])
->
first
()
->
toArray
();
->
first
()
->
toArray
();
if
(
$supplier
[
'create_time'
]
<
Carbon
::
createFromDate
(
'2022-06-30'
)
->
timestamp
)
{
if
(
$supplier
[
'create_time'
]
<
Carbon
::
createFromDate
(
2022
,
6
,
30
)
->
timestamp
)
{
$rules
[
'registered_capital'
]
=
''
;
$rules
[
'registered_capital'
]
=
''
;
}
}
}
}
...
...
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