Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
山
山西检定流水线数字孪生项目
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨泽宇
山西检定流水线数字孪生项目
Commits
88706a79
Commit
88706a79
authored
Aug 23, 2024
by
杨泽宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
c6f403c4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
137 additions
and
78 deletions
+137
-78
LoginManager.cs
Assets/Scripts/Components/AGV/LoginManager.cs
+123
-58
SensorDataManger.cs
Assets/Scripts/Components/UI/SensorDataManger.cs
+0
-10
URL 1.json
Assets/StreamingAssets/URL 1.json
+0
-0
URL 1.json.meta
Assets/StreamingAssets/URL 1.json.meta
+0
-0
URL.json
Assets/StreamingAssets/URL.json
+2
-2
URL.json.meta
Assets/StreamingAssets/URL.json.meta
+0
-0
1_Main.unity
Assets/_Scenes/1_Main.unity
+6
-4
2_Main.unity
Assets/_Scenes/2_Main.unity
+6
-4
No files found.
Assets/Scripts/Components/AGV/LoginManager.cs
View file @
88706a79
This diff is collapsed.
Click to expand it.
Assets/Scripts/Components/UI/SensorDataManger.cs
View file @
88706a79
...
@@ -87,18 +87,10 @@ public class SensorDataManger : MonoBehaviour
...
@@ -87,18 +87,10 @@ public class SensorDataManger : MonoBehaviour
public
IEnumerator
GetThreeModelSensorData1
()
public
IEnumerator
GetThreeModelSensorData1
()
{
{
//string jsonData = "{\"lineId\":\"" + lineId1 + "\"}";
//string post_url = "https://apifoxmock.com/m1/3550441-0-default/maintenance/bigScreen/sensor/getThreeModelSensorData";
while
(
true
)
while
(
true
)
{
{
using
(
UnityWebRequest
request
=
UnityWebRequest
.
Get
(
post_url
+
"?lineId="
+
lineId1
))
using
(
UnityWebRequest
request
=
UnityWebRequest
.
Get
(
post_url
+
"?lineId="
+
lineId1
))
{
{
// 设置请求头
//request.SetRequestHeader("Content-Type", "application/json");
//// 设置请求体
//byte[] bodyRaw = System.Text.Encoding.UTF8.GetBytes(jsonData);
//request.uploadHandler = new UploadHandlerRaw(bodyRaw);
// 发送请求并等待响应
// 发送请求并等待响应
yield
return
request
.
SendWebRequest
();
yield
return
request
.
SendWebRequest
();
...
@@ -124,8 +116,6 @@ public class SensorDataManger : MonoBehaviour
...
@@ -124,8 +116,6 @@ public class SensorDataManger : MonoBehaviour
public
IEnumerator
GetThreeModelSensorData2
()
public
IEnumerator
GetThreeModelSensorData2
()
{
{
//string jsonData = "{\"lineId\":\"" + lineId2 + "\"}";
//string post = "https://apifoxmock.com/m1/3550441-0-default/maintenance/bigScreen/sensor/getThreeModelSensorData";
while
(
true
)
while
(
true
)
{
{
using
(
UnityWebRequest
request
=
UnityWebRequest
.
Get
(
post_url
+
"?lineId="
+
lineId2
))
using
(
UnityWebRequest
request
=
UnityWebRequest
.
Get
(
post_url
+
"?lineId="
+
lineId2
))
...
...
Assets/S
cripts/Core
/URL 1.json
→
Assets/S
treamingAssets
/URL 1.json
View file @
88706a79
File moved
Assets/S
cripts/Core
/URL 1.json.meta
→
Assets/S
treamingAssets
/URL 1.json.meta
View file @
88706a79
File moved
Assets/S
cripts/Core
/URL.json
→
Assets/S
treamingAssets
/URL.json
View file @
88706a79
{
{
"productionlineID1"
:
""
,
"productionlineID1"
:
""
,
"productionlineID2"
:
"
4
"
,
"productionlineID2"
:
""
,
"faultInterface"
:
""
,
"faultInterface"
:
""
,
"lineID1"
:
""
,
"lineID1"
:
""
,
"lineID2"
:
"
0
"
,
"lineID2"
:
""
,
"post_url"
:
""
"post_url"
:
""
}
}
\ No newline at end of file
Assets/S
cripts/Core
/URL.json.meta
→
Assets/S
treamingAssets
/URL.json.meta
View file @
88706a79
File moved
Assets/_Scenes/1_Main.unity
View file @
88706a79
...
@@ -23279,7 +23279,8 @@ MonoBehaviour:
...
@@ -23279,7 +23279,8 @@ MonoBehaviour:
data: []
data: []
angle: 0
angle: 0
IsLine1: 0
IsLine1: 0
filePath: Assets\Scripts\Core\URL 1.json
path: URL.json
_parent: {fileID: 1692847786}
--- !u!114 &346303892
--- !u!114 &346303892
MonoBehaviour:
MonoBehaviour:
m_ObjectHideFlags: 0
m_ObjectHideFlags: 0
...
@@ -32436,7 +32437,8 @@ MonoBehaviour:
...
@@ -32436,7 +32437,8 @@ MonoBehaviour:
data: []
data: []
angle: 0
angle: 0
IsLine1: 1
IsLine1: 1
filePath: Assets\Scripts\Core\URL.json
path: URL.json
_parent: {fileID: 396184908}
--- !u!114 &560685329
--- !u!114 &560685329
MonoBehaviour:
MonoBehaviour:
m_ObjectHideFlags: 0
m_ObjectHideFlags: 0
...
@@ -43559,7 +43561,7 @@ GameObject:
...
@@ -43559,7 +43561,7 @@ GameObject:
m_Icon: {fileID: 0}
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_StaticEditorFlags: 0
m_IsActive:
1
m_IsActive:
0
--- !u!4 &817819954
--- !u!4 &817819954
Transform:
Transform:
m_ObjectHideFlags: 0
m_ObjectHideFlags: 0
...
@@ -43582,7 +43584,7 @@ MonoBehaviour:
...
@@ -43582,7 +43584,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 817819953}
m_GameObject: {fileID: 817819953}
m_Enabled:
1
m_Enabled:
0
m_EditorHideFlags: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 05d56e7ba014d4848bc7a5d4f0ae7d38, type: 3}
m_Script: {fileID: 11500000, guid: 05d56e7ba014d4848bc7a5d4f0ae7d38, type: 3}
m_Name:
m_Name:
Assets/_Scenes/2_Main.unity
View file @
88706a79
...
@@ -21580,7 +21580,8 @@ MonoBehaviour:
...
@@ -21580,7 +21580,8 @@ MonoBehaviour:
data: []
data: []
angle: 0
angle: 0
IsLine1: 0
IsLine1: 0
filePath:
path:
_parent: {fileID: 0}
--- !u!114 &346303892
--- !u!114 &346303892
MonoBehaviour:
MonoBehaviour:
m_ObjectHideFlags: 0
m_ObjectHideFlags: 0
...
@@ -34162,7 +34163,8 @@ MonoBehaviour:
...
@@ -34162,7 +34163,8 @@ MonoBehaviour:
data: []
data: []
angle: 0
angle: 0
IsLine1: 1
IsLine1: 1
filePath: Assets\Scripts\Core\URL.json
path: URL.json
_parent: {fileID: 1654077245}
--- !u!114 &560685329
--- !u!114 &560685329
MonoBehaviour:
MonoBehaviour:
m_ObjectHideFlags: 0
m_ObjectHideFlags: 0
...
@@ -40075,7 +40077,7 @@ GameObject:
...
@@ -40075,7 +40077,7 @@ GameObject:
m_Icon: {fileID: 0}
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_StaticEditorFlags: 0
m_IsActive:
1
m_IsActive:
0
--- !u!4 &679944236
--- !u!4 &679944236
Transform:
Transform:
m_ObjectHideFlags: 0
m_ObjectHideFlags: 0
...
@@ -40098,7 +40100,7 @@ MonoBehaviour:
...
@@ -40098,7 +40100,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 679944235}
m_GameObject: {fileID: 679944235}
m_Enabled:
1
m_Enabled:
0
m_EditorHideFlags: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 05d56e7ba014d4848bc7a5d4f0ae7d38, type: 3}
m_Script: {fileID: 11500000, guid: 05d56e7ba014d4848bc7a5d4f0ae7d38, type: 3}
m_Name:
m_Name:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment