Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
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
0858c8e6
authored
Dec 05, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
新增地址逻辑
parent
6663e02f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/Http/Requests/UserAddressSave.php
app/Http/Requests/UserAddressSave.php
View file @
0858c8e6
...
@@ -33,7 +33,6 @@ class UserAddressSave extends BaseRequest
...
@@ -33,7 +33,6 @@ class UserAddressSave extends BaseRequest
'first_name'
=>
'required|max:50'
,
'first_name'
=>
'required|max:50'
,
'detail_address'
=>
'required|max:255'
,
'detail_address'
=>
'required|max:255'
,
'post_code'
=>
'required|max:10'
,
'post_code'
=>
'required|max:10'
,
'address_type'
=>
'required|in:1,2'
];
];
if
(
request
()
->
input
(
'address_type'
)
==
UserAddressModel
::
ADDRESS_TYPE_COMPANY
)
{
if
(
request
()
->
input
(
'address_type'
)
==
UserAddressModel
::
ADDRESS_TYPE_COMPANY
)
{
...
@@ -44,6 +43,7 @@ class UserAddressSave extends BaseRequest
...
@@ -44,6 +43,7 @@ class UserAddressSave extends BaseRequest
if
(
!
$isRegister
)
{
if
(
!
$isRegister
)
{
$rules
[
'email'
]
=
'required|email'
;
$rules
[
'email'
]
=
'required|email'
;
$rules
[
'phone'
]
=
'required|max:20'
;
$rules
[
'phone'
]
=
'required|max:20'
;
$rules
[
'address_type'
]
=
'required|in:1,2'
;
}
}
if
(
request
()
->
routeIs
(
'user_address.update'
))
{
if
(
request
()
->
routeIs
(
'user_address.update'
))
{
...
...
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