Commit 4dc523d3 by lee

Merge branch 'master' of git.oschina.net:kollway-kollway/newcemarose

parents 4ad67998 80d57ab3
...@@ -649,6 +649,11 @@ ...@@ -649,6 +649,11 @@
//微信支付 //微信支付
-(void)requestWeChatPay{ -(void)requestWeChatPay{
if (![WXApi isWXAppInstalled]) {
NSLog(@"WeChat App is not installed!");
[self showToast:@"您还没有安装微信"];
return;
}
NSDictionary *parameters = [KWMPayUtil wechatPayParameters:self.checkout]; NSDictionary *parameters = [KWMPayUtil wechatPayParameters:self.checkout];
__weak KWMBeforePayVC *weakSelf = self; __weak KWMBeforePayVC *weakSelf = self;
void(^failure)(NSURLSessionDataTask *,NSError *) = ^(NSURLSessionDataTask *task,NSError *error){ void(^failure)(NSURLSessionDataTask *,NSError *) = ^(NSURLSessionDataTask *task,NSError *error){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment