阅读(2625) (0)

openMoneyCount

2022-06-27 10:24:05 更新

打开钱箱次数

openMoneyCount(callback(ret, err))

需要先调用startService后才能使用,调用stopService以后将不能使用

callback(ret)

ret:

  • 类型:JSON对象
  • 内部字段:status 布尔型

{
    status: true, //false
    count:1,
}

示例代码

var demo = api.require('sunmiT1Printer');
demo.openMoneyCount(function(ret, err) {
    alert(JSON.stringify(ret));
});

可用性

Android系统

可提供的1.0.0及更高版本