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
e3d2c71f
Commit
e3d2c71f
authored
Sep 08, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单备注
parent
515123ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
OrderConfirmUtil.php
application/library/Order/OrderConfirmUtil.php
+5
-1
No files found.
application/library/Order/OrderConfirmUtil.php
View file @
e3d2c71f
...
@@ -39,6 +39,8 @@ class OrderConfirmUtil {
...
@@ -39,6 +39,8 @@ class OrderConfirmUtil {
private
$saleGoodsIds
=
array
();
//参与销售活动结算的goodsId 列表
private
$saleGoodsIds
=
array
();
//参与销售活动结算的goodsId 列表
private
$storeMemos
=
array
();
public
function
addOrder
(
$data
,
$memberId
,
$currentAddress
){
public
function
addOrder
(
$data
,
$memberId
,
$currentAddress
){
$storeCartData
=
$this
->
checkPostData
(
$data
,
$memberId
,
$currentAddress
);
$storeCartData
=
$this
->
checkPostData
(
$data
,
$memberId
,
$currentAddress
);
$storeCartData
=
$this
->
checkDeliveryTypeAndPayway
(
$storeCartData
);
$storeCartData
=
$this
->
checkDeliveryTypeAndPayway
(
$storeCartData
);
...
@@ -84,6 +86,7 @@ class OrderConfirmUtil {
...
@@ -84,6 +86,7 @@ class OrderConfirmUtil {
$gcIds
=
isset
(
$cartList
[
'gcIds'
])
?
$cartList
[
'gcIds'
]
:
array
();
$gcIds
=
isset
(
$cartList
[
'gcIds'
])
?
$cartList
[
'gcIds'
]
:
array
();
$storeCartData
=
array
(
'cartList'
=>
$cartList
[
'list'
],
'storeIds'
=>
array_keys
(
$cartList
[
'list'
]),
'goodsIds'
=>
$cartList
[
'goodsIds'
],
'goodsCommonIds'
=>
$cartList
[
'goodsCommonIds'
],
'blIds'
=>
$cartList
[
'blIds'
],
'gcIds'
=>
$gcIds
);
$storeCartData
=
array
(
'cartList'
=>
$cartList
[
'list'
],
'storeIds'
=>
array_keys
(
$cartList
[
'list'
]),
'goodsIds'
=>
$cartList
[
'goodsIds'
],
'goodsCommonIds'
=>
$cartList
[
'goodsCommonIds'
],
'blIds'
=>
$cartList
[
'blIds'
],
'gcIds'
=>
$gcIds
);
$this
->
storeIds
=
array_keys
(
$cartList
[
'list'
]);
$this
->
storeIds
=
array_keys
(
$cartList
[
'list'
]);
$this
->
storeMemos
[
$this
->
postData
[
'storeId'
]]
=
isset
(
$this
->
postData
[
'storeMemo'
])
?
$this
->
postData
[
'storeMemo'
]
:
\Our\NameConst
::
emptyString
;
}
else
{
}
else
{
foreach
(
$this
->
postData
as
$temp
){
foreach
(
$this
->
postData
as
$temp
){
$this
->
checkOneStoreData
(
$temp
);
$this
->
checkOneStoreData
(
$temp
);
...
@@ -98,6 +101,7 @@ class OrderConfirmUtil {
...
@@ -98,6 +101,7 @@ class OrderConfirmUtil {
$this
->
storeIds
[]
=
$temp
[
'storeId'
];
$this
->
storeIds
[]
=
$temp
[
'storeId'
];
$this
->
storeCartIds
[
$temp
[
'storeId'
]]
=
$temp
[
'cartIds'
];
$this
->
storeCartIds
[
$temp
[
'storeId'
]]
=
$temp
[
'cartIds'
];
$this
->
postFormatData
[
$temp
[
'storeId'
]]
=
$temp
;
$this
->
postFormatData
[
$temp
[
'storeId'
]]
=
$temp
;
$this
->
storeMemos
[
$temp
[
'storeId'
]]
=
isset
(
$temp
[
'storeMemo'
])
?
$temp
[
'storeMemo'
]
:
\Our\NameConst
::
emptyString
;
}
}
if
(
$this
->
couponIds
){
if
(
$this
->
couponIds
){
if
(
count
(
$this
->
couponIds
)
!=
count
(
array_unique
(
$this
->
couponIds
))){
if
(
count
(
$this
->
couponIds
)
!=
count
(
array_unique
(
$this
->
couponIds
))){
...
@@ -411,7 +415,7 @@ class OrderConfirmUtil {
...
@@ -411,7 +415,7 @@ class OrderConfirmUtil {
$orderCommon
=
array
();
$orderCommon
=
array
();
$orderCommon
[
'order_id'
]
=
$orderId
;
$orderCommon
[
'order_id'
]
=
$orderId
;
$orderCommon
[
'store_id'
]
=
$storeId
;
$orderCommon
[
'store_id'
]
=
$storeId
;
$orderCommon
[
'order_message'
]
=
isset
(
$this
->
postFormatData
[
$storeId
][
'storeMemo'
])
?
$this
->
postFormatData
[
$storeId
][
'storeMemo'
]
:
\Our\NameConst
::
emptyString
;
$orderCommon
[
'order_message'
]
=
isset
(
$this
->
storeMemos
[
$storeId
])
?
$this
->
storeMemos
[
$storeId
]
:
\Our\NameConst
::
emptyString
;
$orderCommon
[
'reciver_info'
]
=
$reciverInfo
;
$orderCommon
[
'reciver_info'
]
=
$reciverInfo
;
$orderCommon
[
'reciver_name'
]
=
$reciverName
;
$orderCommon
[
'reciver_name'
]
=
$reciverName
;
$orderCommon
[
'reciver_city_id'
]
=
$this
->
address
[
'city_id'
];
$orderCommon
[
'reciver_city_id'
]
=
$this
->
address
[
'city_id'
];
...
...
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