| @@ -146,8 +146,7 @@ public class TtCouponGoodsController extends DouyinBaseController { | |||||
| } | } | ||||
| try { | try { | ||||
| //boolean isSaas = this.isGoodLifeSaas(); | |||||
| boolean isSaas = true; | |||||
| boolean isSaas = this.isGoodLifeSaas(); | |||||
| return ttCouponGoodsService.productSave(coupon,isSaas); | return ttCouponGoodsService.productSave(coupon,isSaas); | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| logger.error("product save error.",e); | logger.error("product save error.",e); | ||||
| @@ -25,6 +25,12 @@ public class Product implements Serializable { | |||||
| @SerializedName(value = "account_id") | @SerializedName(value = "account_id") | ||||
| private String accountId; | private String accountId; | ||||
| /** | |||||
| * 抖音来客ID(老路径传的参数) | |||||
| */ | |||||
| @SerializedName(value = "owner_account_id") | |||||
| private String ownerAccountId; | |||||
| /** | /** | ||||
| * 草稿状态 10-审核中 12-审核失败 1-审核通过 | * 草稿状态 10-审核中 12-审核失败 1-审核通过 | ||||
| */ | */ | ||||
| @@ -398,6 +398,8 @@ public class TtCouponGoodsServiceImpl implements TtCouponGoodsService { | |||||
| //都需要accountId | //都需要accountId | ||||
| if (isSaas) { | if (isSaas) { | ||||
| product.setAccountId(getDouyinLaikeId(coupon)); | product.setAccountId(getDouyinLaikeId(coupon)); | ||||
| }else { | |||||
| product.setOwnerAccountId(getDouyinLaikeId(coupon)); | |||||
| } | } | ||||
| String productId = null; | String productId = null; | ||||