dever преди 6 години
родител
ревизия
10a6e43197
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      code/lib/Core.php

+ 1 - 1
code/lib/Core.php

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