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
yangyang
9 years ago
Commit
cb136a5f3c00c9b33795897169d88514f5163a47
1 parent
70573961
修改ajax请求图片
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
library/WebPlugin/HelperSearch.php
yohobuy/www.yohobuy.com/application/modules/Product/controllers/List.php
library/WebPlugin/HelperSearch.php
View file @
cb136a5
...
...
@@ -1248,7 +1248,7 @@ class HelperSearch
$result
[
$key
][
'isVedio'
]
=
true
;
$result
[
$key
][
'src'
]
=
$vo
;
}
else{
$result[$key]['href']
=
$href[1][$key]
;
$result[$key]['href']
=
isset(
$href[1][$key]
) ?
$href[1][$key]
: ''
;
$result[$key]['src']
=
$vo
;
}
}
...
...
yohobuy/www.yohobuy.com/application/modules/Product/controllers/List.php
View file @
cb136a5
...
...
@@ -95,17 +95,16 @@ class ListController extends WebAction
*/
public
function
getProductPicAction
()
{
$res
=
array
(
'code'
=>
400
);
$res
=
array
();
$callback
=
$this
->
post
(
'callback'
);
if
(
!
$this
->
isAjax
())
{
$this
->
echoJson
(
$res
);
$this
->
helpJsonCallbackResult
(
$callback
,
400
,
'Not a Ajax request'
);
return
;
}
$productSkn
=
$this
->
post
(
'skn'
);
$uid
=
$this
->
getUid
();
if
(
!
$productSkn
)
{
$this
->
echoJson
(
$res
);
$this
->
helpJsonCallbackResult
(
$callback
,
412
,
'商品skn为空'
);
return
;
}
$rowNum
=
$this
->
post
(
'rowNum'
);
...
...
@@ -131,7 +130,7 @@ class ListController extends WebAction
}
$options
[
'isFavorite'
]
=
$isFavorite
;
$res
=
SearchModel
::
getProductPic
(
$productSkn
,
$options
);
$this
->
echoJson
(
$res
);
$this
->
helpJsonCallbackResult
(
$callback
,
200
,
'success'
,
$res
);
}
/**
...
...
Please
register
or
login
to post a comment