New-C2DX-For-ShareSDK
ShareSDK支持Coco2dx的一套插件。目的是为Coco2dx开发者更快速方便地集成使用ShareSDK。
这是基于支持的 ShareSDK 版本
- Android - V3.1.4
- iOS - V4.1.1
集成文档
集成中如遇到任何技术问题,欢迎咨询免费技术支持 QQ:4006852216 电话:400-685-2216
The newest project of cocos2d-x using ShareSDK.
C2DXShareSDK.cpp
line 199 的方法里
参数platType是不存在的,编译都编译不过去,你们没发现吗
我使用了这个最新版本,发现QQ授权后返回的数据与以前不同,授权后打印的log如下:
06-27 13:53:47.014 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success reqID
06-27 13:53:47.014 18828 18828 D cocos2d-x debug info: cJSON_Number
06-27 13:53:47.014 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success status
06-27 13:53:47.014 18828 18828 D cocos2d-x debug info: cJSON_Number
06-27 13:53:47.014 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success platform
06-27 13:53:47.014 18828 18828 D cocos2d-x debug info: cJSON_Number
06-27 13:53:47.015 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success action
06-27 13:53:47.015 18828 18828 D cocos2d-x debug info: Success
然后获得用户信息,log如下:
06-27 13:54:38.257 18828 18828 D cocos2d-x debug info: cJSON_Number
06-27 13:54:38.258 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success status
06-27 13:54:38.258 18828 18828 D cocos2d-x debug info: cJSON_Number
06-27 13:54:38.258 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success action
06-27 13:54:38.258 18828 18828 D cocos2d-x debug info: cJSON_Object
06-27 13:54:38.258 18828 18828 D cocos2d-x debug info: cJSON_String
06-27 13:54:38.258 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success is_yellow_vip
06-27 13:54:38.258 18828 18828 D cocos2d-x debug info: cJSON_String
06-27 13:54:38.258 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success msg
06-27 13:54:38.259 18828 18828 D cocos2d-x debug info: cJSON_String
06-27 13:54:38.259 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success vip
06-27 13:54:38.259 18828 18828 D cocos2d-x debug info: cJSON_String
06-27 13:54:38.259 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success nickname
06-27 13:54:38.259 18828 18828 D cocos2d-x debug info: cJSON_String
06-27 13:54:38.259 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success figureurl_qq_1
06-27 13:54:38.259 18828 18828 D cocos2d-x debug info: cJSON_String
06-27 13:54:38.259 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success city
06-27 13:54:38.259 18828 18828 D cocos2d-x debug info: cJSON_String
06-27 13:54:38.260 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success figureurl_1
06-27 13:54:38.260 18828 18828 D cocos2d-x debug info: cJSON_String
06-27 13:54:38.260 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success gender
06-27 13:54:38.260 18828 18828 D cocos2d-x debug info: cJSON_String
06-27 13:54:38.260 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success province
06-27 13:54:38.260 18828 18828 D cocos2d-x debug info: cJSON_String
06-27 13:54:38.260 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success is_yellow_year_vip
06-27 13:54:38.261 18828 18828 D cocos2d-x debug info: cJSON_String
06-27 13:54:38.261 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success yellow_vip_level
06-27 13:54:38.261 18828 18828 D cocos2d-x debug info: cJSON_String
06-27 13:54:38.261 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success figureurl
06-27 13:54:38.261 18828 18828 D cocos2d-x debug info: cJSON_String
06-27 13:54:38.261 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success figureurl_2
06-27 13:54:38.261 18828 18828 D cocos2d-x debug info: cJSON_Number
06-27 13:54:38.261 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success is_lost
06-27 13:54:38.261 18828 18828 D cocos2d-x debug info: cJSON_String
06-27 13:54:38.262 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success figureurl_qq_2
06-27 13:54:38.262 18828 18828 D cocos2d-x debug info: cJSON_String
06-27 13:54:38.262 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success level
06-27 13:54:38.262 18828 18828 D cocos2d-x debug info: cJSON_Number
06-27 13:54:38.262 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success ret
06-27 13:54:38.262 18828 18828 D cocos2d-x debug info: Dictionary setObject -- addObject success res
06-27 13:54:38.262 18828 18828 D cocos2d-x debug info: Success
06-27 13:54:38.263 18828 18828 D cocos2d-x debug info: key = is_yellow_vip
06-27 13:54:38.263 18828 18828 D cocos2d-x debug info: value = 0
06-27 13:54:38.263 18828 18828 D cocos2d-x debug info: key = msg
06-27 13:54:38.263 18828 18828 D cocos2d-x debug info: value =
06-27 13:54:38.264 18828 18828 D cocos2d-x debug info: key = vip
06-27 13:54:38.264 18828 18828 D cocos2d-x debug info: value = 0
06-27 13:54:38.264 18828 18828 D cocos2d-x debug info: key = nickname
06-27 13:54:38.264 18828 18828 D cocos2d-x debug info: value = 峻峰龙龙
06-27 13:54:38.264 18828 18828 D cocos2d-x debug info: key = figureurl_qq_1
06-27 13:54:38.264 18828 18828 D cocos2d-x debug info: value = http://q.qlogo.cn/qqapp/100371282/8B93D1E33AAE68E8B5D2CB4D61C16535/40
06-27 13:54:38.264 18828 18828 D cocos2d-x debug info: key = city
06-27 13:54:38.264 18828 18828 D cocos2d-x debug info: value = 朝阳
06-27 13:54:38.264 18828 18828 D cocos2d-x debug info: key = figureurl_1
06-27 13:54:38.264 18828 18828 D cocos2d-x debug info: value = http://qzapp.qlogo.cn/qzapp/100371282/8B93D1E33AAE68E8B5D2CB4D61C16535/50
06-27 13:54:38.264 18828 18828 D cocos2d-x debug info: key = gender
06-27 13:54:38.265 18828 18828 D cocos2d-x debug info: value = 男
06-27 13:54:38.265 18828 18828 D cocos2d-x debug info: key = province
06-27 13:54:38.265 18828 18828 D cocos2d-x debug info: value = 北京
06-27 13:54:38.265 18828 18828 D cocos2d-x debug info: key = is_yellow_year_vip
06-27 13:54:38.265 18828 18828 D cocos2d-x debug info: value = 0
06-27 13:54:38.265 18828 18828 D cocos2d-x debug info: key = yellow_vip_level
06-27 13:54:38.265 18828 18828 D cocos2d-x debug info: value = 0
06-27 13:54:38.265 18828 18828 D cocos2d-x debug info: key = figureurl
06-27 13:54:38.265 18828 18828 D cocos2d-x debug info: value = http://qzapp.qlogo.cn/qzapp/100371282/8B93D1E33AAE68E8B5D2CB4D61C16535/30
06-27 13:54:38.265 18828 18828 D cocos2d-x debug info: key = figureurl_2
06-27 13:54:38.265 18828 18828 D cocos2d-x debug info: value = http://qzapp.qlogo.cn/qzapp/100371282/8B93D1E33AAE68E8B5D2CB4D61C16535/100
06-27 13:54:38.266 18828 18828 D cocos2d-x debug info: key = is_lost
06-27 13:54:38.266 18828 18828 D cocos2d-x debug info: key = figureurl_qq_2
06-27 13:54:38.266 18828 18828 D cocos2d-x debug info: value = http://q.qlogo.cn/qqapp/100371282/8B93D1E33AAE68E8B5D2CB4D61C16535/100
06-27 13:54:38.266 18828 18828 D cocos2d-x debug info: key = level
06-27 13:54:38.266 18828 18828 D cocos2d-x debug info: value = 0
06-27 13:54:38.266 18828 18828 D cocos2d-x debug info: key = ret
使用之前的版本,会收到userid和token等信息,现在怎么没有了,与以前的数据格式不同,希望帮我分析一下。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.