Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
3900cdc233de9f16f33ff4a5e4adab2bf40b3208
1 parent
75a95f2a
do add call order error logs
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
7 deletions
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
3900cdc
...
...
@@ -422,6 +422,30 @@ class IndexController extends AbstractAction
$couponCode
=
$this
->
post
(
'couponCode'
,
null
);
$yohoCoin
=
$this
->
post
(
'yohoCoin'
,
1
);
$result
=
CartModel
::
orderSub
(
$uid
,
$addressId
,
$cartType
,
$deliveryTime
,
$deliveryWay
,
$invoiceTitle
,
$invoiceId
,
$paymentId
,
$paymentType
,
$remark
,
$couponCode
,
$yohoCoin
);
// 记录下单异常的数据
if
(
empty
(
$result
))
{
$message
=
'uid:'
.
$uid
.
',addressId:'
.
$addressId
.
',cartType:'
.
$cartType
.
',deliveryTime:'
.
$deliveryTime
.
',deliveryWay:'
.
$deliveryWay
.
'invoiceTitle:'
.
$invoiceTitle
.
',invoiceId:'
.
$invoiceId
.
',yohoCoin:'
.
$yohoCoin
.
',paymentId:'
.
$paymentId
.
',paymentType:'
.
$paymentType
.
',remark:'
.
$remark
.
',couponCode:'
.
$couponCode
.
"
\n
"
;
error_log
(
$message
,
3
,
'/Data/logs/php/h5_error/order.'
.
date
(
'Ym'
)
.
'.log'
);
}
else
{
// 提交成功清除Cookie
$this
->
setCookie
(
'order-info'
,
null
);
$this
->
echoJson
(
$result
);
}
if
(
$uid
&&
!
empty
(
$result
[
'data'
]))
{
try
{
UnionTrans
::
set
(
$uid
,
$result
[
'data'
][
'order_code'
],
$result
[
'data'
][
'order_amount'
]);
}
catch
(
Exception
$e
)
{
// do nothing
}
}
}
if
(
empty
(
$result
))
{
...
...
@@ -432,13 +456,6 @@ class IndexController extends AbstractAction
$this
->
echoJson
(
$result
);
if
(
$uid
&&
!
empty
(
$result
[
'data'
]))
{
try
{
UnionTrans
::
set
(
$uid
,
$result
[
'data'
][
'order_code'
],
$result
[
'data'
][
'order_amount'
]);
}
catch
(
Exception
$e
)
{
// do nothing
}
}
}
}
...
...
Please
register
or
login
to post a comment