作者 lyh

gx

... ... @@ -15,7 +15,7 @@ class Attr extends Base
//设置关联表名
protected $table = 'gl_product_attr';
//连接数据库
// protected $connection = 'custom_mysql';
protected $connection = 'custom_mysql';
public function setAttrsAttribute($value)
{
... ...
... ... @@ -19,7 +19,7 @@ class Category extends Base
//设置关联表名
protected $table = 'gl_product_category';
//连接数据库
// protected $connection = 'custom_mysql';
protected $connection = 'custom_mysql';
const STATUS_ACTIVE = 1;
... ...
... ... @@ -12,7 +12,7 @@ class CategoryRelated extends Base
//设置关联表名
protected $table = 'gl_product_category_related';
//连接数据库
// protected $connection = 'custom_mysql';
protected $connection = 'custom_mysql';
const CREATED_AT = null;
const UPDATED_AT = null;
... ...
... ... @@ -12,6 +12,6 @@ class Describe extends Base
//设置关联表名
protected $table = 'gl_product_describe';
//连接数据库
// protected $connection = 'custom_mysql';
protected $connection = 'custom_mysql';
}
... ...
... ... @@ -16,7 +16,7 @@ class Keyword extends Base
protected $appends = ['route'];
//连接数据库
// protected $connection = 'custom_mysql';
protected $connection = 'custom_mysql';
public function getRouteAttribute(){
return RouteMap::getRoute(RouteMap::SOURCE_PRODUCT_KEYWORD, $this->id, $this->project_id);
}
... ...
... ... @@ -16,7 +16,7 @@ class KeywordRelated extends Base
const UPDATED_AT = null;
//连接数据库
// protected $connection = 'custom_mysql';
protected $connection = 'custom_mysql';
/**
* 关联产品关键词
* @param $product_id
... ...