|
|
@@ -298,11 +298,8 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
// throw new IllegalOperatorException("包装信息只能包含中文和英文");
|
|
|
// }
|
|
|
if (!StringUtils.isEmpty(goods.getSpec())) {
|
|
|
- try {
|
|
|
- String spec = com.uas.platform.b2c.fa.payment.utils.StringUtils.cutOutString(goods.getSpec().toString(), UploadConstant.SPEC_MAX_BYTE);
|
|
|
+ String spec = com.uas.platform.b2c.fa.payment.utils.StringUtils.cutOutStringIgnoreEncode(goods.getSpec().toString(), UploadConstant.SPEC_MAX_BYTE);
|
|
|
goods.setSpec(spec);
|
|
|
- } catch (Exception e) {
|
|
|
- }
|
|
|
}
|
|
|
if (StringUtils.isEmpty(goods.getProduceDate())) {
|
|
|
throw new IllegalOperatorException("型号" + goods.getCode()+"品牌" + goods.getBrandNameEn() +"的产品生产日期为空");
|