You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
459 B
17 lines
459 B
2 months ago
|
package com.ynxbd.common.service;
|
||
|
|
||
|
import org.apache.commons.codec.digest.DigestUtils;
|
||
|
import org.apache.commons.lang3.ObjectUtils;
|
||
|
|
||
|
public class XBDService {
|
||
|
|
||
|
public String getCloudToken(String treatNum) {
|
||
|
treatNum = treatNum + "huiyou69";
|
||
|
String key = DigestUtils.md5Hex(treatNum).toUpperCase();
|
||
|
if (ObjectUtils.isEmpty(key) || key.length() < 12) {
|
||
|
return null;
|
||
|
}
|
||
|
return key.substring(3, 12);
|
||
|
}
|
||
|
}
|