dever 6 年之前
父节点
当前提交
93464ea882
共有 2 个文件被更改,包括 2 次插入0 次删除
  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);