123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using Newtonsoft.Json;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using static LangChaoJiekou;
- public class XunJianDataManager : MonoSingleton<XunJianDataManager>
- {
- public void checkXunjian( Action<string> callBack)
- {
- LangChaoJiekou.Instance.GetMachineList((List<string> listMachine )=>
- {
- Debug.Log("");
- if (listMachine.Count > 0)
- {
- LangChaoJiekou.Instance.checkXunjian(listMachine[0], (taskItem) => {
- if (taskItem == null)
- {
- callBack("当前机房暂无巡检任务!");
- }
- else
- {
- callBack(null);
- XunJianAllData.taskItem = taskItem;
- LangChaoJiekou.Instance.getXunJian(taskItem, (listRoomItem) => {
- XunJianAllData.listRoomItem = listRoomItem;
- Debug.Log(" DGJ ===> getXunJian " + JsonConvert.SerializeObject(listRoomItem));
- });
- }
- });
- }
- else
- {
- Debug.LogError(" 当前账号内无机房列表 ");
- }
-
- });
-
- }
-
- }
|