fix: bug修复
This commit is contained in:
@@ -107,6 +107,7 @@ class Product extends BaseController {
|
||||
$value['seo_title'] = $category['seo_title']? : config('website_seo_title');
|
||||
$value['seo_keyword'] = $category['seo_keyword']? : config('website_seo_keyword');
|
||||
$value['seo_description'] = $category['seo_description']? : config('website_seo_description');
|
||||
|
||||
$this->assign($value);
|
||||
return $this->fetch($template);
|
||||
}
|
||||
@@ -302,7 +303,7 @@ class Product extends BaseController {
|
||||
$this->assign('count',$count);
|
||||
$this->assign($value);
|
||||
$this->viewcount($id);
|
||||
|
||||
|
||||
$purchase_links = Db::name('product_purchase_links')->alias('links')
|
||||
->field(['links.id', 'platforms.platform', 'links.link'])
|
||||
->join('product_purchase_link_platforms platforms', 'platforms.id=links.platform_id')
|
||||
@@ -310,6 +311,7 @@ class Product extends BaseController {
|
||||
->where('links.country_code', '=', $this->country_code)
|
||||
->select();
|
||||
$this->assign('purchase_links', $purchase_links);
|
||||
|
||||
//dump($value['product_relateds']);die;
|
||||
return $this->fetch($template);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user