From 80d57ab3797d04a237f86416f21a86adcdd42a0f Mon Sep 17 00:00:00 2001
From: houweibin <houweibin@kollway.com>
Date: Mon, 19 Jun 2017 17:45:20 +0800
Subject: [PATCH] 1,small fix

---
 iCemarose/Class/UI/ShopCart/KWMBeforePayVC.m | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/iCemarose/Class/UI/ShopCart/KWMBeforePayVC.m b/iCemarose/Class/UI/ShopCart/KWMBeforePayVC.m
index c78bc7b..a2557fd 100644
--- a/iCemarose/Class/UI/ShopCart/KWMBeforePayVC.m
+++ b/iCemarose/Class/UI/ShopCart/KWMBeforePayVC.m
@@ -649,6 +649,11 @@
 
 //微信支付
 -(void)requestWeChatPay{
+    if (![WXApi isWXAppInstalled]) {
+        NSLog(@"WeChat App is not installed!");
+        [self showToast:@"您还没有安装微信"];
+        return;
+    }
     NSDictionary *parameters = [KWMPayUtil wechatPayParameters:self.checkout];
     __weak KWMBeforePayVC *weakSelf = self;
     void(^failure)(NSURLSessionDataTask *,NSError *) = ^(NSURLSessionDataTask *task,NSError *error){
--
libgit2 0.26.0