Beispiel #1
0
 function get_ext_info($open_iids, $all = false)
 {
     global $_G;
     if (is_array($open_iids)) {
         $open_iids = implode(',', $open_iids);
     }
     $req = new AtbItemsDetailGetRequest();
     //http://open.taobao.com/apidoc/dataStruct.htm?spm=a219a.7386789.0.0.4vyC0e&path=scopeId:11483-dataStructId:115030-apiId:23806-invokePath:atb_item_details.item
     //上方字段都可获取
     //desc
     $fd = "open_iid,detail_url,num,freight_payer,approve_status,item_imgs,post_fee,express_fee,ems_fee,item_img.url,nick";
     if ($all) {
         $fd .= ",title,cid,pic_url,location,shop_type,price";
     }
     if ($_G['setting']['get_message']) {
         $fd .= ",desc";
     }
     $req->setFields($fd);
     $req->setOpenIids($open_iids);
     $resp = $_G['TOP']->execute($req);
     top_check_error($resp, 1);
     $rt = $this->parse_ext_info($resp, $all);
     return $rt;
 }