Authored by chenchao

optimized tips

... ... @@ -38,6 +38,7 @@ import com.yohoufo.order.utils.AddressHelper;
import com.yohoufo.order.utils.LoggerUtils;
import lombok.Builder;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
... ... @@ -182,8 +183,12 @@ public class AppraiseOrderService extends AbsGoodsServiceOrderService implements
throw new UfoServiceException(400, "商品ID错误");
}
final OrderAttributes orderAttributes = getOrderAttributes();
String addressIdstr=req.getAddressId();
if (StringUtils.isBlank(addressIdstr)){
throw new UfoServiceException(400, "请选择地址后提交");
}
int addressId = AddressUtil.getDecryptStr(req.getAddressId());
int addressId = AddressUtil.getDecryptStr(addressIdstr);
if (addressId < 0){
logger.warn("submit appraise order addressId invalidate, uid {}, productId {}, addressId {}",
uid, productId, req.getAddressId());
... ...