接口ID加密
This commit is contained in:
parent
e0485f5513
commit
6ee2e8abf7
@ -83,6 +83,8 @@ public class WechatAppletController extends BaseController {
|
|||||||
@RequestParam(value="randomFlag",required = false,defaultValue = "false") boolean randomFlag) {
|
@RequestParam(value="randomFlag",required = false,defaultValue = "false") boolean randomFlag) {
|
||||||
if(randomFlag){
|
if(randomFlag){
|
||||||
List<CustomerCaseResponse> reponseList = sysCustomerCaseService.getWxCustomerCaseByRandom(pageSize);
|
List<CustomerCaseResponse> reponseList = sysCustomerCaseService.getWxCustomerCaseByRandom(pageSize);
|
||||||
|
//处理ID加密
|
||||||
|
dealIdEnc(reponseList);
|
||||||
TableDataInfo rspData = new TableDataInfo();
|
TableDataInfo rspData = new TableDataInfo();
|
||||||
rspData.setCode(HttpStatus.SUCCESS);
|
rspData.setCode(HttpStatus.SUCCESS);
|
||||||
rspData.setMsg("查询成功");
|
rspData.setMsg("查询成功");
|
||||||
@ -305,8 +307,10 @@ public class WechatAppletController extends BaseController {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
private void dealIdEnc(List<CustomerCaseResponse> list) {
|
private void dealIdEnc(List<CustomerCaseResponse> list) {
|
||||||
for (CustomerCaseResponse cus : list) {
|
if(list != null){
|
||||||
cus.setId(AesUtils.encrypt(cus.getId() + "", null));
|
for (CustomerCaseResponse cus : list) {
|
||||||
|
cus.setId(AesUtils.encrypt(cus.getId() + "", null));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user