|
@@ -2459,12 +2459,14 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
KuaiShouVideoGet videoGet = new KuaiShouVideoGet();
|
|
|
videoGet.setAccountId(advertiserId);
|
|
|
videoGet.setId(advertiserId + signature);
|
|
|
- videoGet.setWidth(dataJson.getInteger("width"));
|
|
|
- videoGet.setHeight(dataJson.getInteger("height"));
|
|
|
+ Integer width = Integer.valueOf(dataJson.getString("width"));
|
|
|
+ videoGet.setWidth(width);
|
|
|
+ Integer height = Integer.valueOf(dataJson.getString("height"));
|
|
|
+ videoGet.setHeight(height);
|
|
|
videoGet.setUrl(dataJson.getString("url"));
|
|
|
videoGet.setPhotoId(dataJson.getString("photo_id"));
|
|
|
videoGet.setCoverUrl(dataJson.getString("cover_url"));
|
|
|
- Integer type = MaterialEnum.getTypeBySize(dataJson.getInteger("width"), dataJson.getInteger("height"));
|
|
|
+ Integer type = MaterialEnum.getTypeBySize(width, height);
|
|
|
if (!Check.isNull(type)) {
|
|
|
videoGet.setMaterialType(type);
|
|
|
}
|
|
@@ -2518,11 +2520,15 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
imageGet.setId(advertiserId + signature);
|
|
|
imageGet.setAccountId(advertiserId);
|
|
|
imageGet.setUrl(dataJson.getString("url"));
|
|
|
- imageGet.setWidth(dataJson.getInteger("width"));
|
|
|
- imageGet.setHeight(dataJson.getInteger("height"));
|
|
|
+
|
|
|
+ Integer width = Integer.valueOf(dataJson.getString("width"));
|
|
|
+ Integer height = Integer.valueOf(dataJson.getString("height"));
|
|
|
+
|
|
|
+ imageGet.setWidth(width);
|
|
|
+ imageGet.setHeight(height);
|
|
|
imageGet.setSize(dataJson.getLong("size"));
|
|
|
imageGet.setFormat(dataJson.getString("format"));
|
|
|
- Integer type = MaterialEnum.getTypeBySize(dataJson.getInteger("width"), dataJson.getInteger("height"));
|
|
|
+ Integer type = MaterialEnum.getTypeBySize(width, height);
|
|
|
if (!Check.isNull(type)) {
|
|
|
imageGet.setMaterialType(type);
|
|
|
}
|