Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
GMShareSDK
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMShareSDK
Commits
265d8164
Commit
265d8164
authored
Mar 25, 2020
by
汪洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理代码
parent
8719ca28
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
GMThirdPartyDefine.h
GMShareSDK/Classes/ShareSDK/GMThirdPartyDefine.h
+1
-1
GMThirdPartyLoginHelper.m
GMShareSDK/Classes/ShareSDK/GMThirdPartyLoginHelper.m
+2
-2
GMThirdPartyOauthManager.m
GMShareSDK/Classes/ShareSDK/GMThirdPartyOauthManager.m
+4
-0
No files found.
GMShareSDK/Classes/ShareSDK/GMThirdPartyDefine.h
View file @
265d8164
...
@@ -120,7 +120,7 @@ typedef NS_ENUM(NSUInteger, GMShareContentType){
...
@@ -120,7 +120,7 @@ typedef NS_ENUM(NSUInteger, GMShareContentType){
#ifdef APPSTORE
#ifdef APPSTORE
#define WEIXIN_APPID @"wx4326da3ad2429149"
#define WEIXIN_APPID @"wx4326da3ad2429149"
#define WEIXIN_SECRET
@"971147c78f55c3a657394a7a31f4266a
#define WEIXIN_SECRET
@"971147c78f55c3a657394a7a31f4266a"
#else
#else
#define WEIXIN_APPID @"wx403cd28c142c7d87"
#define WEIXIN_APPID @"wx403cd28c142c7d87"
#define WEIXIN_SECRET @"035af39ad74bbc01b7517a291c836827"
#define WEIXIN_SECRET @"035af39ad74bbc01b7517a291c836827"
...
...
GMShareSDK/Classes/ShareSDK/GMThirdPartyLoginHelper.m
View file @
265d8164
...
@@ -62,9 +62,9 @@
...
@@ -62,9 +62,9 @@
SendAuthReq
*
req
=
[[
SendAuthReq
alloc
]
init
];
SendAuthReq
*
req
=
[[
SendAuthReq
alloc
]
init
];
req
.
scope
=
@"snsapi_userinfo"
;
req
.
scope
=
@"snsapi_userinfo"
;
req
.
state
=
@"Gengmei"
;
req
.
state
=
@"Gengmei"
;
//第三方向微信终端发送一个SendAuthReq消息结构
// 第三方向微信终端发送一个SendAuthReq消息结构
#warning TODOl待验证
[
WXApi
sendReq
:
req
completion
:
^
(
BOOL
success
)
{
[
WXApi
sendReq
:
req
completion
:
^
(
BOOL
success
)
{
}];
}];
}
}
}
}
...
...
GMShareSDK/Classes/ShareSDK/GMThirdPartyOauthManager.m
View file @
265d8164
...
@@ -227,7 +227,11 @@
...
@@ -227,7 +227,11 @@
if
(
error
==
nil
)
{
if
(
error
==
nil
)
{
NSDictionary
*
responseObject
=
[
NSJSONSerialization
JSONObjectWithData
:
data
options
:
kNilOptions
error
:
nil
];
NSDictionary
*
responseObject
=
[
NSJSONSerialization
JSONObjectWithData
:
data
options
:
kNilOptions
error
:
nil
];
NSString
*
refreshToken
=
responseObject
[
@"refresh_token"
];
NSString
*
refreshToken
=
responseObject
[
@"refresh_token"
];
if
(
refreshToken
)
{
[
self
refreshAccessTokenByRefreshToken
:
refreshToken
];
[
self
refreshAccessTokenByRefreshToken
:
refreshToken
];
}
else
{
assert
(
"获取accessToken出错"
);
}
}
else
{
}
else
{
NSLog
(
@"获取accessToken出错"
);
NSLog
(
@"获取accessToken出错"
);
}
}
...
...
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