Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
811379cb
Commit
811379cb
authored
Nov 16, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单确认检测地址
parent
8a4ff984
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
OrderConfirmUtil.php
application/library/Order/OrderConfirmUtil.php
+8
-3
No files found.
application/library/Order/OrderConfirmUtil.php
View file @
811379cb
...
...
@@ -73,9 +73,6 @@ class OrderConfirmUtil {
$this
->
memberId
=
$memberId
;
$this
->
member
=
\DAO\MemberModel
::
getInstance
()
->
getInfo
(
$this
->
memberId
);
$this
->
address
=
$this
->
checkCurrentAddress
(
$currentAddress
,
$this
->
memberId
);
if
(
!
$this
->
address
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
noAddressForOrder
);
}
//if($this ->address['addressId'] == )
$this
->
postData
=
json_decode
(
$data
[
'param'
],
true
);
if
(
!
$this
->
postData
){
...
...
@@ -158,6 +155,9 @@ class OrderConfirmUtil {
}
public
function
checkOneStoreData
(
$temp
){
if
(
!
$this
->
address
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
noAddressForOrder
);
}
if
(
!
$temp
[
'storeId'
]){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyStoreIdForOrder
);
}
...
...
@@ -194,6 +194,11 @@ class OrderConfirmUtil {
* @throws \Exception
*/
public
function
checkOneStoreDataNew
(
$temp
){
if
(
$temp
[
'deliveryType'
]
==
\Our\ApiConst
::
deliveryStore
){
if
(
!
$this
->
address
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
noAddressForOrder
);
}
}
if
(
!
$temp
[
'storeId'
]){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyStoreIdForOrder
);
}
...
...
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