Commit 49fb8076 authored by jianghaiming's avatar jianghaiming

Merge branch 'jielong' of https://gitlab.yidian-inc.com/bp/goods into jielong

parents fa7847be 93de3db2
......@@ -27,6 +27,9 @@ class GoodsSpu extends MysqlBase
const BELONG_TYPE_DISANFANG = 1;//第三方商品
const BELONG_TYPE_ZIYING = 2;//自营商品
const CAN_SHOW_ES_YES = 1;
const CAN_SHOW_ES_NO = 2;
public static function getRecord($where, $colums = [])
{
if (empty($colums)) {
......
......@@ -131,6 +131,7 @@ class MarketingPindanGoodsService
"goods_sub_type" => empty($spuData["goods_sub_type"]) ? GoodsSpu::SUB_TYPE_INSTANT : $spuData["goods_sub_type"],
"belong_type" => empty($spuData["belong_type"]) ? GoodsSpu::BELONG_TYPE_DISANFANG : $spuData["belong_type"],
"goods_sale_type" => empty($spuData["setmeal"]) ? GoodsSpu::SALE_TYPE_NO_COMBINATION : GoodsSpu::SALE_TYPE_COMBINATION,
"can_show_es" => GoodsSpu::CAN_SHOW_ES_NO,
];
GoodsSpu::save($spuParams);
return $spuParams;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment