蓝小新_个人页

个人头像照片 蓝小新
0
7
0

个人介绍

暂无个人介绍

擅长的技术

获得更多能力
通用技术能力:

暂时未有相关通用技术能力~

云产品技术能力:

暂时未有相关云产品技术能力~

阿里云技能认证

详细说明
暂无更多信息
正在加载, 请稍后...
暂无更多信息
  • 提交了问题 2016-06-02

    苹果手机使用JSAPI扫码功能提示scan err,安卓正常,什么情况?!?!

  • 回答了问题 2016-06-02

    苹果手机使用JSAPI扫码功能提示scan err,安卓正常,什么情况?!?!

    Re苹果手机使用JSAPI扫码功能提示scan err,安卓正常,什么情况?!?! 钉钉自带的扫描在苹果下也可以用,微应用里使用JSAPI就不行,苹果手机权限也看了,全都放开着呢,为什么啊?!? ------------------------- Re苹果手机使用JSAPI扫码功能提示scan err,安卓正常,什么情况?!?! /** * Created by liqiao on 8/10/15. *///logger.i('Here we go...');//logger.i(location.href);/** * _config comes from server-side template. see views/index.jade */dd.config({    agentId: _config.agentId,    corpId: _config.corpId,    timeStamp: _config.timeStamp,    nonceStr: _config.nonceStr,    signature: _config.signature,    jsApiList: [        'runtime.info',        'device.notification.prompt',        'biz.chat.pickConversation',        'device.notification.confirm',        'device.notification.alert',        'device.notification.prompt',        'biz.chat.open',        'biz.util.open',        'biz.user.get',        'biz.contact.choose',        'biz.telephone.call',        'biz.ding.post',        'biz.util.scan']});dd.userid = 0;dd.ready(function () {    //logger.i('dd.ready rocks!');    dd.runtime.info({        onSuccess: function (info) {            //logger.i('runtime info: ' + JSON.stringify(info));        },        onFail: function (err) {            logger.e('fail: ' + JSON.stringify(err));        }    });    dd.runtime.permission.requestAuthCode({        corpId: _config.corpId, //企业id        onSuccess: function (info) {            //logger.i('authcode: ' + info.code);            $.ajax({                url: '/sendMsg.php',                type: 'POST',                data: { 'event': 'get_userinfo', 'code': info.code },                dataType: 'json',                timeout: 900,                success: function (data, status, xhr) {                    var info = JSON.parse(data);                    if (info.errcode === 0) {                        //logger.i('user id: ' + info.userid);                        dd.userid = info.userid;                    }                    else {                        logger.e('auth error: ' + data);                    }                },                error: function (xhr, errorType, error) {                    if(error!=null)                        logger.e(errorType + ', ' + error);                }            });        },        onFail: function (err) {            logger.e('requestAuthCode fail: ' + JSON.stringify(err));        }    });    dd.biz.user.get({        onSuccess: function (info) {            //logger.e('userGet success: ' + JSON.stringify(info));        },        onFail: function (err) {            logger.e('userGet fail: ' + JSON.stringify(err));        }    });    $('.chooseonebtn').on('click', function () {        dd.biz.chat.pickConversation({            corpId: _config.corpId, //企业id            isConfirm: 'false', //是否弹出确认窗口,默认为true            onSuccess: function (data) {                var chatinfo = data;                if (chatinfo) {                    console.log(chatinfo.cid);                    dd.device.notification.prompt({                        message: '发送消息',                        title: chatinfo.title,                        buttonLabels: ['发送', '取消'],                        onSuccess: function (result) {                            var text = result.value;                            if (text == '') {                                return false;                            }                            $.ajax({                                url: '/sendMsg.php',                                type: 'POST',                                data: { 'event': 'send_to_conversation', 'cid': chatinfo.cid, 'sender': dd.userid, 'content': text },                                dataType: 'json',                                timeout: 900,                                success: function (data, status, xhr) {                                    var info = data;                                    //logger.i('sendMsg: ' + JSON.stringify(data));                                    if (info.errcode == 0) {                                        //logger.i('sendMsg: 发送成功');                                        /**                                         * 跳转到对话界面                                         */                                        dd.biz.chat.open({                                            cid: chatinfo.cid,                                            onSuccess: function (result) {                                            },                                            onFail: function (err) { }                                        });                                    } else {                                        logger.e('sendMsg: 发送失败' + info.errmsg);                                    }                                },                                error: function (xhr, errorType, error) {                                    logger.e(errorType + ', ' + error);                                }                            });                        },                        onFail: function (err) { }                    });                }            },            onFail: function (err) {            }        });    });    $('.scan').on('click', function () {        dd.biz.util.scan({            type: String,//type为qrCode或者barCode            onSuccess: function (data) {                //onSuccess将在扫码成功之后回调                /* data结构                  { 'text': String}                */                window.location.href = '?ma=' + data.text;            },            onFail: function (err) {                alert('scan err');            }        });    });    $('.phonecall').on('click', function () {        dd.biz.contact.choose({            startWithDepartmentId: 0, //-1表示打开的通讯录从自己所在部门开始展示, 0表示从企业最上层开始,(其他数字表示从该部门开始:暂时不支持)            multiple: false, //是否多选: true多选 false单选; 默认true            users: [], //默认选中的用户列表,userid;成功回调中应包含该信息            corpId: _config.corpId, //企业id            max: 10, //人数限制,当multiple为true才生效,可选范围1-1500            onSuccess: function (data) {                if (data && data.length > 0) {                    var selectUserId = data[0].emplId;                    if (selectUserId > 0) {                        dd.biz.telephone.call({                            users: [selectUserId], //用户列表,工号                            corpId: _config.corpId, //企业id                            onSuccess: function (info) {                                //logger.i('biz.telephone.call: info' + JSON.stringify(info));                            },                            onFail: function (err) {                                logger.e('biz.telephone.call: error' + JSON.stringify(err));                            }                        })                    } else {                        return false;                    }                } else {                    return false;                }            },            onFail: function (err) { }        });    });});dd.error(function (err) {    logger.e('dd error: ' + JSON.stringify(err));}); ------------------------- Re苹果手机使用JSAPI扫码功能提示scan err,安卓正常,什么情况?!?!                                                                                                                          重新扫一扫                车主信息                                                        车牌号                                                                                                                                                                                        车主姓名                                                                                                办卡信息                                                        卡号                                                                                                                                                办卡时间                                                                                                                                                有效期                                                                        至                                                                                                                卡状态                                                                                                进出车记录(限最近50条)                                                                                                                     ->                                                                     ------------------------- Re苹果手机使用JSAPI扫码功能提示scan err,安卓正常,什么情况?!?! 全部代码都在上面了,苹果手机扫描失败!安卓正常! ------------------------- Re苹果手机使用JSAPI扫码功能提示scan err,安卓正常,什么情况?!?! 学习了!!大神就是牛X
    踩0 评论0
  • 回答了问题 2016-03-25

    关于OA二次开发的问题

    Re关于OA二次开发的问题 钉钉是平台性的公司,对于你们的个性化需求,还是需要找专业的软件公司来解决。你们有自己的OA系统,站在你们角度考虑的话,你们可以选择你们现有OA软件公司来进行二次开发。
    踩0 评论0
  • 提交了问题 2016-03-22

    请高手指点迷津!!!

  • 回答了问题 2016-03-22

    请高手指点迷津!!!

    Re请高手给一个负责任的答案!!! 修正一下,创建套件点击确定时提示:“钉钉:回调URL检查失败”。然后点击“验证有效性”按钮时,目前提示又变成了:'系统调用异常,请稍后重试。错误代码:-1'。 ------------------------- Re请高手指点迷津!!! corpid是复制的,我又检查了的确是正确的,直接从钉钉管理员后台复制到配置文件里的,难道corpid需要进行加密吗!? ------------------------- Re请高手指点迷津!!! 前前后后为了这样一个小问题搞了一个星期了,目前问题已解决,但是发现官方PHP DEMO存在明显BUG,这才是导致一直提示错误的根本原因。这个答案实在让人晕倒,打死都没想到!!
    踩0 评论0
  • 提交了问题 2016-03-21

    请高手指点,使用PHP Demo创建测试套件时总是不成功

  • 回答了问题 2016-03-21

    请高手指点,使用PHP Demo创建测试套件时总是不成功

    Re请高手指点,使用PHP Demo创建测试套件时总是不成功 换了NET接口测试也是一样,反复看文档也没搞明白是哪儿出问题了。 ------------------------- Re请高手指点,使用PHP Demo创建测试套件时总是不成功 请高手看一下日志先,日志显示DECRYPT CREATE SUITE MSG SUCCESS,解密消息成功,错误代码71009、90010的说明如下,另外程序我调试了2天,虽然我不是专家,但也有5年以上开发经验,小弟实在不解,请高手帮忙解答!! 71009    返回文本非success 90010    您调用企业当前接口超过了限制,对所有企业的该接口的请求都被暂时禁用了,仅对企业授权给ISV的Accesstoken有效 ------------------------- Re请高手指点,使用PHP Demo创建测试套件时总是不成功 代码是900010   计算解密文字corpid不匹配,是我搞错了,好吧,我竟然一直没有发现 ,我再试试,如果有问题就私信你!!谢谢帮忙! ------------------------- Re请高手指点,使用PHP Demo创建测试套件时总是不成功 好吧,我总算通过了,但是问题真的很让人郁闷,PHP DEMO存在明显BUG,会导致验证有效性无法通过! 我怎么也没想到会是这样的问题,但是最终结果告诉我这就是事实,我前后花了一个星期来找自己的问题,最终证明竟然是我信任的DEMO问题,希望钉钉工作人员能够认真对待,减少类似错误的发生 ------------------------- Re请高手指点,使用PHP Demo创建测试套件时总是不成功 引发问题:验证有效性无法通过,如下图 问题文件:\openapi-demo-php-master\crypto\DingtalkCrypt.php,问题位置代码如下 顺便鄙视一下你们工作人员对问题处理的方式与态度,发贴虽然有人回复,但都是粘贴复制,有些过分自信了,对问题分析深度不够!!!
    踩0 评论0
正在加载, 请稍后...
滑动查看更多
正在加载, 请稍后...
暂无更多信息