Commit 342bad8a authored by yanzg's avatar yanzg

表结构修改

parent f0f70931
......@@ -101,6 +101,7 @@ public class YzgError {
ERROR.add("083", "%s");
ERROR.add("084", "%s");
ERROR.add("085", "%s %s");
ERROR.add("999", "解密超时");
}
/**
......
package com.yanzuoguang.util.helper;
import com.yanzuoguang.util.YzgError;
import com.yanzuoguang.util.exception.RuntimeCodeException;
import com.yanzuoguang.util.log.Log;
import org.springframework.util.Base64Utils;
......@@ -393,7 +392,7 @@ public final class RsaHelper {
RsaValueInfo rsaValueInfo = JsonHelper.deserialize(rsaJson, RsaValueInfo.class);
long splitTime = System.currentTimeMillis() / 1000 - rsaValueInfo.getT();
if (splitTime > timeout && timeout > 0) {
throw new RuntimeCodeException("056", "解密超时");
throw YzgError.getRuntimeException("999");
}
return rsaValueInfo.getV();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment