up
This commit is contained in:
parent
c73b51f84f
commit
8902d8aef7
@ -103,6 +103,9 @@ public class JSSDKConfigurator {
|
||||
* @throws WeixinException
|
||||
*/
|
||||
public String toJSONConfig(String url) throws WeixinException {
|
||||
if (apis.isEmpty()) {
|
||||
throw new WeixinException("jsapilist not be empty");
|
||||
}
|
||||
Map<String, String> signMap = new HashMap<String, String>();
|
||||
String timestamp = DateUtil.timestamp2string();
|
||||
String noncestr = RandomUtil.generateString(24);
|
||||
@ -118,9 +121,6 @@ public class JSSDKConfigurator {
|
||||
if (StringUtil.isBlank(config.getString("debug"))) {
|
||||
config.put("debug", false);
|
||||
}
|
||||
if (apis.isEmpty()) {
|
||||
throw new WeixinException("jsapilist not be empty");
|
||||
}
|
||||
config.put("timestamp", timestamp);
|
||||
config.put("nonceStr", noncestr);
|
||||
config.put("signature", sign);
|
||||
|
||||
@ -7,7 +7,7 @@ package com.foxinmy.weixin4j.sign;
|
||||
* @className WeixinSignature
|
||||
* @author jy
|
||||
* @date 2016年3月26日
|
||||
* @since JDK 1.7
|
||||
* @since JDK 1.6
|
||||
* @see
|
||||
*/
|
||||
public interface WeixinSignature {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user