|
@@ -965,6 +965,9 @@ public class CmsAccountController {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
account.setType(2);
|
|
account.setType(2);
|
|
|
|
|
+ if (account.getGoodsId() == 26 && account.getPreSkuId() == null) {
|
|
|
|
|
+ throw BusinessRuntimeException.getInstance("请选择对应规格id");
|
|
|
|
|
+ }
|
|
|
accountService.save(account);
|
|
accountService.save(account);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
}
|