dever 6 years ago
parent
commit
93464ea882
2 changed files with 2 additions and 0 deletions
  1. 1 0
      code/database/info.php
  2. 1 0
      service/src/Buy.php

+ 1 - 0
code/database/info.php

@@ -227,6 +227,7 @@ return array
             # 匹配的正则或函数 选填项
             'option' => array
             (
+                'cate_id' => 'yes',
                 'create_uid' => 'yes',
                 'state' => 1,
             ),

+ 1 - 0
service/src/Buy.php

@@ -52,6 +52,7 @@ class Buy extends Base
     # 列表页 我已购买的兑换码
     public function lists_code()
     {
+        $where['cate_id'] = $this->system;
         $where['create_uid'] = $this->user['id'];
         //$where['type'] = 3;
         $data = Dever::db('code/info')->getAll($where);