|
@@ -60,8 +60,12 @@ class Core
|
|
|
}
|
|
|
} else {
|
|
|
# 订阅
|
|
|
- Dever::load('act/lib/subscribe')->submit($order['uid'], $order['product_id'], 1);
|
|
|
- $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);
|
|
|
+ $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 {
|
|
|
+ $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, 1);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|