|
@@ -129,7 +129,7 @@ class Goodup
|
|
|
$db = new PlatformYouzan();
|
|
|
|
|
|
$rs = $db
|
|
|
- ->field('a.id,a.spuCode,a.skuCode,a.exam_status,gb.good_name,gb.weight,gb.good_img,gb.cat_id')
|
|
|
+ ->field('a.id,a.spuCode,a.skuCode,a.exam_status,gb.good_name,gb.weight,gb.good_img,gb.cat_id,gb.good_remark')
|
|
|
->alias('a')
|
|
|
->where(['a.id' => $platform_youzan_id, 'a.is_del' => $db::$del_normal])
|
|
|
->leftJoin('good_basic gb', 'gb.spuCode=a.spuCode')
|
|
@@ -176,7 +176,7 @@ class Goodup
|
|
|
'item_type' => 0,//0实物商品
|
|
|
'title' => $rs->good_name,//商品标题
|
|
|
'is_support_barter' => $data['is_support_barter'],//是否支持换货。1:支持;0:不支持
|
|
|
- 'desc' => '我是商品描述',//商品描述
|
|
|
+ 'desc' => $rs->good_remark,//商品描述
|
|
|
'item_weight' => $rs->weight,
|
|
|
'category_id' => $rs->cat_id,
|
|
|
'auto_listing_time' => '0',//0立即售出,传值表示定时(要大于当前时间戳)
|
|
@@ -189,7 +189,7 @@ class Goodup
|
|
|
'uid' => isset($userinfo['data']['id']) ? $userinfo['data']['id'] : 0,
|
|
|
'nickname' => isset($userinfo['data']['nickname']) ? $userinfo['data']['nickname'] : '',
|
|
|
'good_img' => $rs->good_img,//图片集合
|
|
|
- 'post_fee' => 0,//运费,单位分,整数
|
|
|
+ 'post_fee' => Db::name('good_nake')->where(['spuCode' => $rs->spuCode, 'is_del' => 0])->where('min_num', '<=', $data['start_sale_num'])->value('delivery_fee', 0),//运费,单位分,整数
|
|
|
'sell_point' => '',//商品卖点信息
|
|
|
'yz_cat_id' => $data['yz_cat_id'],//有赞类目id
|
|
|
'start_sale_num' => $data['start_sale_num'],//商品起售数,默认为1
|