...
|
...
|
@@ -167,8 +167,8 @@ class Goods extends Model |
|
|
{
|
|
|
$where['g.status'] = 1;
|
|
|
|
|
|
if ($lang == 'ch') $field = 'g.id goods_id,g.ch_name name,g.image,g.status,g.goods_price,g.images,g.goods_no,g.ch_specification specification,g.ch_save_where save_where,g.ch_period period,g.ch_content content,g.stock_num,g.sales_actual,g.group_price,g.vip_price,g.is_vip_price,g.is_group,c.ch_name country_name,g.vip1_price,g.staff_price,g.one_agency_price,g.two_agency_price,g.three_agency_price';
|
|
|
else $field = 'g.id goods_id,g.en_name name,g.image,g.status,g.goods_price,g.images,g.goods_no,g.en_specification specification,g.en_save_where save_where,g.en_period period,g.en_content content,g.stock_num,g.sales_actual,g.group_price,g.vip_price,g.is_vip_price,g.is_group,c.en_name country_name,g.vip1_price,g.staff_price,g.one_agency_price,g.two_agency_price,g.three_agency_price';
|
|
|
if ($lang == 'ch') $field = 'g.id goods_id,g.ch_name name,g.image,g.status,g.goods_price,g.images,g.goods_no,g.ch_specification specification,g.ch_save_where save_where,g.ch_period period,g.ch_content content,g.stock_num,g.sales_actual,g.group_price,g.vip_price,g.is_vip_price,g.is_group,c.ch_name country_name,g.vip1_price,g.staff_price,g.one_agency_price,g.two_agency_price,g.three_agency_price,video,video_image';
|
|
|
else $field = 'g.id goods_id,g.en_name name,g.image,g.status,g.goods_price,g.images,g.goods_no,g.en_specification specification,g.en_save_where save_where,g.en_period period,g.en_content content,g.stock_num,g.sales_actual,g.group_price,g.vip_price,g.is_vip_price,g.is_group,c.en_name country_name,g.vip1_price,g.staff_price,g.one_agency_price,g.two_agency_price,g.three_agency_price,video,video_image';
|
|
|
|
|
|
$data = $this->alias('g')
|
|
|
->join('fa_country c', 'g.country_id=c.id')
|
...
|
...
|
|