| | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.date.DateUnit; |
| | | import cn.hutool.core.date.DateUtil; |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import cn.hutool.crypto.SecureUtil; |
| | | import cn.hutool.json.JSONObject; |
| | |
| | | JSONObject jsonObject = JSONUtil.parseObj(agreementSignStr); |
| | | payResultStr = (String) jsonObject.get("biz_code"); |
| | | String signBizMsg = (String) jsonObject.get("biz_msg"); |
| | | String err_msg = (String) jsonObject.get("err_msg"); |
| | | if(!"JS000000".equals(payResultStr)){ |
| | | throw new FebsException(signBizMsg); |
| | | } |
| | | if(ObjectUtil.isNotNull(jsonObject.get("err_code"))){ |
| | | throw new FebsException(err_msg); |
| | | } |
| | | } |
| | | |
| | | AgreementPayDto agreementPayDto = new AgreementPayDto(); |