| | |
| | | String plainData = null; |
| | | if (isDataEncrypted) { |
| | | try { |
| | | plainData = AlipayEncrypt.decryptContent(content, encryptType, "XABBSOeWDakvuG9TDez4Qg====", charset); |
| | | plainData = AlipayEncrypt.decryptContent(content, encryptType, "84iAz9sTR7siFxTmAD6sfw==", charset); |
| | | } catch (AlipayApiException e) { |
| | | //解密异常, 记录日志 |
| | | throw new ServiceException("解密异常"); |
| | | }} else { |
| | | plainData = content; |
| | | } |
| | | return plainData; |
| | | log.info("解密后的数据:{}", plainData); |
| | | String phoneNumber = ""; |
| | | if (plainData.contains("mobile")) { |
| | | phoneNumber = JSON.parseObject(plainData).getString("mobile"); |
| | | } |
| | | return phoneNumber; |
| | | } |
| | | |
| | | /** |