Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
8 years ago
Commit
35faa820d8fa94aa685e58eab6666beff0bb6af2
1 parent
fc9c9717
'order-mai-dian'
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletions
static/js/cart/order-ensure.js
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
static/js/cart/order-ensure.js
View file @
35faa82
...
...
@@ -290,6 +290,18 @@ function submitOrder() {
tip
.
show
(
'系统繁忙,请稍后再试!'
);
return
;
}
/* tar add 161116 */
if
(
res
.
unionCookie
)
{
if
(
window
.
_yas
&&
window
.
_yas
.
sendCustomInfo
)
{
window
.
_yas
.
sendCustomInfo
({
param
:
JSON
.
stringify
({
unionCookie
:
res
.
unionCookie
})
},
true
);
}
}
if
(
res
.
code
===
200
)
{
if
(
payType
===
2
)
{
...
...
@@ -299,7 +311,7 @@ function submitOrder() {
url
=
'/home/orders/pay?order_code='
+
res
.
data
.
order_code
;
}
window
.
setCookie
(
'order-info'
,
''
);
window
.
location
.
href
=
url
;
//
window.location.href = url;
}
else
if
(
res
.
message
)
{
tip
.
show
(
res
.
message
);
}
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
35faa82
...
...
@@ -639,6 +639,7 @@ class IndexController extends AbstractAction
/* 判断是否是友盟过来的用户 */
$userAgent
=
null
;
$unionKey
=
''
;
$unionInfo
=
array
();
if
(
!
empty
(
$_COOKIE
[
'mkt_code'
])
||
!
empty
(
$_COOKIE
[
'_QYH_UNION'
]))
{
/* tar modified 161108 添加新的联盟数据处理逻辑,兼容原有联盟数据处理,
...
...
@@ -663,6 +664,10 @@ class IndexController extends AbstractAction
}
$result
=
CartModel
::
orderSub
(
$uid
,
$addressId
,
$cartType
,
$deliveryTime
,
$deliveryWay
,
$invoices
,
$paymentId
,
$paymentType
,
$remark
,
$couponCode
,
$yohoCoin
,
$skuList
,
$unionKey
,
$userAgent
);
if
(
$unionInfo
&&
!
empty
(
$unionInfo
[
'unionCookie'
]))
{
$result
[
'unionCookie'
]
=
$unionInfo
[
'unionCookie'
];
}
// 记录下单异常的数据
if
(
empty
(
$result
))
{
$message
=
'uid:'
.
$uid
.
',addressId:'
.
$addressId
.
',cartType:'
.
$cartType
.
',deliveryTime:'
.
$deliveryTime
...
...
Please
register
or
login
to post a comment