ShuzilmM.ts 870 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import JsbSystem from "../../system/JsbSystem";
  2. /** 数盟管理类 */
  3. const { ccclass } = cc._decorator;
  4. @ccclass
  5. export default class ShuzilmM {
  6. private ifInitShuzilM: boolean = false;
  7. public szlm_did: string;
  8. public hasGot = false;
  9. public init() {
  10. if (this.ifInitShuzilM) {
  11. return
  12. }
  13. else {
  14. this.ifInitShuzilM = true;
  15. if (gData.storageData.ifIsBlock()) {
  16. return
  17. }
  18. JsbSystem.getQueryID();
  19. }
  20. }
  21. /** 数盟获取设备id返回
  22. * @param szlm_did 数盟返回equipID
  23. */
  24. public setShuzilmEquipID(szlm_did: string) {
  25. mk.console.log('ShuzilmM setShuzilmEquipID ', szlm_did);
  26. this.szlm_did = szlm_did;
  27. this.hasGot = true;
  28. }
  29. }
  30. window['ShuzilmM'] = ShuzilmM