linhuantanly / flutter_douyin_plugin Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
if(resp.errCode==0){
///拿到code了
NSString *code=resp.code;
NSDictionary *resultMap=@{@"authCode":code};
[self->_channel invokeMethod:@"getAccessToken" arguments:resultMap];
alertString = [NSString stringWithFormat:@"Author Success Code : %@, permission : %@",resp.code, resp.grantedPermissions];
NSLog(@"result is %@",alertString);
}else{
然后flutter端
if (arguments != null) {
debugPrint("arguments is $arguments");
try {
debugPrint("arguments is ${arguments["code"] == "200"}");
if (arguments["code"] == 200) {
debugPrint("arguments is ${arguments["code"] == "200"}");
_callBackListener?.call("getAuthCode", arguments);
}
} on Exception catch (e) {
debugPrint("error is $e");
}
}
这里的arguments["code"] == 200永远不会成立啊
你好,我这边项目有抖音、快手flutter版本sdk的需求,可以聊聊么?我的微信 wangzan_537
var dy = Dy();
Future<void> loginWithDy() async {
var res = await dy.loginInWithDouyin("");
debugPrint("res: " + res.toString());
dy.addDyCallbackListener((eventName, eventParams) {
debugPrint("eventName: " + eventName + ", eventParams: " + eventParams);
});
}
啥都没打印 奇怪
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.