rabin 5 years ago
parent
commit
c37c2008d7
1 changed files with 7 additions and 5 deletions
  1. 7 5
      main/src/Vip.php

+ 7 - 5
main/src/Vip.php

@@ -79,12 +79,14 @@ class Vip extends Core
             //$account_id = $cate['pay_id'];
         }
 
-        if ($type == 'wechat') {
-            $wechat = Dever::db('passport/wechat')->one(array('uid' => $this->data['uid'], 'type' => 1, 'system_id' => $this->data['system']));
-        } elseif ($type != 'alipay') {
-            Dever::alert('请传入正确的信息');
+        if ($method != 'apple') {
+            if ($type == 'wechat') {
+                $wechat = Dever::db('passport/wechat')->one(array('uid' => $this->data['uid'], 'type' => 1, 'system_id' => $this->data['system']));
+            } elseif ($type != 'alipay') {
+                Dever::alert('请传入正确的信息');
+            }
         }
-
+        
         $order_id = $this->createOrder();
 
         $order_data['cate_id'] = $cate['id'];