Commit 9fb67a20 by 叶明星

zc

parent 220fa21c
Showing with 18 additions and 3 deletions
...@@ -4,14 +4,14 @@ APP_KEY= ...@@ -4,14 +4,14 @@ APP_KEY=
APP_TIMEZONE=PRC APP_TIMEZONE=PRC
//系统编码,用于生成错误码 //系统编码,用于生成错误码
SYSTEM_CODE=06 SYSTEM_CODE=02
//系统名称,用于告警识别 //系统名称,用于告警识别
SYSTEM_NAME=猎传商品信息处理服务(开发环境) SYSTEM_NAME=猎传商品信息处理服务(开发环境)
//laravels监听IP和端口 //laravels监听IP和端口
LARAVELS_LISTEN_IP=0.0.0.0 LARAVELS_LISTEN_IP=0.0.0.0
LARAVELS_LISTEN_PORT=62006 LARAVELS_LISTEN_PORT=62002
//基石自营商品主库 //基石自营商品主库
......
...@@ -37,6 +37,21 @@ class SelfGoodsModel extends Model ...@@ -37,6 +37,21 @@ class SelfGoodsModel extends Model
}else $Find['stock']=0; }else $Find['stock']=0;
} }
} }
//处理货期
$delivery_type = [
1 => '现货',
2=> '期货'
];
if(!empty($Find['delivery_type']) && !empty($delivery_type[$Find['delivery_type']])){
$Find['delivery_type_name'] = $delivery_type[$Find['delivery_type']];
}else{
$Find['delivery_type'] = 2;
$Find['delivery_type_name'] = '期货';
}
//处理活动价 //处理活动价
$Find['ac_type']=0; $Find['ac_type']=0;
$Find['allow_coupon']=1; $Find['allow_coupon']=1;
...@@ -220,7 +235,7 @@ class SelfGoodsModel extends Model ...@@ -220,7 +235,7 @@ class SelfGoodsModel extends Model
$this->connection='self';//开始连接数据库 $this->connection='self';//开始连接数据库
$fieldArr=['other_attrs', 'goods_id','goods_type','supplier_id','brand_id','class_id1','class_id2','goods_name','status', $fieldArr=['other_attrs', 'goods_id','goods_type','supplier_id','brand_id','class_id1','class_id2','goods_name','status',
'encoded','encap','packing','goods_unit','goods_images','pdf','goods_brief','moq','mpq', 'encoded','encap','packing','goods_unit','goods_images','pdf','goods_brief','moq','mpq',
'ladder_price','update_time','sku_name','mpl','stock','attrs','cost','new_cost','cn_delivery_time']; 'ladder_price','update_time','sku_name','mpl','stock','attrs','cost','new_cost','cn_delivery_time','delivery_type'];
$info=$this->where('goods_id','=',$goods_id)->select($fieldArr)->first(); $info=$this->where('goods_id','=',$goods_id)->select($fieldArr)->first();
if(!$info) return false; if(!$info) return false;
$info=$info->toArray(); $info=$info->toArray();
......
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 sign in to comment