mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-13 11:49:49 +08:00
update
This commit is contained in:
@@ -72,6 +72,7 @@ public class AdapayUtil {
|
|||||||
signature.update(data.getBytes(StandardCharsets.UTF_8));
|
signature.update(data.getBytes(StandardCharsets.UTF_8));
|
||||||
return Base64.getEncoder().encodeToString(signature.sign());
|
return Base64.getEncoder().encodeToString(signature.sign());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
log.error("sign Exception", e);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -97,7 +98,7 @@ public class AdapayUtil {
|
|||||||
signature.update(data.getBytes(StandardCharsets.UTF_8));
|
signature.update(data.getBytes(StandardCharsets.UTF_8));
|
||||||
return signature.verify(Base64.getDecoder().decode(sign));
|
return signature.verify(Base64.getDecoder().decode(sign));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Exception", e);
|
log.error("verify Exception", e);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user