|
@@ -283,7 +283,7 @@ public class OkkiShowlistServiceImpl extends ServiceImpl<OkkiShowlistMapper, Okk
|
|
|
// 将内容图片和其他图片地址通过接口上传到小满
|
|
|
if (okkiOverviews.size()>0) {
|
|
|
for (OkkiOverview okkiOverview : okkiOverviews) {
|
|
|
- if (!"".equals(okkiOverview.getPic())) {
|
|
|
+ if (!"".equals(okkiOverview.getPic()) && okkiOverview.getPic() != null) {
|
|
|
String imgUrl = uploadService.uploadImage(imageBaseUrl + okkiOverview.getPic(), String.valueOf(okkiShowlist.getSiteId()));
|
|
|
System.out.println(imgUrl);
|
|
|
okkiOverview.setPic(imgUrl);
|
|
@@ -324,8 +324,10 @@ public class OkkiShowlistServiceImpl extends ServiceImpl<OkkiShowlistMapper, Okk
|
|
|
String[] split = pidList.split(",");
|
|
|
productListParam.setPid_list(split);
|
|
|
}
|
|
|
- if (okkiProductLists.get(0) != null && okkiProductLists.get(0).getSid() > 0) {
|
|
|
+ if (okkiProductLists.get(0).getSid() != null) {
|
|
|
productListParam.setSid(okkiProductLists.get(0).getSid());
|
|
|
+ }else {
|
|
|
+ productListParam.setSid(0);
|
|
|
}
|
|
|
pushShowlistParam.setProduct_list(productListParam);
|
|
|
// highlight
|
|
@@ -380,8 +382,10 @@ public class OkkiShowlistServiceImpl extends ServiceImpl<OkkiShowlistMapper, Okk
|
|
|
recommendedProductParam.setProduct_list_type(okkiRecommendedProducts.get(0).getProductListType());
|
|
|
recommendedProductParam.setTitle(okkiRecommendedProducts.get(0).getTitle());
|
|
|
recommendedProductParam.setSubtitles(okkiRecommendedProducts.get(0).getSubtitles());
|
|
|
- if (okkiRecommendedProducts.get(0) != null && okkiRecommendedProducts.get(0).getSid() > 0) {
|
|
|
+ if (okkiRecommendedProducts.get(0).getSid() != null) {
|
|
|
recommendedProductParam.setSid(okkiRecommendedProducts.get(0).getSid());
|
|
|
+ }else {
|
|
|
+ recommendedProductParam.setSid(0);
|
|
|
}
|
|
|
// 将字符串转数组
|
|
|
String pidList1 = okkiRecommendedProducts.get(0).getPidList();
|