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

+ 1 - 1
journal/lib/Pay.php

@@ -97,7 +97,7 @@ class Pay
                 $update = array();
                 $update = array();
                 $update['where_id'] = $order['id'];
                 $update['where_id'] = $order['id'];
                 $update['status'] = 2;
                 $update['status'] = 2;
-                if ($order['type'] == 3) {
+                if ($order['type'] == 3 && !$order['code']) {
                     # 购买兑换码
                     # 购买兑换码
                     $product_num = 1;
                     $product_num = 1;
                     $code_num = 1;
                     $code_num = 1;