Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
ZeusHub_Unity
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
潘梓豪
ZeusHub_Unity
Commits
f3d47c8a
Commit
f3d47c8a
authored
Jun 23, 2023
by
潘梓豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新设置
parent
b434c1e2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
Setting.cs
Assets/Scripts/Data/Setting.cs
+4
-4
Production.cs
Assets/Scripts/Model/Production.cs
+2
-0
RobotCode.cs
Assets/Scripts/unit/RobotCode.cs
+2
-2
log.txt
Log/log.txt
+1
-0
No files found.
Assets/Scripts/Data/Setting.cs
View file @
f3d47c8a
...
...
@@ -2,10 +2,10 @@
public
class
Setting
{
//public static string IP= "http://192.168.199.127:11
011";
public
static
string
IP
=
"http://8.134.114.12:11011"
;
public
static
string
IP
=
"http://192.168.199.127:12
011"
;
//
public static string IP = "http://8.134.114.12:11011";
//public static string IP = "http://127.0.0.1:80/zeushub";
public
static
string
client_id
=
"
2bc5f15f-0717-48f9-a782-77493ac45084
"
;
public
static
string
client_id
=
"
bUX2zYQyhuWa9SOk3tTcgx4uaMyigFwvPfA4TvlbneE
"
;
// yourEndpoint填写Bucket所在地域对应的Endpoint。以华东1(杭州)为例,Endpoint填写为https://oss-cn-hangzhou.aliyuncs.com。
public
static
string
endpoint
=
"https://oss-cn-shenzhen.aliyuncs.com"
;
// 阿里云账号AccessKey拥有所有API的访问权限,风险很高。强烈建议您创建并使用RAM用户进行API访问或日常运维,请登录RAM控制台创建RAM用户。
...
...
@@ -15,6 +15,6 @@ public class Setting
public
static
string
bucketName
=
"zeus-hub"
;
public
static
string
FileToUpload
=
"FileToUpload"
;
public
static
string
BaseUrl
=
Environment
.
CurrentDirectory
;
public
static
string
client_secret
=
"
pzh123456
"
;
public
static
string
client_secret
=
"
rT%^3koddvRRG
"
;
}
Assets/Scripts/Model/Production.cs
View file @
f3d47c8a
...
...
@@ -91,6 +91,8 @@ public class Production : MonoBehaviour
}
yield
return
new
WaitForSeconds
(
1f
);
}
}
...
...
Assets/Scripts/unit/RobotCode.cs
View file @
f3d47c8a
...
...
@@ -35,8 +35,8 @@ public class RobotCode
{
//string strNum = getCpu() + GetDiskVolumeSerialNumber();//获得24位Cpu和硬盘序列号
string
strNum
=
SystemInfo
.
deviceUniqueIdentifier
;
string
strMNum
=
strNum
.
Substring
(
0
,
24
);
//从生成的字符串中取出前24个字符做为机器码
return
str
M
Num
;
//
string strMNum = strNum.Substring(0, 24);//从生成的字符串中取出前24个字符做为机器码
return
strNum
;
}
public
static
int
[]
intCode
=
new
int
[
127
];
//存储密钥
public
static
int
[]
intNumber
=
new
int
[
25
];
//存机器码的Ascii值
...
...
Log/log.txt
View file @
f3d47c8a
...
...
@@ -7221,3 +7221,4 @@
2023/5/8 8:46:59 api:http://8.134.114.12:11011/oauth/token Cannot connect to destination host
2023/5/8 17:53:01 api:http://8.134.114.12:11011/oauth/token HTTP/1.1 502 Bad Gateway
2023/5/8 18:05:06 api:http://8.134.114.12:11011/oauth/token HTTP/1.1 502 Bad Gateway
2023/6/16 17:19:44 api:http://192.168.199.127:12011/oauth/token HTTP/1.1 502 Bad Gateway
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