You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.9 KiB
54 lines
1.9 KiB
3 years ago
|
using UnityEngine;
|
||
|
using System.Collections;
|
||
|
using AX.Network.Protocols;
|
||
|
using System.Collections.Generic;
|
||
|
using System;
|
||
|
using AX.NetworkSystem;
|
||
|
using System.IO;
|
||
|
using UnityEngine.EventSystems;
|
||
|
using AX.TrackRecord;
|
||
|
|
||
|
public class CREATE_COURSEWARE_REPLY : NetworkMessageBehaviour
|
||
|
{
|
||
|
CoursewareInfo courseInfo;
|
||
|
protected override void Execute(BinaryMessage message)
|
||
|
{
|
||
|
//var pair = message.Body.Deserialize<CoursewareInfo>();
|
||
|
|
||
|
|
||
|
//string StrTip = "提交课件";
|
||
|
|
||
|
//string Data = pair.FilePath;
|
||
|
|
||
|
//List<string> StrList=new List<string>();
|
||
|
|
||
|
//string[] char_Data = Data.Split(new char[] { ';'},StringSplitOptions.RemoveEmptyEntries);//移除空的实体
|
||
|
|
||
|
//for (int i = 0; i < char_Data.Length; i++)
|
||
|
//{
|
||
|
// string str = "Coursewares/" + pair.ID + "/" + char_Data[i];
|
||
|
// StrList.Add(str);
|
||
|
//}
|
||
|
|
||
|
//string[] str_ = StrList.ToArray();
|
||
|
//if (str_.Length > 0)
|
||
|
//{
|
||
|
// if (GameObject.Find("FileTransTipWindow"))//如果已经存在文件传输窗口,不再相应
|
||
|
// return;
|
||
|
// GameObject TipWindow = Instantiate(Resources.Load<GameObject>("UIPrefab/FileTransTipWin"));
|
||
|
// TipWindow.GetComponent<FileTransTipWinManager>().SetWindow(StrTip, str_, TransferType.Upload);
|
||
|
// FileTransTipWinManager.task.TransferTaskCompleted += Task_TransferTaskCompleted;
|
||
|
// //courseInfo = TrackRecordHelpClass.DeepCopyMemberInfo(pair);
|
||
|
// courseInfo = pair;
|
||
|
//}
|
||
|
|
||
|
}
|
||
|
|
||
|
private void Task_TransferTaskCompleted()
|
||
|
{
|
||
|
//FileTransTipWinManager.task.TransferTaskCompleted -= Task_TransferTaskCompleted;
|
||
|
//NetworkManager.Default.SendRequestAsync("COURSEWARE_INSERTORUPDATE_REQUEST", courseInfo);//数据库插入课件记录的请求
|
||
|
//上传文件成功,返回上一场景
|
||
|
//MySceneManager.BackToLastScene();
|
||
|
}
|
||
|
}
|