|
@@ -59,10 +59,9 @@ class Buy extends Base
|
|
|
public function lists_code()
|
|
|
{
|
|
|
$where['cate_id'] = $this->cate;
|
|
|
- $where['create_uid'] = $this->user['id'];
|
|
|
- //$where['type'] = 3;
|
|
|
- $where['type'] = 4;
|
|
|
- $data = Dever::db('code/info')->getAll($where);
|
|
|
+ $where['uid'] = $this->user['id'];
|
|
|
+ $where['type'] = 3;
|
|
|
+ $data = Dever::db('act/order')->getMyAll($where);
|
|
|
|
|
|
if ($data) {
|
|
|
foreach ($data as $k => $v) {
|