|
@@ -1905,8 +1905,8 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
KuaiShouVideoGet videoGet = new KuaiShouVideoGet();
|
|
KuaiShouVideoGet videoGet = new KuaiShouVideoGet();
|
|
videoGet.setId(detailJson.getString("photo_id"));
|
|
videoGet.setId(detailJson.getString("photo_id"));
|
|
videoGet.setAccountId(advertiserId);
|
|
videoGet.setAccountId(advertiserId);
|
|
- videoGet.setWidth(detailJson.getInteger("width"));
|
|
|
|
- videoGet.setHeight(detailJson.getInteger("height"));
|
|
|
|
|
|
+ videoGet.setWidth(detailJson.getLong("width"));
|
|
|
|
+ videoGet.setHeight(detailJson.getLong("height"));
|
|
videoGet.setUrl(detailJson.getString("url"));
|
|
videoGet.setUrl(detailJson.getString("url"));
|
|
videoGet.setCoverUrl(detailJson.getString("creative_name"));
|
|
videoGet.setCoverUrl(detailJson.getString("creative_name"));
|
|
videoGet.setPhotoId(detailJson.getString("photo_id"));
|
|
videoGet.setPhotoId(detailJson.getString("photo_id"));
|
|
@@ -2459,14 +2459,12 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
KuaiShouVideoGet videoGet = new KuaiShouVideoGet();
|
|
KuaiShouVideoGet videoGet = new KuaiShouVideoGet();
|
|
videoGet.setAccountId(advertiserId);
|
|
videoGet.setAccountId(advertiserId);
|
|
videoGet.setId(advertiserId + signature);
|
|
videoGet.setId(advertiserId + signature);
|
|
- Integer width = Integer.valueOf(dataJson.getString("width"));
|
|
|
|
- videoGet.setWidth(width);
|
|
|
|
- Integer height = Integer.valueOf(dataJson.getString("height"));
|
|
|
|
- videoGet.setHeight(height);
|
|
|
|
|
|
+ videoGet.setWidth(dataJson.getLong("width"));
|
|
|
|
+ videoGet.setHeight(dataJson.getLong("height"));
|
|
videoGet.setUrl(dataJson.getString("url"));
|
|
videoGet.setUrl(dataJson.getString("url"));
|
|
videoGet.setPhotoId(dataJson.getString("photo_id"));
|
|
videoGet.setPhotoId(dataJson.getString("photo_id"));
|
|
videoGet.setCoverUrl(dataJson.getString("cover_url"));
|
|
videoGet.setCoverUrl(dataJson.getString("cover_url"));
|
|
- Integer type = MaterialEnum.getTypeBySize(width, height);
|
|
|
|
|
|
+ Integer type = MaterialEnum.getTypeBySize(dataJson.getLong("width"), dataJson.getLong("height"));
|
|
if (!Check.isNull(type)) {
|
|
if (!Check.isNull(type)) {
|
|
videoGet.setMaterialType(type);
|
|
videoGet.setMaterialType(type);
|
|
}
|
|
}
|
|
@@ -2521,14 +2519,14 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
imageGet.setAccountId(advertiserId);
|
|
imageGet.setAccountId(advertiserId);
|
|
imageGet.setUrl(dataJson.getString("url"));
|
|
imageGet.setUrl(dataJson.getString("url"));
|
|
|
|
|
|
- Integer width = Integer.valueOf(dataJson.getString("width"));
|
|
|
|
- Integer height = Integer.valueOf(dataJson.getString("height"));
|
|
|
|
|
|
+ /* Integer width = Integer.valueOf(dataJson.getLong("width"));
|
|
|
|
+ Integer height = Integer.valueOf(dataJson.getLong("height"));*/
|
|
|
|
|
|
- imageGet.setWidth(width);
|
|
|
|
- imageGet.setHeight(height);
|
|
|
|
|
|
+ imageGet.setWidth(dataJson.getLong("width"));
|
|
|
|
+ imageGet.setHeight(dataJson.getLong("height"));
|
|
imageGet.setSize(dataJson.getLong("size"));
|
|
imageGet.setSize(dataJson.getLong("size"));
|
|
imageGet.setFormat(dataJson.getString("format"));
|
|
imageGet.setFormat(dataJson.getString("format"));
|
|
- Integer type = MaterialEnum.getTypeBySize(width, height);
|
|
|
|
|
|
+ Integer type = MaterialEnum.getTypeBySize(dataJson.getLong("width"), dataJson.getLong("height"));
|
|
if (!Check.isNull(type)) {
|
|
if (!Check.isNull(type)) {
|
|
imageGet.setMaterialType(type);
|
|
imageGet.setMaterialType(type);
|
|
}
|
|
}
|
|
@@ -3237,8 +3235,8 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
List<KuaiShouImageGet> list = new ArrayList<>();
|
|
List<KuaiShouImageGet> list = new ArrayList<>();
|
|
KuaiShouImageGet kuaiShouImageGet1 = new KuaiShouImageGet();
|
|
KuaiShouImageGet kuaiShouImageGet1 = new KuaiShouImageGet();
|
|
kuaiShouImageGet1.setUrl("http://static.yximgs.com/udata/pkg/markb21f94845c4350.jpg");
|
|
kuaiShouImageGet1.setUrl("http://static.yximgs.com/udata/pkg/markb21f94845c4350.jpg");
|
|
- kuaiShouImageGet1.setWidth(720);
|
|
|
|
- kuaiShouImageGet1.setHeight(1280);
|
|
|
|
|
|
+ kuaiShouImageGet1.setWidth(720L);
|
|
|
|
+ kuaiShouImageGet1.setHeight(1280L);
|
|
kuaiShouImageGet1.setSize(441029L);
|
|
kuaiShouImageGet1.setSize(441029L);
|
|
kuaiShouImageGet1.setFormat("jpg");
|
|
kuaiShouImageGet1.setFormat("jpg");
|
|
kuaiShouImageGet1.setImageToken("market0a8a3104ee6b4f148ab21f94845c4350.jpg");
|
|
kuaiShouImageGet1.setImageToken("market0a8a3104ee6b4f148ab21f94845c4350.jpg");
|