Authored by LUOXC

fix bug

... ... @@ -191,7 +191,7 @@ public class CouponServiceImpl implements ICouponService,IBusinessExportService{
// 检查限制的商品类型
if (StringUtils.isNoneBlank(req.getSkupForbidType())){
String[] limitTypes = req.getSkupForbidType().split(",");
List<String> limitTypes = Splitter.on(",").omitEmptyStrings().trimResults().splitToList(req.getSkupForbidType());
for (String limitType : limitTypes){
if (!limitType.matches("\\d+")){
throw new ServiceException(400, "错误:不合法的限制类型");
... ...