This commit is contained in:
jinyu
2016-02-25 19:52:44 +08:00
parent f65c64cbeb
commit c6a9854717
4 changed files with 44 additions and 16 deletions
@@ -316,4 +316,33 @@ public enum JSSDKAPI {
* 企业号会话接口集合
*/
public final static JSSDKAPI[] CHAT_APIS = { openEnterpriseChat };
/**
* 公众平台全部接口集合
*/
public final static JSSDKAPI[] MP_ALL_APIS = { onMenuShareTimeline,
onMenuShareAppMessage, onMenuShareQQ, onMenuShareWeibo,
onMenuShareQZone, chooseImage, previewImage, uploadImage,
downloadImage, startRecord, stopRecord, onVoiceRecordEnd,
playVoice, pauseVoice, stopVoice, onVoicePlayEnd, uploadVoice,
downloadVoice, translateVoice, getNetworkType, openLocation,
getLocation, startSearchBeacons, stopSearchBeacons,
onSearchBeacons, hideOptionMenu, showOptionMenu, closeWindow,
hideMenuItems, showMenuItems, hideAllNonBaseMenuItem,
showAllNonBaseMenuItem, scanQRCode, openProductSpecificView,
chooseCard, addCard, openCard, consumeAndShareCard, chooseWXPay };
/**
* 企业号全部接口集合
*/
public final static JSSDKAPI[] QY_ALL_APIS = { onMenuShareTimeline,
onMenuShareAppMessage, onMenuShareQQ, onMenuShareWeibo,
onMenuShareQZone, chooseImage, previewImage, uploadImage,
downloadImage, startRecord, stopRecord, onVoiceRecordEnd,
playVoice, pauseVoice, stopVoice, onVoicePlayEnd, uploadVoice,
downloadVoice, translateVoice, getNetworkType, openLocation,
getLocation, startSearchBeacons, stopSearchBeacons,
onSearchBeacons, hideOptionMenu, showOptionMenu, closeWindow,
hideMenuItems, showMenuItems, hideAllNonBaseMenuItem,
showAllNonBaseMenuItem, scanQRCode, openEnterpriseChat,
openEnterpriseContact };
}
@@ -60,6 +60,9 @@ public class Weixin4jConfigUtil {
String value = defaultValue;
try {
value = getValue(key);
if (StringUtil.isBlank(value)) {
value = defaultValue;
}
} catch (MissingResourceException e) {
;
} catch (NullPointerException e) {