diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java index 2a59c01..22da6f8 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/wps/service/impl/WpsServiceImpl.java @@ -20,6 +20,7 @@ import com.chinaunicom.mall.ebtp.common.log.service.OperationLogService; import com.chinaunicom.mall.ebtp.common.uniBss.constant.UniBssConstant; import com.chinaunicom.mall.ebtp.common.uniBss.entity.UniBssAttached; import com.chinaunicom.mall.ebtp.extend.crypconfigure.util.SslUtil; +import com.chinaunicom.mall.ebtp.extend.feign.client.UnicomOAuthClient; import com.chinaunicom.mall.ebtp.extend.shortmessage.utils.RSA; import com.chinaunicom.mall.ebtp.extend.uniBss.UniBssUtil; import com.chinaunicom.mall.ebtp.extend.wps.entity.KingSoftFileSaveVo; @@ -73,6 +74,8 @@ public class WpsServiceImpl implements WpsService { @Autowired private AttachmentClient attachmentClient; + @Resource + private UnicomOAuthClient unicomOAuthClient; @Value("${mconfig.wps.bssAppId}") private String bss_app_id; @@ -576,7 +579,7 @@ public class WpsServiceImpl implements WpsService { CommonExceptionEnum.FRAME_EXCEPTION_COMMON_DATA_OTHER_ERROR.customValidName("令牌已失效-",true); } - SecurityEntity securityEntity = client.get(token); + SecurityEntity securityEntity = unicomOAuthClient.get(token); CommonExceptionEnum.FRAME_EXCEPTION_COMMON_DATA_OTHER_ERROR.customValidName("令牌无效",securityEntity.getUserid()==null||"".equals(securityEntity.getUserid())); return fileId;