MobClub / ShareSDK-for-iOS

快捷好用的社会化分享组件|Convenient SDK for SNS Share Feature
http://www.mob.com
465 stars 130 forks source link

Kakaotalk typo issue (rawData -> rawata) #38 #34

Open KimDaeWook opened 4 years ago

KimDaeWook commented 4 years ago

When i try to social login with kakaotalk, and call to GetUserInfo. i received NULL message.

i debugged few miniutes, i found some typo issue.

(rawData -> rawata) /ShareSDK/Editor/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Kakao.js

And I used the following code temporarily to solve the issue.

NSDictionary* rawData = [user rawData];

// FOR KAKAOTALK TYPO ISSUE TEMPORARY FIX
if(rawData == nil) rawData = [[user dictionaryValue] objectForKey:@"rawata"];

NSMutableDictionary *userData = rawData.mutableCopy;
userData[@"credential"] = [[user credential] rawData];
resultDict[@"res"] = userData;

please check.

isdotjim commented 4 years ago

搭个车... 想邀请Repo作者来w3c.group创建项目的对应小组。w3c.group是类似知识星球的社群工具,小组可设置为付费且有赞助功能,同时也是一个区块链主导的创作者社区。这是相关介绍: http://t.cn/Ai1vLcCU http://t.cn/Ai1vLcCG http://t.cn/Ai1vLcCA

jie0713 commented 4 years ago

OK

jie0713 commented 4 years ago

Update the version to solve this problem