lyhzzz 2 jaren geleden
bovenliggende
commit
df239412c6
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      src/main/java/com/fdkankan/manage/httpClient/service/LaserService.java

+ 2 - 1
src/main/java/com/fdkankan/manage/httpClient/service/LaserService.java

@@ -3,6 +3,7 @@ package com.fdkankan.manage.httpClient.service;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fdkankan.manage.common.CacheUtil;
 import com.fdkankan.manage.common.PageInfo;
 import com.fdkankan.manage.common.Result;
 import com.fdkankan.manage.entity.Camera;
@@ -47,7 +48,7 @@ public class LaserService {
 
     public PageInfo pageList(SceneParam param) {
         LaserSceneParam laserSceneParam = getLaserSceneParam(param);
-        if(laserSceneParam == null){
+        if(laserSceneParam == null || !CacheUtil.uploadType.equals("oss")){
             return PageInfo.PageInfoEmpty(param.getPageNum(),param.getPageSize());
         }
         FdkkResponse response = laserClient.sceneList(laserSceneParam);