Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
Rock Zhang
2016-03-09 16:16:02 +0800
Commit
70eb736438e9275ba706b04d895ad2756f4fbb10
1 parent
9153961c
优化限购商品购买判定接口的返回
Code Review By Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 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 @
70eb736
...
...
@@ -306,13 +306,10 @@ class IndexController extends AbstractAction
if
(
isset
(
$order
[
'cartUrl'
]))
{
// 普通或者预售商品为空时
$this
->
go
(
$order
[
'cartUrl'
]);
}
if
(
isset
(
$order
[
'error'
]))
{
// 限购商品支付接口返回为空或错误时
if
(
$this
->
isAjax
())
{
$this
->
echoJson
(
$order
);
return
;
}
else
{
$this
->
error
();
}
if
(
$this
->
isAjax
())
{
// 限购商品支付接口返回为空或错误时(异步请求)
$this
->
echoJson
(
$order
);
return
;
}
$data
=
array
(
...
...
Please
register
or
login
to post a comment