From d392082b97e8ad4ace7f1f60de68dcb20e736fcf Mon Sep 17 00:00:00 2001 From: king Date: Wed, 8 Apr 2015 17:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/IOSDocument.md | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/doc/IOSDocument.md b/doc/IOSDocument.md index 30aa200..90569da 100644 --- a/doc/IOSDocument.md +++ b/doc/IOSDocument.md @@ -8,7 +8,7 @@ V ## 1、添加动态库 -在工程里添加FacebookSDK.framework、MobileCoreServices.framework、SystemConfiguration.framework、libz.dylib、CFNetwork.framework、libletsgame.a +在工程里添加MobileCoreServices.framework、SystemConfiguration.framework、libz.dylib、CFNetwork.framework、libletsgame.a ## 2、设置头文件搜索路径 @@ -19,11 +19,7 @@ V 在工程里添加letsgame.bundle资源文件,里面包含图片及相关语言包 -## 4、设置FacebookAppID和FacebookDisplayName -在工程的info.plist里设置FacebookAppID和FacebookDisplayName - - -## 5、在工程里添加SDK登录代码 +## 4、在工程里添加SDK登录代码 [LetsGameAPI instance].appId = @"100"; // 设置appId [LetsGameAPI instance].appKey = @"100"; // 设置appKey @@ -41,11 +37,14 @@ V }; -## 6、在xxAppDelegate.h里添加代码 - - - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { - // attempt to extract a token from the url - return [[LetsGameAPI instance] handleOpenURL:url sourceApplication:sourceApplication]; - } - -这样facebook跳转到web或facebook app 后, 登录返回时,才能够把登录信息带回来 \ No newline at end of file +## 5、支付 + [LetsGameAPI instance].appId = @"10022"; + [LetsGameAPI instance].appKey = @"f899139df5e1059396431415e770c6dd"; + NSMutableDictionary *payInfo = [NSMutableDictionary dictionary]; + [payInfo setValue:@"5001" forKey:@"serverId"];//服务器id + [payInfo setValue:@"1000" forKey:@"channelId"];//渠道id + [payInfo setValue:@"10" forKey:@"amount"];//金额 + [payInfo setValue:@"ios demo" forKey:@"extraInfo"];//外部订单信息 + [payInfo setValue:@"元宝" forKey:@"product"];//物品信息 + [[LetsGameAPI instance] pay:payInfo]; + \ No newline at end of file -- 2.0.0