dever 6 年之前
父节点
当前提交
8e7ba8c6d5
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      code/lib/Core.php

+ 5 - 1
code/lib/Core.php

@@ -60,7 +60,11 @@ class Core
                 }
             } 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) {
                     $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 {