| 1234567891011121314151617181920212223242526272829303132333435363738 |
- import JsbSystem from "../../system/JsbSystem";
- /** 数盟管理类 */
- const { ccclass } = cc._decorator;
- @ccclass
- export default class ShuzilmM {
- private ifInitShuzilM: boolean = false;
- public szlm_did: string;
- public hasGot = false;
- public init() {
- if (this.ifInitShuzilM) {
- return
- }
- else {
- this.ifInitShuzilM = true;
- if (gData.storageData.ifIsBlock()) {
- return
- }
- JsbSystem.getQueryID();
- }
- }
- /** 数盟获取设备id返回
- * @param szlm_did 数盟返回equipID
- */
- public setShuzilmEquipID(szlm_did: string) {
- mk.console.log('ShuzilmM setShuzilmEquipID ', szlm_did);
- this.szlm_did = szlm_did;
- this.hasGot = true;
- }
- }
- window['ShuzilmM'] = ShuzilmM
|