This commit is contained in:
jinyu 2016-04-18 17:27:59 +08:00
parent c73b51f84f
commit 8902d8aef7
2 changed files with 165 additions and 165 deletions

View File

@ -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);

View File

@ -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 {