|
@@ -224,6 +224,11 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
if (!Check.isNull(byId)) {
|
|
|
continue;
|
|
|
}
|
|
|
+ detailJson.put("status", detailJson.getInteger("new_status"));
|
|
|
+ if (!Check.isNull(detailJson.getJSONArray("photo_tag"))) {
|
|
|
+ detailJson.put("material_tag", detailJson.getJSONArray("photo_tag").toJSONString());
|
|
|
+ }
|
|
|
+ detailJson.put("material_title", detailJson.getString("photo_name"));
|
|
|
var kuaiShouVideoGet = JSONObject.toJavaObject(detailJson, KuaiShouVideoGet.class);
|
|
|
kuaiShouVideoGet.setId(token.getAccountId() + kuaiShouVideoGet.getPhotoId());
|
|
|
|
|
@@ -1509,6 +1514,11 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
if (!Check.isNull(byId)) {
|
|
|
continue;
|
|
|
}
|
|
|
+ detailJson.put("status", detailJson.getInteger("new_status"));
|
|
|
+ if (!Check.isNull(detailJson.getJSONArray("photo_tag"))) {
|
|
|
+ detailJson.put("material_tag", detailJson.getJSONArray("photo_tag").toJSONString());
|
|
|
+ }
|
|
|
+ detailJson.put("material_title", detailJson.getString("photo_name"));
|
|
|
var kuaiShouVideoGet = JSONObject.toJavaObject(detailJson, KuaiShouVideoGet.class);
|
|
|
kuaiShouVideoGet.setId(accountId + photoId);
|
|
|
|
|
@@ -2151,6 +2161,11 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
videoGet.setUrl(dataJson.getString("url"));
|
|
|
videoGet.setPhotoId(dataJson.getString("photo_id"));
|
|
|
videoGet.setCoverUrl(dataJson.getString("cover_url"));
|
|
|
+ videoGet.setStatus(dataJson.getInteger("new_status"));
|
|
|
+ if (!Check.isNull(dataJson.getJSONArray("photo_tag"))) {
|
|
|
+ videoGet.setMaterialTag(dataJson.getJSONArray("photo_tag").toJSONString());
|
|
|
+ }
|
|
|
+ videoGet.setMaterialTitle(dataJson.getString("photo_name"));
|
|
|
Integer type = MaterialEnum.getTypeBySize(dataJson.getInteger("width"), dataJson.getInteger("height"));
|
|
|
if (!Check.isNull(type)) {
|
|
|
videoGet.setMaterialType(type);
|
|
@@ -2880,6 +2895,11 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
kuaiShouVideoGet.setChannelType(1);
|
|
|
kuaiShouVideoGet.setUserId(userId);
|
|
|
kuaiShouVideoGet.setMaterialId(jsonObject.getString("material_id"));
|
|
|
+ kuaiShouVideoGet.setMaterialTag(jsonObject.getString("material_tag"));
|
|
|
+ kuaiShouVideoGet.setMaterialTitle(jsonObject.getString("material_title"));
|
|
|
+ kuaiShouVideoGet.setSupplierAccountId(jsonObject.getLong("supplier_account_id"));
|
|
|
+ kuaiShouVideoGet.setSupplierAccountName(jsonObject.getString("supplier_account_name"));
|
|
|
+
|
|
|
Integer type = MaterialEnum.getTypeBySize(kuaiShouVideoGet.getWidth(), kuaiShouVideoGet.getHeight());
|
|
|
if (!Check.isNull(type)) {
|
|
|
kuaiShouVideoGet.setMaterialType(type);
|