正在显示
6 个修改的文件
包含
6 行增加
和
6 行删除
| @@ -15,7 +15,7 @@ class Attr extends Base | @@ -15,7 +15,7 @@ class Attr extends Base | ||
| 15 | //设置关联表名 | 15 | //设置关联表名 |
| 16 | protected $table = 'gl_product_attr'; | 16 | protected $table = 'gl_product_attr'; |
| 17 | //连接数据库 | 17 | //连接数据库 |
| 18 | -// protected $connection = 'custom_mysql'; | 18 | + protected $connection = 'custom_mysql'; |
| 19 | 19 | ||
| 20 | public function setAttrsAttribute($value) | 20 | public function setAttrsAttribute($value) |
| 21 | { | 21 | { |
| @@ -19,7 +19,7 @@ class Category extends Base | @@ -19,7 +19,7 @@ class Category extends Base | ||
| 19 | //设置关联表名 | 19 | //设置关联表名 |
| 20 | protected $table = 'gl_product_category'; | 20 | protected $table = 'gl_product_category'; |
| 21 | //连接数据库 | 21 | //连接数据库 |
| 22 | -// protected $connection = 'custom_mysql'; | 22 | + protected $connection = 'custom_mysql'; |
| 23 | 23 | ||
| 24 | const STATUS_ACTIVE = 1; | 24 | const STATUS_ACTIVE = 1; |
| 25 | 25 |
| @@ -12,7 +12,7 @@ class CategoryRelated extends Base | @@ -12,7 +12,7 @@ class CategoryRelated extends Base | ||
| 12 | //设置关联表名 | 12 | //设置关联表名 |
| 13 | protected $table = 'gl_product_category_related'; | 13 | protected $table = 'gl_product_category_related'; |
| 14 | //连接数据库 | 14 | //连接数据库 |
| 15 | -// protected $connection = 'custom_mysql'; | 15 | + protected $connection = 'custom_mysql'; |
| 16 | 16 | ||
| 17 | const CREATED_AT = null; | 17 | const CREATED_AT = null; |
| 18 | const UPDATED_AT = null; | 18 | const UPDATED_AT = null; |
| @@ -12,6 +12,6 @@ class Describe extends Base | @@ -12,6 +12,6 @@ class Describe extends Base | ||
| 12 | //设置关联表名 | 12 | //设置关联表名 |
| 13 | protected $table = 'gl_product_describe'; | 13 | protected $table = 'gl_product_describe'; |
| 14 | //连接数据库 | 14 | //连接数据库 |
| 15 | -// protected $connection = 'custom_mysql'; | 15 | + protected $connection = 'custom_mysql'; |
| 16 | 16 | ||
| 17 | } | 17 | } |
| @@ -16,7 +16,7 @@ class Keyword extends Base | @@ -16,7 +16,7 @@ class Keyword extends Base | ||
| 16 | protected $appends = ['route']; | 16 | protected $appends = ['route']; |
| 17 | 17 | ||
| 18 | //连接数据库 | 18 | //连接数据库 |
| 19 | -// protected $connection = 'custom_mysql'; | 19 | + protected $connection = 'custom_mysql'; |
| 20 | public function getRouteAttribute(){ | 20 | public function getRouteAttribute(){ |
| 21 | return RouteMap::getRoute(RouteMap::SOURCE_PRODUCT_KEYWORD, $this->id, $this->project_id); | 21 | return RouteMap::getRoute(RouteMap::SOURCE_PRODUCT_KEYWORD, $this->id, $this->project_id); |
| 22 | } | 22 | } |
| @@ -16,7 +16,7 @@ class KeywordRelated extends Base | @@ -16,7 +16,7 @@ class KeywordRelated extends Base | ||
| 16 | const UPDATED_AT = null; | 16 | const UPDATED_AT = null; |
| 17 | 17 | ||
| 18 | //连接数据库 | 18 | //连接数据库 |
| 19 | -// protected $connection = 'custom_mysql'; | 19 | + protected $connection = 'custom_mysql'; |
| 20 | /** | 20 | /** |
| 21 | * 关联产品关键词 | 21 | * 关联产品关键词 |
| 22 | * @param $product_id | 22 | * @param $product_id |
-
请 注册 或 登录 后发表评论