|
@@ -18,7 +18,7 @@ class Core
|
|
|
public function createCodeByOrder($order, $num = 0)
|
|
|
{
|
|
|
$code = '';
|
|
|
- if ($order['type'] == 3 && !$order['code']) {
|
|
|
+ if ($order['type'] == 3) {
|
|
|
Dever::setInput('set_product_id', $order['product_id']);
|
|
|
# 购买兑换码
|
|
|
$product_num = 1;
|