|
|
@ -22,7 +22,12 @@ public class IndexController { |
|
|
|
public AjaxResult encrypt(@RequestBody JSONObject requestBody) { |
|
|
|
public AjaxResult encrypt(@RequestBody JSONObject requestBody) { |
|
|
|
String key = requestBody.getString("key"); |
|
|
|
String key = requestBody.getString("key"); |
|
|
|
String order = requestBody.getString("order"); |
|
|
|
String order = requestBody.getString("order"); |
|
|
|
String encryptTest = InvoiceEncryptUtil.encrypt(order, key); |
|
|
|
try { |
|
|
|
return AjaxResult.success("success", encryptTest); |
|
|
|
String encryptTest = InvoiceEncryptUtil.encrypt(order, key); |
|
|
|
|
|
|
|
return AjaxResult.success("success", encryptTest); |
|
|
|
|
|
|
|
}catch (Exception e){ |
|
|
|
|
|
|
|
return AjaxResult.error(e.getMessage()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|