|
@@ -5,6 +5,7 @@ import cn.com.ctop.job.bytedance.data.entity.BytedanceFileVideoGet;
|
|
|
import cn.com.ctop.job.bytedance.data.entity.OauthToken;
|
|
|
import cn.com.ctop.job.bytedance.data.mapper.BytedanceFileVideoGetMapper;
|
|
|
import cn.com.ctop.job.bytedance.data.service.IBytedanceFileVideoGetService;
|
|
|
+import cn.com.ctop.job.bytedance.data.utils.Check;
|
|
|
import cn.com.ctop.job.bytedance.data.utils.HttpUtils;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
@@ -42,8 +43,12 @@ public class BytedanceFileVideoGetServiceImpl implements IBytedanceFileVideoGetS
|
|
|
param.put("page", page);
|
|
|
param.put("page_size", pageSize);
|
|
|
JSONObject param2 = new JSONObject();
|
|
|
- param2.put("start_time",startDate);
|
|
|
- param2.put("end_time",endDate);
|
|
|
+ if (!Check.isNull(startDate)){
|
|
|
+ param2.put("start_time",startDate);
|
|
|
+ }
|
|
|
+ if (!Check.isNull(endDate)){
|
|
|
+ param2.put("end_time",endDate);
|
|
|
+ }
|
|
|
param.put("filtering",param2);
|
|
|
JSONObject resultObject = HttpUtils.bytedanceGetRequest(oauthToken.getAccessToken(), url, param);
|
|
|
|