|
|
@@ -108,9 +108,6 @@ public class SeekPurchaseBomServiceImpl implements SeekPurchaseBomService {
|
|
|
@Autowired
|
|
|
private SearcherService searcherService;
|
|
|
|
|
|
- @Value("#{sys.inquiryServiceUrl ?: 'http://218.17.158.219:24000'}")
|
|
|
- private String inquiryServiceUrl;
|
|
|
-
|
|
|
private int mallColNum = 8;
|
|
|
private int mallRowNum = 500;
|
|
|
private int startRow = 3;
|
|
|
@@ -419,7 +416,7 @@ public class SeekPurchaseBomServiceImpl implements SeekPurchaseBomService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public ResultMap confirmBom(Long bomId, User user) {
|
|
|
+ public ResultMap confirmBom(Long bomId, User user, String url) {
|
|
|
SeekPurchaseBom seekPurchaseBom = seekPurchaseBomDao.findOne(bomId);
|
|
|
if (seekPurchaseBom == null) {
|
|
|
return new ResultMap(CodeType.NOT_PERMIT, "请勿重复发布");
|
|
|
@@ -490,7 +487,7 @@ public class SeekPurchaseBomServiceImpl implements SeekPurchaseBomService {
|
|
|
inquiry.setInquiryItems(inquiryItems);
|
|
|
String res = "";
|
|
|
try {
|
|
|
- res = HttpUtil.doPost(inquiryServiceUrl + "/inquiry/buyer/save", FlexJsonUtils.toJsonDeep(inquiry));
|
|
|
+ res = HttpUtil.doPost(url + "/inquiry/buyer/save", FlexJsonUtils.toJsonDeep(inquiry));
|
|
|
} catch (Exception e) {
|
|
|
throw new IllegalOperatorException("发布失败");
|
|
|
}
|