From 3477046445264ab06bb66972aca69566caa11ae1 Mon Sep 17 00:00:00 2001 From: chenjiahe <763432473@qq.com> Date: 星期三, 09 二月 2022 17:54:26 +0800 Subject: [PATCH] Mysql数据库AES加密工具,解密的时候判断是不是16进制的数据 --- src/main/java/com/hx/corp/entity/CorpPayResponse.java | 27 ++++++++++++++++++++++++++- 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/hx/corp/entity/CorpPayResponse.java b/src/main/java/com/hx/corp/entity/CorpPayResponse.java index 723c3fc..46d5ecf 100644 --- a/src/main/java/com/hx/corp/entity/CorpPayResponse.java +++ b/src/main/java/com/hx/corp/entity/CorpPayResponse.java @@ -7,7 +7,11 @@ /*(Y)涓氬姟缁撴灉锛孲UCCESS/FAIL锛屾敞鎰忥細褰撶姸鎬佷负FAIL鏃讹紝瀛樺湪涓氬姟缁撴灉鏈槑纭殑鎯呭喌銆傚鏋滅姸鎬佷负FAIL锛岃鍔″繀鍏虫敞閿欒浠g爜锛坋rr_code瀛楁锛夛紝閫氳繃鏌ヨ鎺ュ彛纭姝ゆ浠樻鐨勭粨鏋�*/ private String result_code = "FAIL"; - /*锛圷锛夐敊璇唬鐮侊紝鎴愬姛锛歋UCCESS*/ + /*锛圷锛夎繑鍥炵姸鎬佺爜,SUCCESS/FAIL锛屾瀛楁鏄�氫俊鏍囪瘑锛岄潪浜ゆ槗鏍囪瘑锛屼氦鏄撴槸鍚︽垚鍔熼渶瑕佹煡鐪媟esult_code鏉ュ垽鏂�*/ + private String return_code = "FAIL"; + /*(Y) 杩斿洖淇℃伅 */ + private String return_msg; + /*锛圷锛夐敊璇唬鐮�*/ private String err_code; /*(Y)閿欒浠g爜鎻忚堪*/ private String err_code_des; @@ -31,6 +35,9 @@ public CorpPayResponse() { } + + public static final String CODE_SUC = "SUCCESS"; + public static final String CODE_FAIL = "FAIL"; //////////////////////////////////////////////////////// @@ -114,10 +121,28 @@ this.payment_time = payment_time; } + public String getReturn_code() { + return return_code; + } + + public void setReturn_code(String return_code) { + this.return_code = return_code; + } + + public String getReturn_msg() { + return return_msg; + } + + public void setReturn_msg(String return_msg) { + this.return_msg = return_msg; + } + @Override public String toString() { return "CorpPayResponse{" + "result_code='" + result_code + '\'' + + ", return_code='" + return_code + '\'' + + ", return_msg='" + return_msg + '\'' + ", err_code='" + err_code + '\'' + ", err_code_des='" + err_code_des + '\'' + ", mch_appid='" + mch_appid + '\'' + -- Gitblit v1.8.0