File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
weixin-java-common/src/main/java/me/chanjar/weixin/common/bean
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 66 * jspai signature
77 */
88public class WxJsapiSignature implements Serializable {
9-
9+ private String appid ;
10+
1011 private String noncestr ;
1112
12- private String jsapiTicket ;
13-
1413 private long timestamp ;
1514
1615 private String url ;
@@ -33,14 +32,6 @@ public void setNoncestr(String noncestr) {
3332 this .noncestr = noncestr ;
3433 }
3534
36- public String getJsapiTicket () {
37- return jsapiTicket ;
38- }
39-
40- public void setJsapiTicket (String jsapiTicket ) {
41- this .jsapiTicket = jsapiTicket ;
42- }
43-
4435 public long getTimestamp () {
4536 return timestamp ;
4637 }
@@ -57,4 +48,12 @@ public void setUrl(String url) {
5748 this .url = url ;
5849 }
5950
51+ public String getAppid () {
52+ return appid ;
53+ }
54+
55+ public void setAppid (String appid ) {
56+ this .appid = appid ;
57+ }
58+
6059}
Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ public WxJsapiSignature createJsapiSignature(String url) throws WxErrorException
164164 "url=" + url
165165 );
166166 WxJsapiSignature jsapiSignature = new WxJsapiSignature ();
167+ jsapiSignature .setAppid (wxMpConfigStorage .getAppId ());
167168 jsapiSignature .setTimestamp (timestamp );
168169 jsapiSignature .setNoncestr (noncestr );
169170 jsapiSignature .setUrl (url );
You can’t perform that action at this time.
0 commit comments