dever 6 gadi atpakaļ
vecāks
revīzija
93bbaffd4e
1 mainītis faili ar 3 papildinājumiem un 4 dzēšanām
  1. 3 4
      buy/src/Buy.php

+ 3 - 4
buy/src/Buy.php

@@ -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) {