Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaoye
MDPro3
Commits
a85ffae8
Commit
a85ffae8
authored
Jul 27, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update SettingServant.cs
parent
1c9f195a
Pipeline
#39614
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
Assets/Scripts/MDPro3/Servant/SettingServant.cs
Assets/Scripts/MDPro3/Servant/SettingServant.cs
+11
-0
No files found.
Assets/Scripts/MDPro3/Servant/SettingServant.cs
View file @
a85ffae8
...
...
@@ -236,11 +236,21 @@ namespace MDPro3.Servant
StartCoroutine
(
DownloadYpkAsync
(
url
));
}
public
class
AcceptAllCertificates
:
CertificateHandler
{
protected
override
bool
ValidateCertificate
(
byte
[]
certificateData
)
{
return
true
;
}
}
private
IEnumerator
DownloadYpkAsync
(
string
url
)
{
downloadingYPK
=
true
;
using
var
request
=
UnityWebRequest
.
Get
(
url
);
request
.
certificateHandler
=
new
AcceptAllCertificates
();
request
.
SendWebRequest
();
while
(!
request
.
isDone
)
{
...
...
@@ -261,6 +271,7 @@ namespace MDPro3.Servant
MessageManager
.
Cast
(
InterString
.
Get
(
"下载失败。"
));
GetUI
<
SettingServantUI
>().
ButtonDownloadYPK
.
SetModeText
(
string
.
Empty
);
downloadingYPK
=
false
;
request
.
certificateHandler
.
Dispose
();
}
}
...
...
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