コード例 #1
0
ファイル: tbk-1.api.php プロジェクト: sayi21cn/ttae_open
 function get($arr)
 {
     global $_G;
     include_once ROOT_PATH . 'top/tbk/TbkItemGetRequest.php';
     $req = new TbkItemGetRequest();
     $req->setFields("num_iid,title,pict_url,small_images,reserve_price,zk_final_price,user_type,provcity,item_url");
     foreach ($arr as $k => $v) {
         if ($v) {
             $req->putOtherTextParam($k, $v);
         }
     }
     $resp = $_G['TOP']->execute($req);
     top_check_error($resp, 1);
     $list = $this->parse($resp);
     return $list;
 }