dever 6 年之前
父节点
当前提交
77a071b25c
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      code/database/info.php
  2. 1 1
      service/src/Buy.php

+ 1 - 1
code/database/info.php

@@ -171,7 +171,7 @@ return array
             'desc'      => '付款订单id',
             'desc'      => '付款订单id',
             'match'     => 'is_string',
             'match'     => 'is_string',
             'update'    => 'text',
             'update'    => 'text',
-            'list'        => true,
+            //'list'        => true,
             //'list'        => '"{order_id}" ? "{order_id}" : "{code}"',
             //'list'        => '"{order_id}" ? "{order_id}" : "{code}"',
         ), 
         ), 
 
 

+ 1 - 1
service/src/Buy.php

@@ -187,7 +187,7 @@ class Buy extends Base
             $buy = Dever::db('journal/buy_num')->one($buy_id);
             $buy = Dever::db('journal/buy_num')->one($buy_id);
             if ($buy && $buy['code'] > 1) {
             if ($buy && $buy['code'] > 1) {
                 $uid = $this->user['id'];
                 $uid = $this->user['id'];
-                $code = Dever::db('code/info')->state(array('create_uid' => $uid, 'order_id' => $order_id));
+                $code = Dever::db('code/info')->state(array('create_uid' => $uid, 'order_id' => $order['order_id']));
                 $config['code'] = '<p>兑换码</p>';
                 $config['code'] = '<p>兑换码</p>';
                 foreach ($code as $k => $v) {
                 foreach ($code as $k => $v) {
                     $config['code'] .= '<p>'.$v['code'].'</p>';
                     $config['code'] .= '<p>'.$v['code'].'</p>';