多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 组件源码 ``` /** * <b>方法描述:</b> 身份证号校验 <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2018-04-16 14:31:25 <br/> * * @param number * 入参|身份证号码|{@link java.lang.String} * @param isvalidity * 出参|是否合法|boolean * @return 0 失败<br/> * 1 成功<br/> */ @Component(label = "身份证号校验", style = "判断型", type = "同步组件", comment = "支持15位和18位身份证号的检查", version = "1.0.0", deprecated = false, author = "admin", date = "2018-04-16 02:31:25") @InParams(param = { @Param(name = "number", comment = "身份证号码", type = java.lang.String.class) }) @OutParams(param = { @Param(name = "isvalidity", comment = "是否合法", type = boolean.class) }) @Returns(returns = { @Return(id = "0", desp = "失败"), @Return(id = "1", desp = "成功") }) public static ResultBase P_checkIdCard(String number) { if (IdcardValidator.isValidatedAllIdcard(number)) return ResultBase.newSuccessResult(true); return ResultBase.newFailureResult("TPTV0012", "输入的身份照验证不通过"); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/d3/f2/d3f241ffbe9d100d54f49f529c5ced4f_1868x888.png) # 参数说明及示例 ## 入口参数 身份证号码:输入身份证号码,示例: `"130928198905281793"` ## 出口参数 是否合法:判断是否合法,示例: `__INNER__["result"]`