...
|
...
|
@@ -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);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|