6.9
This commit is contained in:
parent
a3f6565266
commit
2fe076372e
|
|
@ -1537,7 +1537,7 @@ RectTransform:
|
|||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 20, y: 20}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
|
|
@ -9803,7 +9803,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &1231426380
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -12615,6 +12615,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
Text_Error: {fileID: 1817651049}
|
||||
menu: {fileID: 1106015390}
|
||||
--- !u!4 &1493934519
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -14915,7 +14916,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1779006757
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -15101,10 +15102,10 @@ RectTransform:
|
|||
m_Father: {fileID: 1513228397}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 500, y: -147.5}
|
||||
m_SizeDelta: {x: 218, y: 295}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1788960032
|
||||
MonoBehaviour:
|
||||
|
|
|
|||
|
|
@ -13,6 +13,11 @@ public class ShowPractices : MonoBehaviour
|
|||
void Start()
|
||||
{
|
||||
PracticesName = PlayerPrefs.GetString("Practices");
|
||||
Debug.Log("PracticesName:" + PracticesName);
|
||||
Invoke("wait", .5f);
|
||||
}
|
||||
void wait()
|
||||
{
|
||||
//隐藏所有项
|
||||
for (i = 0; i < List_Task.Count; i++)
|
||||
List_Task[i].SetActive(false);
|
||||
|
|
@ -31,7 +36,7 @@ public class ShowPractices : MonoBehaviour
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//if (PlayerPrefs.GetInt("Join_" + i) == 1)//已参加
|
||||
//{
|
||||
// List_Task[i - 1].transform.GetComponent<Button>().interactable = false;
|
||||
|
|
@ -55,8 +60,8 @@ public class ShowPractices : MonoBehaviour
|
|||
public void Exit()
|
||||
{
|
||||
Application.Quit();
|
||||
Dictionary<string, string> formDic = new Dictionary<string, string>();
|
||||
formDic.Add("ip", InterfaceData.GetIP(ADDRESSFAM.IPv4));
|
||||
StartCoroutine(InterfaceData.UnityWebRequestPost("http://jc.lgzn.space/api/api/pro/deleteOperateTaskInfo", formDic, text => { }));
|
||||
//Dictionary<string, string> formDic = new Dictionary<string, string>();
|
||||
//formDic.Add("ip", InterfaceData.GetIP(ADDRESSFAM.IPv4));
|
||||
//StartCoroutine(InterfaceData.UnityWebRequestPost("http://jc.lgzn.space/api/api/pro/deleteOperateTaskInfo", formDic, text => { }));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public class Menu : MonoBehaviour
|
|||
void Start()
|
||||
{
|
||||
ReadCon.ReadTaskTitle();//读取所有作业标题
|
||||
StartCoroutine(UnityWebRequestPost());
|
||||
//StartCoroutine(UnityWebRequestPost());
|
||||
Invoke("GetURL", 5);
|
||||
}
|
||||
void GetURL()
|
||||
|
|
@ -98,7 +98,7 @@ public class Menu : MonoBehaviour
|
|||
|
||||
void Update()
|
||||
{
|
||||
timer += Time.deltaTime / 4;
|
||||
/* timer += Time.deltaTime / 4;
|
||||
if (timer <= 1)
|
||||
{
|
||||
scrollbar.size = timer;
|
||||
|
|
@ -127,7 +127,7 @@ public class Menu : MonoBehaviour
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
LoginData loginData = new LoginData();
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ public class LoadConfig : MonoBehaviour
|
|||
{
|
||||
string tempStr;
|
||||
int i;
|
||||
if (File.Exists("Sys.config"))
|
||||
if (File.Exists(Application.streamingAssetsPath+ "/Sys.config"))
|
||||
{
|
||||
StreamReader file = new StreamReader("Sys.config", Encoding.UTF8);
|
||||
StreamReader file = new StreamReader(Application.streamingAssetsPath + "/Sys.config", Encoding.UTF8);
|
||||
tempStr = file.ReadLine().Trim ();
|
||||
while (tempStr !=null )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,23 +1,25 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using LitJson;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System;
|
||||
using System.Text.RegularExpressions;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class ReadLoginInfo : MonoBehaviour
|
||||
{
|
||||
public Text Text_Error;
|
||||
public Menu menu;
|
||||
void Start()
|
||||
{
|
||||
Invoke("Load", 1);
|
||||
//Invoke("Load", 1);
|
||||
LoadInfo();
|
||||
}
|
||||
void Load()
|
||||
{
|
||||
string tempStr;
|
||||
int i;
|
||||
string path = System.Environment.CurrentDirectory+"/User.config";
|
||||
string path = System.Environment.CurrentDirectory + "/User.config";
|
||||
Debug.Log(path);
|
||||
//Text_Error.text = path;
|
||||
if (File.Exists(path))
|
||||
|
|
@ -60,4 +62,112 @@ public class ReadLoginInfo : MonoBehaviour
|
|||
//Application.Quit();
|
||||
}
|
||||
}
|
||||
void LoadInfo()
|
||||
{
|
||||
string tempStr;
|
||||
string path = Application.streamingAssetsPath + "/info.ini";
|
||||
Debug.Log(path);
|
||||
if (File.Exists(path))
|
||||
{
|
||||
|
||||
tempStr = File.ReadAllText(path); Debug.Log(tempStr);
|
||||
string[] data = tempStr.Split(new char[] { '#' });
|
||||
DateTime dt = DateTime.Parse(data[0]);
|
||||
TimeSpan ts = DateTime.Now - dt;
|
||||
Debug.Log(dt);
|
||||
Debug.Log(DateTime.Now);
|
||||
Debug.Log(ts.Seconds);
|
||||
if (ts.Seconds > 60)
|
||||
{
|
||||
Text_Error.text = "超时";
|
||||
Debug.Log("超时");
|
||||
Debug.Log(data[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
//string tmps = "采购物资入库";
|
||||
|
||||
//Debug.Log((GBToUnicode(tmps)));
|
||||
|
||||
if (data[1].Equals("local"))
|
||||
{
|
||||
menu.NoDataPanel.SetActive(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
; string[] a = data[1].Split(new char[] { ';' });
|
||||
|
||||
|
||||
string[] taskData = data[1].Split(new char[] { ';' });
|
||||
if (taskData[1].Equals("0"))
|
||||
{
|
||||
string v = UnicodeToGB(taskData[2].Replace("%5C", "\\"));
|
||||
PlayerPrefs.SetString("task_type", "学习");
|
||||
if (v.Contains("调拨"))
|
||||
{
|
||||
PlayerPrefs.SetString("Practices", "调拨");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Debug.Log(v);
|
||||
PlayerPrefs.SetString("Practices", v);
|
||||
}
|
||||
menu.stuBtn.onClick.Invoke();
|
||||
}
|
||||
else
|
||||
{
|
||||
PlayerPrefs.SetString("task_type", "考试");
|
||||
PlayerPrefs.SetString("id", taskData[2]);
|
||||
menu.examBtn.onClick.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public string UnicodeToGB(string text)
|
||||
{
|
||||
MatchCollection mc = Regex.Matches(text, "([\\w]+)|(\\\\u([\\w]{4}))");
|
||||
if (mc != null && mc.Count > 0)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
foreach (Match m2 in mc)
|
||||
{
|
||||
string v = m2.Value;
|
||||
string word = v.Substring(2);
|
||||
byte[] codes = new byte[2];
|
||||
int code = Convert.ToInt32(word.Substring(0, 2), 16);
|
||||
int code2 = Convert.ToInt32(word.Substring(2), 16);
|
||||
codes[0] = (byte)code2;
|
||||
codes[1] = (byte)code;
|
||||
sb.Append(Encoding.Unicode.GetString(codes));
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
return text;
|
||||
}
|
||||
}
|
||||
public static string GBToUnicode(string text)
|
||||
{
|
||||
byte[] bytes = System.Text.Encoding.Unicode.GetBytes(text);
|
||||
string lowCode = "", temp = "";
|
||||
for (int i = 0; i < bytes.Length; i++)
|
||||
{
|
||||
if (i % 2 == 0)
|
||||
{
|
||||
temp = System.Convert.ToString(bytes[i], 16);//取出元素4编码内容(两位16进制)
|
||||
if (temp.Length < 2) temp = "0" + temp;
|
||||
}
|
||||
else
|
||||
{
|
||||
string mytemp = Convert.ToString(bytes[i], 16);
|
||||
if (mytemp.Length < 2) mytemp = "0" + mytemp; lowCode = lowCode + @"\u" + mytemp + temp;//取出元素4编码内容(两位16进制)
|
||||
}
|
||||
}
|
||||
return lowCode;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
获取图片验证码:http://jc.lgzn.space/api/captchaImage
|
||||
登录接口:http://jc.lgzn.space/api/api/pro/student/login
|
||||
获取学习任务:http://jc.lgzn.space/api/api/pro/queryPractices
|
||||
业务流程课程列表:http://jc.lgzn.space/api/api/pro/getDataModelList
|
||||
业务流程基础数据:http://jc.lgzn.space/api/api/pro/getDataModel
|
||||
业务流程考核点数据:http://jc.lgzn.space/api/api/pro/getCheckPoint
|
||||
理论考试入口:http://124.71.203.22:8081/studentLogin
|
||||
查询考试:http://jc.lgzn.space/api/api/pro/theory/examination/queryExam
|
||||
加入考试:http://jc.lgzn.space/api/api/pro/theory/examination/joinExam
|
||||
完成考试:http://jc.lgzn.space/api/api/pro/theory/examination/finish
|
||||
仓储作业程序目录:业务流程仿真系统/业务流程.exe
|
||||
设备运维程序目录:
|
||||
仓储安全程序目录:
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ead13dd11ca5454429802ea04cbda49e
|
||||
folderAsset: yes
|
||||
guid: 16507387e1e83e043a6c58b433a3cf61
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
|
@ -0,0 +1 @@
|
|||
2023-06-08 21:11:48#-open|test://;1;5;/|
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5d3c41292b0d8b143baa451ef006aa16
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
uid:19952995556
|
||||
upwd:123456
|
||||
登录时间:2023/6/8 17:23:13
|
||||
id:15
|
||||
studentName:黄鹏
|
||||
mobile:19952995556
|
||||
gender:男
|
||||
idCard:321284199109260039
|
||||
studentNo:stu_16845464676442
|
||||
classId:null
|
||||
className:
|
||||
headImg:null
|
||||
password:******
|
||||
companyId:5
|
||||
companyName:泰州分公司
|
||||
skillLevel:
|
||||
workYear:11
|
||||
engage:仓库运营专员
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0768d361d37594f4f9ffffd04fcbb854
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Windows Store Apps: WindowsStoreApps
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -11,37 +11,37 @@
|
|||
"depth": 0,
|
||||
"source": "registry",
|
||||
"dependencies": {},
|
||||
"url": "https://packages.unity.cn"
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.ext.nunit": {
|
||||
"version": "1.0.0",
|
||||
"depth": 1,
|
||||
"source": "registry",
|
||||
"dependencies": {},
|
||||
"url": "https://packages.unity.cn"
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.ide.rider": {
|
||||
"version": "1.1.4",
|
||||
"depth": 0,
|
||||
"source": "registry",
|
||||
"dependencies": {
|
||||
"com.unity.test-framework": "1.1.3"
|
||||
"com.unity.test-framework": "1.1.1"
|
||||
},
|
||||
"url": "https://packages.unity.cn"
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.ide.vscode": {
|
||||
"version": "1.2.1",
|
||||
"depth": 0,
|
||||
"source": "registry",
|
||||
"dependencies": {},
|
||||
"url": "https://packages.unity.cn"
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.postprocessing": {
|
||||
"version": "2.3.0",
|
||||
"depth": 0,
|
||||
"source": "registry",
|
||||
"dependencies": {},
|
||||
"url": "https://packages.unity.cn"
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.test-framework": {
|
||||
"version": "1.1.16",
|
||||
|
|
@ -52,7 +52,7 @@
|
|||
"com.unity.modules.imgui": "1.0.0",
|
||||
"com.unity.modules.jsonserialize": "1.0.0"
|
||||
},
|
||||
"url": "https://packages.unity.cn"
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.textmeshpro": {
|
||||
"version": "2.1.1",
|
||||
|
|
@ -61,14 +61,14 @@
|
|||
"dependencies": {
|
||||
"com.unity.ugui": "1.0.0"
|
||||
},
|
||||
"url": "https://packages.unity.cn"
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.timeline": {
|
||||
"version": "1.2.16",
|
||||
"depth": 0,
|
||||
"source": "registry",
|
||||
"dependencies": {},
|
||||
"url": "https://packages.unity.cn"
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.ugui": {
|
||||
"version": "1.0.0",
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ PlayerSettings:
|
|||
useOnDemandResources: 0
|
||||
accelerometerFrequency: 60
|
||||
companyName: ESC
|
||||
productName: "\u4E1A\u52A1\u6D41\u7A0B"
|
||||
productName: App
|
||||
defaultCursor: {fileID: 0}
|
||||
cursorHotspot: {x: 0, y: 0}
|
||||
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
|
||||
|
|
@ -41,12 +41,6 @@ PlayerSettings:
|
|||
height: 1
|
||||
m_SplashScreenLogos: []
|
||||
m_VirtualRealitySplashScreen: {fileID: 0}
|
||||
m_ShowUnitySplashAds: 0
|
||||
m_AdsAndroidGameId:
|
||||
m_AdsIosGameId:
|
||||
m_ShowSplashAdsSlogan: 0
|
||||
m_SloganImage: {fileID: 0}
|
||||
m_SloganHeight: 150
|
||||
m_HolographicTrackingLossScreen: {fileID: 0}
|
||||
defaultScreenWidth: 1920
|
||||
defaultScreenHeight: 1080
|
||||
|
|
@ -124,7 +118,6 @@ PlayerSettings:
|
|||
vulkanNumSwapchainBuffers: 3
|
||||
vulkanEnableSetSRGBWrite: 0
|
||||
vulkanEnableLateAcquireNextImage: 0
|
||||
useSecurityBuild: 0
|
||||
m_SupportedAspectRatios:
|
||||
4:3: 1
|
||||
5:4: 1
|
||||
|
|
@ -294,7 +287,6 @@ PlayerSettings:
|
|||
- m_BuildTarget: WebGL
|
||||
m_StaticBatching: 0
|
||||
m_DynamicBatching: 0
|
||||
m_BuildTargetEncrypting: []
|
||||
m_BuildTargetGraphicsJobs:
|
||||
- m_BuildTarget: MacStandaloneSupport
|
||||
m_GraphicsJobs: 0
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
m_EditorVersion: 2019.4.9f1
|
||||
m_EditorVersionWithRevision: 2019.4.9f1 (ba291d946e84)
|
||||
m_EditorVersionWithRevision: 2019.4.9f1 (50fe8a171dd9)
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue