Explorar o código

修改获取视频

yumeng %!s(int64=5) %!d(string=hai) anos
pai
achega
0fa8875b09

+ 4 - 4
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouInterfaceServiceImpl.java

@@ -247,7 +247,7 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
                 }
                 var kuaiShouVideoGet = JSONObject.toJavaObject(detailJson, KuaiShouVideoGet.class);
                 kuaiShouVideoGet.setAccountId(token.getAccountId());
-                kuaiShouVideoGet.setId(token.getAccountId() + kuaiShouVideoGet.getSignature());
+                kuaiShouVideoGet.setId(token.getAccountId() + kuaiShouVideoGet.getPhotoId());
                 kuaiShouVideoGet.setCreateTime(new Date());
                 kuaiShouVideoGet.setUpdateTime(new Date());
                 Integer type = MaterialEnum.getTypeBySize(kuaiShouVideoGet.getWidth(), kuaiShouVideoGet.getHeight());
@@ -302,11 +302,11 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
             List<KuaiShouVideoGet> videoGets = new ArrayList<>();
             for (int i = 0; i < details.size(); i++) {
                 var detailJson = details.getJSONObject(i);
-                if (Check.isNull(detailJson.getString("signature"))) {
+               /* if (Check.isNull(detailJson.getString("signature"))) {
                     continue;
-                }
+                }*/
                 var kuaiShouVideoGet = JSONObject.toJavaObject(detailJson, KuaiShouVideoGet.class);
-                kuaiShouVideoGet.setId(token.getAccountId() + kuaiShouVideoGet.getSignature());
+                kuaiShouVideoGet.setId(token.getAccountId() + kuaiShouVideoGet.getPhotoId());
                 kuaiShouVideoGet.setAccountId(token.getAccountId());
 
             //    kuaiShouVideoGet.setCreateTime(new Date());