Exemplo n.º 1
0
 function get($arr)
 {
     global $_G;
     include_once ROOT_PATH . 'top/tbk/TbkItemsGetRequest.php';
     $req = new TbkItemsGetRequest();
     $req->setFields("num_iid,seller_id,nick,title,volume,pic_url,item_url,shop_url");
     foreach ($arr as $k => $v) {
         if ($v) {
             $req->putOtherTextParam($k, $v);
         }
     }
     $resp = $_G['TOP']->execute($req);
     top_check_error($resp, $this->show_error);
     $rt = array();
     $rt['count'] = $resp->total_results;
     $rt['goods'] = $this->parse($resp);
     return $rt;
 }