|
@@ -297,44 +297,11 @@ class DetailController extends AbstractAction |
|
@@ -297,44 +297,11 @@ class DetailController extends AbstractAction |
297
|
*/
|
297
|
*/
|
298
|
public function limitAction()
|
298
|
public function limitAction()
|
299
|
{
|
299
|
{
|
300
|
- /*$data = array(
|
|
|
301
|
- 'profile' => 'http://cdn.yoho.cn/myohobuy/assets/img/me/index/user-avatar.png?1455719653',
|
|
|
302
|
- 'banner' => 'http://img11.static.yhbimg.com/yhb-img01/2016/02/25/02/016ed5a17fb9d9bc7542174c22dccb4acf.jpg?imageView/2/w/640/h/240',
|
|
|
303
|
- 'bannerSrc' => './',
|
|
|
304
|
- 'name' => '潮流尖端商品啊啊啊啊',
|
|
|
305
|
- 'price' => '1999',
|
|
|
306
|
- 'releaseDate' => '2016年12月发售',
|
|
|
307
|
- 'appSrc' => './',
|
|
|
308
|
- 'mainImg' => 'http://img11.static.yhbimg.com/yhb-img01/2016/02/25/02/016ed5a17fb9d9bc7542174c22dccb4acf.jpg?imageView/2/w/640/h/240',
|
|
|
309
|
- 'goodDescription' => '独独家发售快乐的肌肤立刻就是大老骥伏枥开始的肌肤独家发售快乐的肌肤立刻就是大老骥伏枥开始的肌肤独家发售快乐的肌肤立刻就是大老骥伏枥开始的肌肤独家发售快乐的肌肤立刻就是大老骥伏枥开始的肌肤独家发售快乐的肌肤立刻就是大老骥伏枥开始的肌肤独家发售快乐的肌肤立刻就是大老骥伏枥开始的肌肤独家发售快乐的肌肤立刻就是大老骥伏枥开始的肌肤独家发售快乐的肌肤立刻就是大老骥伏枥开始的肌肤独家发售快乐的肌肤立刻就是大老骥伏枥开始的肌肤独家发售快乐的肌肤立刻就是大老骥伏枥开始的肌肤独家发售快乐的肌肤立刻就是大老骥伏枥开始的肌肤独家发售快乐的肌肤立刻就是大老骥伏枥开始的肌肤家发售快乐的肌肤立刻就是大老骥伏枥开始的肌肤',
|
|
|
310
|
- 'imgList' => array(
|
|
|
311
|
- array(
|
|
|
312
|
- 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/02/25/02/016ed5a17fb9d9bc7542174c22dccb4acf.jpg?imageView/2/w/640/h/240'
|
|
|
313
|
- ),
|
|
|
314
|
- array(
|
|
|
315
|
- 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/02/25/02/016ed5a17fb9d9bc7542174c22dccb4acf.jpg?imageView/2/w/640/h/240'
|
|
|
316
|
- ),
|
|
|
317
|
- array(
|
|
|
318
|
- 'img' => 'http://img11.static.yhbimg.com/yhb-img01/2016/02/25/02/016ed5a17fb9d9bc7542174c22dccb4acf.jpg?imageView/2/w/640/h/240'
|
|
|
319
|
- )
|
|
|
320
|
- ),
|
|
|
321
|
- 'vedio' => array(
|
|
|
322
|
- 'img' => './',
|
|
|
323
|
- 'list' => array(
|
|
|
324
|
- array(
|
|
|
325
|
- 'src' => 'http://video.yohoboys.com/xuanchuan/wuyifan_mobile.mp4'
|
|
|
326
|
- ),
|
|
|
327
|
- array(
|
|
|
328
|
- 'src' => 'http://video.yohoboys.com/xuanchuan/wuyifan_mobile.webm'
|
|
|
329
|
- ),
|
|
|
330
|
- array(
|
|
|
331
|
- 'src' => 'http://video.yohoboys.com/xuanchuan/wuyifan_mobile.ogv'
|
|
|
332
|
- )
|
|
|
333
|
- )
|
|
|
334
|
- )
|
|
|
335
|
- );*/
|
|
|
336
|
-
|
|
|
337
|
$productCode = $this->get('code', '');
|
300
|
$productCode = $this->get('code', '');
|
|
|
301
|
+ if (empty($productCode)) {
|
|
|
302
|
+ $this->error();
|
|
|
303
|
+ }
|
|
|
304
|
+
|
338
|
$uid = $this->getUid();
|
305
|
$uid = $this->getUid();
|
339
|
$data = DetailModel::getLimitProductData($uid, $productCode);
|
306
|
$data = DetailModel::getLimitProductData($uid, $productCode);
|
340
|
|
307
|
|