dever 6 years ago
parent
commit
8e7ba8c6d5
1 changed files with 5 additions and 1 deletions
  1. 5 1
      code/lib/Core.php

+ 5 - 1
code/lib/Core.php

@@ -60,7 +60,11 @@ class Core
                 }
                 }
             } else {
             } else {
                 # 订阅
                 # 订阅
-                $state = Dever::load('act/lib/subscribe')->submit($order['uid'], $order['product_id'], 1);
+                $state = false;
+                if ($num < 0) {
+                    $state = Dever::load('act/lib/subscribe')->submit($order['uid'], $order['product_id'], 1);
+                }
+                
                 if ($state) {
                 if ($state) {
                     $code = $this->createCode($order['cate_id'] . ',' . $order['product_id'], $order['cate_id'], $order['product_id'], $order['seller_id'], $product_num, $order['uid'], $order['order_id'], 0, 3);
                     $code = $this->createCode($order['cate_id'] . ',' . $order['product_id'], $order['cate_id'], $order['product_id'], $order['seller_id'], $product_num, $order['uid'], $order['order_id'], 0, 3);
                 } else {
                 } else {