编程知识 cdmana.com

jsapi should not callselectorStringgetUUIDtoerrorCode7

jsapi should not call,selectorString = getUUID:to: errorCode:7
这个是什么问题啊,貌似只要是 device.base下面的都是这个问题



采纳答案1:
回 1楼识器的帖子
$.ajax({
        type : 'get',
        url : 'servlet/configServlet',
        success : function(data) {
            console.log(data);
            data = JSON.parse(data);
            dd.config.agentId = data.agentId;
            dd.config.corpId = data.corpId;
            dd.config.nonceStr = data.noncestr;
            dd.config.timeStamp = data.timestamp;
            dd.config.signature = data.signature;
        },
        error : function(XMLHttpRequest, textStatus, errorThrown) {
            alert(errorThrown);
        },
    });
    dd.config({
        agentId : '', // 必填,微应用ID
        corpId : '',
        timeStamp : '', // 必填,生成签名的时间戳
        nonceStr : '', // 必填,生成签名的随机串
        signature : '', // 必填,签名
        jsApiList : [ 'device.notification.alert',
                'device.notification.confirm','biz.chat.chooseConversationByCorpId','biz.chat.pickConversation',
                'runtime.info','runtime.permission.requestAuthCode','device.base.getUUID',
                'device.base.getInterface',
                'device.nfc.nfcRead',
                'device.launcher.checkInstalledApps',
                'device.connection.getNetworkType',
                'biz.cspace.saveFile',
                'device.notification.prompt',
                'device.notification.vibrate',
                'device.notification.showPreloader',
                'device.notification.hidePreloader'
                ]



采纳答案2:
dd.config代码怎么写的呢?

-------------------------

参考下我上个帖子给你的回复


版权声明
本文为[阿里云问答]所创,转载请带上原文链接,感谢
https://developer.aliyun.com/ask/243067

Scroll to Top