|
@@ -552,6 +552,38 @@ public class CommonController extends BaseController {
|
|
return AjaxResult.success(iClassGradeUserService.DecryptOfficialInfo(bo));
|
|
return AjaxResult.success(iClassGradeUserService.DecryptOfficialInfo(bo));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("学时抽查加密")
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:withdrawal:add')")
|
|
|
|
+ @Log(title = "学时抽查加密", businessType = BusinessType.INSERT)
|
|
|
|
+ @PostMapping("/common/free/encryptDes")
|
|
|
|
+ public AjaxResult encryptDes(@RequestBody ClassGradeDecryptQueryBo bo) {
|
|
|
|
+ try{
|
|
|
|
+ byte[] Keys = new byte[]{0x22, 0x34, 0x76, 0x58, (byte) 0x90, (byte) 0xAB, (byte) 0xAD, (byte) 0xBF};
|
|
|
|
+ byte[] rgbKey = "0ca175b9c0f726a831d895e26933246".substring(0, 8).getBytes("UTF-8");
|
|
|
|
+ String source = "bh="+bo.getBh()+"&idnum="+bo.getIdnum()+"&datetime=20230627";
|
|
|
|
+ return AjaxResult.success(ToolsUtils.encryptDesNew(source,"0ca175b9c0f726a831d895e26933246".substring(0, 8)));
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("学时抽查解密")
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:withdrawal:add')")
|
|
|
|
+ @Log(title = "学时抽查解密", businessType = BusinessType.INSERT)
|
|
|
|
+ @PostMapping("/common/free/dncryptDes")
|
|
|
|
+ public AjaxResult dncryptDes(@RequestBody ClassGradeDecryptQueryBo bo) {
|
|
|
|
+ try{
|
|
|
|
+ byte[] Keys = new byte[]{0x22, 0x34, 0x76, 0x58, (byte) 0x90, (byte) 0xAB, (byte) 0xAD, (byte) 0xBF};
|
|
|
|
+ byte[] rgbKey = "01b5d9833987efdff54483cdc9720da6".substring(0, 8).getBytes("UTF-8");
|
|
|
|
+ System.out.println(ToolsUtils.decryptDesNew(bo.getData(), "01b5d9833987efdff54483cdc9720da6".substring(0, 8)));
|
|
|
|
+ return AjaxResult.success();
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ System.out.println(e.getMessage());
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
@ApiOperation("商品列表")
|
|
@ApiOperation("商品列表")
|
|
@PreAuthorize("@ss.hasPermi('system:withdrawal:add')")
|
|
@PreAuthorize("@ss.hasPermi('system:withdrawal:add')")
|
|
@Log(title = "商品列表", businessType = BusinessType.INSERT)
|
|
@Log(title = "商品列表", businessType = BusinessType.INSERT)
|