Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
public class WxJsapiSignature implements Serializable {
private static final long serialVersionUID = -1116808193154384804L;

private String appid;
private String appId;

private String noncestr;
private String nonceStr;

private long timestamp;

Expand All @@ -26,12 +26,12 @@ public void setSignature(String signature) {
this.signature = signature;
}

public String getNoncestr() {
return this.noncestr;
public String getNonceStr() {
return nonceStr;
}

public void setNoncestr(String noncestr) {
this.noncestr = noncestr;
public void setNonceStr(String nonceStr) {
this.nonceStr = nonceStr;
}

public long getTimestamp() {
Expand All @@ -50,12 +50,11 @@ public void setUrl(String url) {
this.url = url;
}

public String getAppid() {
return this.appid;
public String getAppId() {
return appId;
}

public void setAppid(String appid) {
this.appid = appid;
public void setAppId(String appId) {
this.appId = appId;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ public WxJsapiSignature createJsapiSignature(String url) throws WxErrorException
);
WxJsapiSignature jsapiSignature = new WxJsapiSignature();
jsapiSignature.setTimestamp(timestamp);
jsapiSignature.setNoncestr(noncestr);
jsapiSignature.setNonceStr(noncestr);
jsapiSignature.setUrl(url);
jsapiSignature.setSignature(signature);

// Fixed bug
jsapiSignature.setAppid(this.configStorage.getCorpId());
jsapiSignature.setAppId(this.configStorage.getCorpId());

return jsapiSignature;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ public WxJsapiSignature createJsapiSignature(String url) throws WxErrorException
String signature = SHA1.genWithAmple("jsapi_ticket=" + jsapiTicket,
"noncestr=" + noncestr, "timestamp=" + timestamp, "url=" + url);
WxJsapiSignature jsapiSignature = new WxJsapiSignature();
jsapiSignature.setAppid(this.wxMpConfigStorage.getAppId());
jsapiSignature.setAppId(this.wxMpConfigStorage.getAppId());
jsapiSignature.setTimestamp(timestamp);
jsapiSignature.setNoncestr(noncestr);
jsapiSignature.setNonceStr(noncestr);
jsapiSignature.setUrl(url);
jsapiSignature.setSignature(signature);
return jsapiSignature;
Expand Down