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