|
@@ -11,6 +11,7 @@ import com.fdkankan.common.constant.CommonStatus;
|
|
|
import com.fdkankan.common.constant.ErrorCode;
|
|
|
import com.fdkankan.model.constants.UploadFilePath;
|
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
|
+import com.fdkankan.scene.httpclient.MyClient;
|
|
|
import com.fdkankan.web.response.ResultData;
|
|
|
import com.fdkankan.common.util.DateExtUtil;
|
|
|
import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
@@ -67,6 +68,12 @@ import org.springframework.util.ObjectUtils;
|
|
|
@RefreshScope
|
|
|
public class SceneEditServiceImpl implements ISceneEditService {
|
|
|
|
|
|
+ @Value("${4dkk.manageService.basePath}")
|
|
|
+ private String manageServiceUrl;
|
|
|
+
|
|
|
+ @Value("${4dkk.manageService.api.getServiceUpTip}")
|
|
|
+ private String getServiceUpTipApi;
|
|
|
+
|
|
|
@Autowired
|
|
|
ISceneProService sceneProService;
|
|
|
@Autowired
|
|
@@ -97,6 +104,9 @@ public class SceneEditServiceImpl implements ISceneEditService {
|
|
|
@Value("${scene.expired.month:#{null}}")
|
|
|
private Integer expiredMonth;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private MyClient myClient;
|
|
|
+
|
|
|
@Override
|
|
|
public SceneAuthVO getAuth(String num, SSOUser ssoUser){
|
|
|
|
|
@@ -309,4 +319,15 @@ public class SceneEditServiceImpl implements ISceneEditService {
|
|
|
return ResultData.ok();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public ResultData getServiceUpTip() {
|
|
|
+ try {
|
|
|
+ String url = this.manageServiceUrl.concat(this.getServiceUpTipApi);
|
|
|
+ String params = "type=" + 0;
|
|
|
+ ResultData resultData = myClient.get(url, params);
|
|
|
+ return ResultData.ok(resultData.getData());
|
|
|
+ }catch (Exception e){
|
|
|
+ return ResultData.ok();
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|