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
d2870ba42783f9e2abb9396f140d3c5534019339
1 parent
3900cdc2
do add call order error logs
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
d2870ba
...
...
@@ -430,6 +430,7 @@ class IndexController extends AbstractAction
.
',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
);
...
...
@@ -437,7 +438,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'
]);
...
...
@@ -445,17 +445,8 @@ class IndexController extends AbstractAction
// do nothing
}
}
}
if
(
empty
(
$result
))
{
echo
' '
;
}
else
{
// 提交成功清除Cookie
$this
->
setCookie
(
'order-info'
,
null
);
$this
->
echoJson
(
$result
);
echo
' '
;
}
}
...
...
Please
register
or
login
to post a comment