|
@@ -197,6 +197,8 @@ class store_goods_addControl extends BaseSellerControl
|
|
|
$common_array['goods_storage_alarm']= intval($_POST['g_alarm']);
|
|
|
$common_array['goods_attr'] = serialize($_POST['attr']);
|
|
|
$common_array['goods_body'] = $_POST['g_body'];
|
|
|
+ $common_array['car_id'] = intval($_POST['car_id']); //车型id
|
|
|
+ $common_array['insurance_fee'] = floatval($_POST['insurance_fee']);//保险费用
|
|
|
// 序列化保存手机端商品描述数据
|
|
|
if ($_POST['m_body'] != '') {
|
|
|
$_POST['m_body'] = str_replace('"', '"', $_POST['m_body']);
|
|
@@ -221,7 +223,7 @@ class store_goods_addControl extends BaseSellerControl
|
|
|
$common_array['areaid_1'] = intval($_POST['province_id']);
|
|
|
$common_array['areaid_2'] = intval($_POST['city_id']);
|
|
|
$common_array['transport_id'] = ($_POST['freight'] == '0') ? '0' : intval($_POST['transport_id']); // 运费模板
|
|
|
- $common_array['transport_title'] = $_POST['transport_title'];
|
|
|
+ $common_array['transport_title'] = $_POST['transport_title'] ? : '';
|
|
|
$common_array['goods_freight'] = floatval($_POST['g_freight']);
|
|
|
//查询店铺商品分类
|
|
|
$goods_stcids_arr = array();
|
|
@@ -294,6 +296,7 @@ class store_goods_addControl extends BaseSellerControl
|
|
|
$goods['month_pay'] = floatval($value['month_pay']); //月供
|
|
|
$goods['final_pay'] = floatval($value['final_pay']); //尾款
|
|
|
$goods['storage_exp_date'] = strtotime($value['expdate']); //库存有效期
|
|
|
+ $goods['final_pay_solution']= serialize($value['final_pay_solution']); //尾款支付方案序列化
|
|
|
|
|
|
$specs = array_values($value['sp_value']);
|
|
|
$split_num = 0;
|
|
@@ -377,6 +380,8 @@ class store_goods_addControl extends BaseSellerControl
|
|
|
$goods['is_appoint'] = $common_array['is_appoint'];
|
|
|
$goods['is_presell'] = $common_array['is_presell'];
|
|
|
$goods['is_own_shop'] = $common_array['is_own_shop'];
|
|
|
+ $goods['storage_exp_date'] = strtotime($_POST['expdate']); //库存有效期
|
|
|
+ $goods['final_pay_solution']= serialize(null); //序列化空值
|
|
|
$goods_id = $model_goods->addGoods($goods);
|
|
|
$model_type->addGoodsType($goods_id, $common_id, array('cate_id' => $_POST['cate_id'], 'type_id' => $_POST['type_id'], 'attr' => $_POST['attr']));
|
|
|
|