💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 组件源码 /** * <b>方法描述:</b> 解报文(前置) <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2020-12-17 16:07:47 <br/> * * @param system * 入参|系统编号|{@link java.lang.String} * @param tardeNo * 入参|交易号|{@link java.lang.String} * @param tag * 入参|报文|{@link java.lang.String} * @param tagMap * 出参|解包后map|{@link java.util.Map} * @return 0 失败<br/> * 1 成功<br/> */ @Component(label = "解报文(前置)", style = "判断型", type = "同步组件", comment = "通过服务名调用通讯前置解指定报文。", version = "1.0.0", deprecated = false, author = "admin", date = "2020-12-17 04:07:47") @InParams(param = {@Param(name = "system", comment = "系统编号", type = java.lang.String.class), @Param(name = "tardeNo", comment = "交易号", type = java.lang.String.class), @Param(name = "tag", comment = "报文", type = java.lang.String.class)}) @OutParams(param = {@Param(name = "tagMap", comment = "解包后map", type = java.util.Map.class)}) @Returns(returns = {@Return(id = "0", desp = "失败"), @Return(id = "1", desp = "成功")}) @Order(value = 2) public static ResultBase P_yfeUnpack(String system, String tardeNo, String tag) { try { java.util.Map mapReq = new java.util.LinkedHashMap(); mapReq.put("system", system); mapReq.put("transCode", tardeNo); mapReq.put("request", tag); Map result = null; if (DebugUtil.debug) { result = BundleUtil.doPostYfe(DebugUtil.getYfePackUrl(), mapReq, 30000, 30000); } else { result = BundleUtil.invokeYfeUnPackMsg(mapReq); } if (result != null) return ResultBase.newSuccessResult(result); return ResultBase.newFailureResult("TPTK0011", "调用YFE解包失败,返回为空"); } catch (Exception e) { return ResultBase.newFailureResult("TPTK0012", "解报文异常:" + AppLog.errorMsg(e)); } } # 交易中组件使用方式 ![](https://img.kancloud.cn/78/7b/787b1a6a33b45cac8ae6da8359643289_1320x750.jpg) # 参数说明及示例 ## 入口参数 系统编号:通讯前置页面配置的接入系统或接出系统的系统编码,示例: `"sysCode"` 交易号:通讯前置页面配置的报文配置的交易码,示例: `"tranceCode"` 报文:需要解包的报文,示例: `"wretrjjkgfdsatrsyjkdjshaewrsrjdjhgffdgafe"` ## 出口参数 解包后map:报文解包后的map对象,示例: `__INNER__["result"]` > 通过服务名调用通讯前置解指定报文。