|
miitMsa模块
按照https://community.yonyou.com/for ... ;searchLogId=407238,这个帖子操作了,但是无法进入回调
- var miitMsa = api.require('miitMsa');
- miitMsa.getDeviceId({
- }, function (ret, err) {
- alert(JSON.stringify(ret));
- console.log(JSON.stringify(ret));
- // if (ret.status) {
- // if (ret.type == "onSuccess") {
- // //结果集
- // var result = ret.result;
- // var deviceType = result.deviceType;//驱动类型 oaId imei
- // var deviceId = result.deviceId;//驱动ID 取决于 驱动类型 如:deviceType=oaId deviceId=oaId
- // var oaId = result.deviceId;//驱动类型 oaid
- // var imei = result.imei;//驱动类型 imei
- // }
- // } else {
- // alert(ret.msg)
- // }
- });
复制代码
|
|