Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
M
MusicBigWatermelon
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
MusicBigWatermelon
Commits
e2c8af77
Commit
e2c8af77
authored
Aug 03, 2021
by
LiLiuZhou
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.huolea.com:wangxuewei/musicbigwatermelon
parents
56181193
6d0dd035
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
HttpTool.cs
Assets/Base/UnityTool/HTTP/HttpTool.cs
+1
-0
WxLoginUtil.cs
Assets/Base/UnityTool/WxLoginUtil.cs
+2
-0
No files found.
Assets/Base/UnityTool/HTTP/HttpTool.cs
View file @
e2c8af77
...
...
@@ -84,6 +84,7 @@ public class HttpTool : MonoBehaviour
private
IEnumerator
PostRequest
<
T
>(
string
BaseURL
,
string
methodName
,
string
jsonString
,
Dictionary
<
string
,
object
>
postParas
,
Action
<
T
>
success
,
Action
<
string
,
string
>
failed
)
{
string
url
=
BaseURL
+
methodName
+
"?"
+
addParams
(
postParas
);
Debug
.
unityLogger
.
Log
(
HttpLogTag
,
url
);
using
(
UnityWebRequest
webRequest
=
new
UnityWebRequest
(
url
,
"POST"
))
{
if
(
jsonString
!=
null
&&
jsonString
.
Length
>
0
)
...
...
Assets/Base/UnityTool/WxLoginUtil.cs
View file @
e2c8af77
...
...
@@ -84,6 +84,7 @@ public class WxLoginUtil : MonoBehaviour
LoginParam
login
=
new
LoginParam
();
login
.
pkg
=
Constant
.
Instance
.
Pkg
;
login
.
device
=
Constant
.
Instance
.
device
;
HttpTool
.
Instance
.
_Post
(
"app/v1/auth/tourist-login"
,
JsonMapper
.
ToJson
(
login
),
null
,
new
Action
<
LoginUserInfoBean
>((
bean
)
=>
{
AppConfig
.
Instance
.
setTokenAndUid
(
bean
.
token
,
bean
.
uid
);
...
...
@@ -93,6 +94,7 @@ public class WxLoginUtil : MonoBehaviour
}
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
{
Debug
.
unityLogger
.
Log
(
"登录Error"
+
code
+
" msg "
+
errMsg
);
if
(
wxCallBack
!=
null
)
{
wxCallBack
(
false
);
...
...
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