zl程序教程

您现在的位置是:首页 >  移动开发

当前栏目

IOS实现微信支付流程详解手机开发

ios流程微信手机开发 实现 详解 支付
2023-06-13 09:20:07 时间
(BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {

  return  [WXApi handleOpenURL:url delegate:self];

}

(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {

  return  [WXApi handleOpenURL:url delegate:self];

}

(void)onResp:(BaseResp *)resp {

  if ([resp isKindOfClass:[PayResp class]]) {

  PayResp *response = (PayResp *)resp;

  switch (response.errCode) {

  case WXSuccess:

  NSLog(@ suceess );

  break;

  default:

  NSLog(@ failed );

  break;

  }

  }