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
Rock Zhang
2016-03-08 11:18:59 +0800
Commit
27db5a1ab156f41008ad2c034bea2c1147c498b7
1 parent
8f0e2a4f
当限购商品码不存在时,限购商品分享详情页跳转到404
Code Review By Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Detail.php
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
27db5a1
...
...
@@ -759,12 +759,11 @@ class DetailModel
$result
=
array
();
do
{
if
(
empty
(
$productCode
))
{
$productData
=
DetailData
::
limitProductData
(
$uid
,
$productCode
);
if
(
empty
(
$productData
)
||
empty
(
$productData
[
'data'
]))
{
break
;
}
$productData
=
DetailData
::
limitProductData
(
$uid
,
$productCode
);
$product
=
$productData
[
'data'
];
$result
[
'price'
]
=
$product
[
'price'
];
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Detail.php
View file @
27db5a1
...
...
@@ -304,6 +304,9 @@ class DetailController extends AbstractAction
$uid
=
$this
->
getUid
();
$data
=
DetailModel
::
getLimitProductData
(
$uid
,
$productCode
);
if
(
empty
(
$data
))
{
$this
->
error
();
}
// APP下载链接地址
$data
[
'appSrc'
]
=
'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho'
;
...
...
Please
register
or
login
to post a comment