|
@@ -61,7 +61,9 @@ class ProductController extends BaseController |
|
@@ -61,7 +61,9 @@ class ProductController extends BaseController |
|
61
|
$template_id = $this->getTemplateId(BTemplate::SOURCE_PRODUCT,BTemplate::IS_DETAIL);//获取模版id
|
61
|
$template_id = $this->getTemplateId(BTemplate::SOURCE_PRODUCT,BTemplate::IS_DETAIL);//获取模版id
|
|
62
|
$userModel = new User();
|
62
|
$userModel = new User();
|
|
63
|
foreach ($lists['list'] as $k=>$v){
|
63
|
foreach ($lists['list'] as $k=>$v){
|
|
64
|
- $v['url'] = $this->user['domain'] . getRouteMap(RouteMap::SOURCE_PRODUCT,$v['id']);
|
64
|
+ $route = getRouteMap(RouteMap::SOURCE_PRODUCT,$v['id'], 0, true);
|
|
|
|
65
|
+ $v['url'] = $this->user['domain'] . $route['route'];
|
|
|
|
66
|
+ $v['pv'] = $route['pv'];
|
|
65
|
$v['category_id_text'] = $this->categoryName($v['id'],$cate_data);
|
67
|
$v['category_id_text'] = $this->categoryName($v['id'],$cate_data);
|
|
66
|
$v['keyword_id_text'] = $this->keywordName($v['keyword_id'],$key_data);
|
68
|
$v['keyword_id_text'] = $this->keywordName($v['keyword_id'],$key_data);
|
|
67
|
$v['created_uid_text'] = $userModel->getName($v['created_uid']);
|
69
|
$v['created_uid_text'] = $userModel->getName($v['created_uid']);
|
|
@@ -97,7 +99,9 @@ class ProductController extends BaseController |
|
@@ -97,7 +99,9 @@ class ProductController extends BaseController |
|
97
|
$template_id = $this->getTemplateId(BTemplate::SOURCE_PRODUCT,BTemplate::IS_DETAIL);//获取模版id
|
99
|
$template_id = $this->getTemplateId(BTemplate::SOURCE_PRODUCT,BTemplate::IS_DETAIL);//获取模版id
|
|
98
|
$userModel = new User();
|
100
|
$userModel = new User();
|
|
99
|
foreach ($lists['list'] as $k=>$v){
|
101
|
foreach ($lists['list'] as $k=>$v){
|
|
100
|
- $v['url'] = $this->user['domain'] . getRouteMap(RouteMap::SOURCE_PRODUCT,$v['id']);
|
102
|
+ $route = getRouteMap(RouteMap::SOURCE_PRODUCT,$v['id'], 0, true);
|
|
|
|
103
|
+ $v['url'] = $this->user['domain'] . $route['route'];
|
|
|
|
104
|
+ $v['pv'] = $route['pv'];
|
|
101
|
$v['category_id_text'] = $this->categoryName($v['id'],$cate_data);
|
105
|
$v['category_id_text'] = $this->categoryName($v['id'],$cate_data);
|
|
102
|
$v['keyword_id_text'] = $this->keywordName($v['keyword_id'],$key_data);
|
106
|
$v['keyword_id_text'] = $this->keywordName($v['keyword_id'],$key_data);
|
|
103
|
$v['created_uid_text'] = $userModel->getName($v['created_uid']);
|
107
|
$v['created_uid_text'] = $userModel->getName($v['created_uid']);
|