【推送泛微】工具类修改
This commit is contained in:
		
							parent
							
								
									07bff1f917
								
							
						
					
					
						commit
						c118bb16fb
					
				|  | @ -1523,7 +1523,7 @@ public class FWImpl { | ||||||
|         for (Map<String, Object> attachment : attachments) { |         for (Map<String, Object> attachment : attachments) { | ||||||
|             String filePath = (String) attachment.get("url"); |             String filePath = (String) attachment.get("url"); | ||||||
|             String fileName = (String) attachment.get("name"); |             String fileName = (String) attachment.get("name"); | ||||||
|             filePath = filePath.replace("127.0.0.1:8881", "10.200.30.186:8022"); | //            filePath = filePath.replace("127.0.0.1:8881", "10.200.30.186:8022"); | ||||||
|             byte[] bytes = HttpUtil.downloadBytes(filePath); |             byte[] bytes = HttpUtil.downloadBytes(filePath); | ||||||
|             String str = cn.hutool.core.codec.Base64.encode(bytes); |             String str = cn.hutool.core.codec.Base64.encode(bytes); | ||||||
|             JSONObject fj = new JSONObject(); |             JSONObject fj = new JSONObject(); | ||||||
|  |  | ||||||
|  | @ -11,6 +11,8 @@ import com.alibaba.fastjson.JSONArray; | ||||||
| import com.alibaba.fastjson.JSONObject; | import com.alibaba.fastjson.JSONObject; | ||||||
| import kd.bos.dataentity.OperateOption; | import kd.bos.dataentity.OperateOption; | ||||||
| import kd.bos.dataentity.entity.DynamicObject; | import kd.bos.dataentity.entity.DynamicObject; | ||||||
|  | import kd.bos.logging.Log; | ||||||
|  | import kd.bos.logging.LogFactory; | ||||||
| import kd.bos.servicehelper.BusinessDataServiceHelper; | import kd.bos.servicehelper.BusinessDataServiceHelper; | ||||||
| import kd.bos.servicehelper.operation.OperationServiceHelper; | import kd.bos.servicehelper.operation.OperationServiceHelper; | ||||||
| import org.apache.commons.lang3.StringUtils; | import org.apache.commons.lang3.StringUtils; | ||||||
|  | @ -30,6 +32,8 @@ import java.util.*; | ||||||
| 
 | 
 | ||||||
| public class FWRestfulUtils { | public class FWRestfulUtils { | ||||||
| 
 | 
 | ||||||
|  |     private static final Log log = LogFactory.getLog(FWRestfulUtils.class); | ||||||
|  | 
 | ||||||
|     private static final String FW_Main_URL = ConfigUtils.getThirdConfigByNumber("FW_Main_URL");//获取泛微接口ip、端口号 |     private static final String FW_Main_URL = ConfigUtils.getThirdConfigByNumber("FW_Main_URL");//获取泛微接口ip、端口号 | ||||||
|     private static final String FW_systemid = ConfigUtils.getThirdConfigByNumber("FW_systemid");//获取泛微接口授权用户名、系统标识 |     private static final String FW_systemid = ConfigUtils.getThirdConfigByNumber("FW_systemid");//获取泛微接口授权用户名、系统标识 | ||||||
|     private static final String FW_password = ConfigUtils.getThirdConfigByNumber("FW_password");//获取泛微接口授权密码 |     private static final String FW_password = ConfigUtils.getThirdConfigByNumber("FW_password");//获取泛微接口授权密码 | ||||||
|  | @ -46,6 +50,8 @@ public class FWRestfulUtils { | ||||||
|         String publicKey = rsa.getPublicKeyBase64(); |         String publicKey = rsa.getPublicKeyBase64(); | ||||||
|         String privateKey = rsa.getPrivateKeyBase64(); |         String privateKey = rsa.getPrivateKeyBase64(); | ||||||
| 
 | 
 | ||||||
|  |         log.info("FW_Main_URL:"+FW_Main_URL); | ||||||
|  | 
 | ||||||
|         //调用ECOLOGY系统接口进行注册   http://180.166.208.42:8043/ |         //调用ECOLOGY系统接口进行注册   http://180.166.208.42:8043/ | ||||||
|         String data = HttpRequest.post( FW_Main_URL + "api/ec/dev/auth/regist") |         String data = HttpRequest.post( FW_Main_URL + "api/ec/dev/auth/regist") | ||||||
|                 .header("appid",FW_appid) |                 .header("appid",FW_appid) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue