Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Vajra committed Mar 10, 2023
1 parent ec6fed5 commit a30c1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YZOpenSDKDemo/YouzanBaseDemo/YZBaseDemo/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ @implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

// 初始化sdk
YZSDK.shared.delegate = self; // 必须设置代理方法,保证 SDK 在需要 token 的时候可以正常运行
YZConfig *config = [[YZConfig alloc] initWithClientId:CLIENT_ID andAppKey:APPKEY];
config.enableLog = NO; // 关闭 sdk 的 log 输出
config.scheme = SCHEME; // 配置 scheme 以便微信支付完成后跳转
[YZSDK.shared initializeSDKWithConfig:config];
YZSDK.shared.delegate = self; // 必须设置代理方法,保证 SDK 在需要 token 的时候可以正常运行

// 查看 sdk 的版本
NSLog(@"%@", YZSDK.shared.version);
Expand Down

0 comments on commit a30c1f7

Please sign in to comment.