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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
GMThirdPartyDefine.h
GMShareSDK/Classes/ShareSDK/GMThirdPartyDefine.h
+4
-4
GMThirdPartyLoginHelper.m
GMShareSDK/Classes/ShareSDK/GMThirdPartyLoginHelper.m
+2
-2
GMThirdPartyOauthManager.m
GMShareSDK/Classes/ShareSDK/GMThirdPartyOauthManager.m
+5
-1
No files found.
GMShareSDK/Classes/ShareSDK/GMThirdPartyDefine.h
View file @
265d8164
...
...
@@ -119,11 +119,11 @@ typedef NS_ENUM(NSUInteger, GMShareContentType){
#ifdef APPSTORE
#define WEIXIN_APPID
@"wx4326da3ad2429149"
#define WEIXIN_SECRET
@"971147c78f55c3a657394a7a31f4266a
#define WEIXIN_APPID @"wx4326da3ad2429149"
#define WEIXIN_SECRET
@"971147c78f55c3a657394a7a31f4266a"
#else
#define WEIXIN_APPID
@"wx403cd28c142c7d87"
#define WEIXIN_SECRET
@"035af39ad74bbc01b7517a291c836827"
#define WEIXIN_APPID @"wx403cd28c142c7d87"
#define WEIXIN_SECRET @"035af39ad74bbc01b7517a291c836827"
#endif
#define QQ_APPID @"1101126509"
...
...
GMShareSDK/Classes/ShareSDK/GMThirdPartyLoginHelper.m
View file @
265d8164
...
...
@@ -62,9 +62,9 @@
SendAuthReq
*
req
=
[[
SendAuthReq
alloc
]
init
];
req
.
scope
=
@"snsapi_userinfo"
;
req
.
state
=
@"Gengmei"
;
//第三方向微信终端发送一个SendAuthReq消息结构
#warning TODOl待验证
// 第三方向微信终端发送一个SendAuthReq消息结构
[
WXApi
sendReq
:
req
completion
:
^
(
BOOL
success
)
{
}];
}
}
...
...
GMShareSDK/Classes/ShareSDK/GMThirdPartyOauthManager.m
View file @
265d8164
...
...
@@ -227,7 +227,11 @@
if
(
error
==
nil
)
{
NSDictionary
*
responseObject
=
[
NSJSONSerialization
JSONObjectWithData
:
data
options
:
kNilOptions
error
:
nil
];
NSString
*
refreshToken
=
responseObject
[
@"refresh_token"
];
[
self
refreshAccessTokenByRefreshToken
:
refreshToken
];
if
(
refreshToken
)
{
[
self
refreshAccessTokenByRefreshToken
:
refreshToken
];
}
else
{
assert
(
"获取accessToken出错"
);
}
}
else
{
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