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