格式化代码,并清理无用代码

This commit is contained in:
Binary Wang
2018-03-03 17:40:42 +08:00
parent a6d73a249d
commit 9188ceaca2
10 changed files with 14 additions and 25 deletions

View File

@@ -53,7 +53,7 @@ public class WxOpenXmlMessage implements Serializable {
@XStreamConverter(value = XStreamCDataConverter.class)
private String preAuthCode;
public static String wxMpOutXmlMessageToEncryptedXml(WxMpXmlOutMessage message, WxOpenConfigStorage wxOpenConfigStorage){
public static String wxMpOutXmlMessageToEncryptedXml(WxMpXmlOutMessage message, WxOpenConfigStorage wxOpenConfigStorage) {
String plainXml = message.toXml();
WxOpenCryptUtil pc = new WxOpenCryptUtil(wxOpenConfigStorage);
return pc.encrypt(plainXml);

View File

@@ -15,7 +15,8 @@ public class WxOpenAuthorizerInfoResult implements Serializable {
private WxOpenAuthorizationInfo authorizationInfo;
private WxOpenAuthorizerInfo authorizerInfo;
public boolean isMiniProgram(){
public boolean isMiniProgram() {
return authorizerInfo != null && authorizerInfo.getMiniProgramInfo() != null;
}
}