$itemid = $_GET[‘num_iid’];
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkItemInfoGetRequest;
$req->setFields(“num_iid,title,pict_url,small_images,reserve_price,zk_final_price,user_type,provcity,item_url,seller_id,volume,nick”);
$req->setPlatform(“1”);
itemid."");
$resp = req);
resp), true);
$detail = $resp[‘results’][‘n_tbk_item’];
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkCouponGetRequest;
_GET[‘e’]."");
$resp = req);
resp), true);
$quan = $resp[‘data’];
if($_G[‘charset’] !== ‘utf-8’){
other);
detail);
}
$detail = $detail[‘0’];
$src = ‘source/plugin/zhuzhu_taobao/static/image/’;
$font = “source/plugin/zhuzhu_taobao/static/font/fzltcxhjw.ttf”;
$arial = “source/plugin/zhuzhu_taobao/static/font/arialbd.ttf”;
$title = $detail[‘title’];
$quan = $quan[‘coupon_amount’];
$value = $detail[‘zk_final_price’];
$price = quan;
if(strlen($quan) == ‘1’){
KaTeX parse error: Double superscript at position 11: quan = ' '̲.quan;
}elseif(strlen($quan) == ‘2’){
KaTeX parse error: Double superscript at position 10: quan = ' '̲.quan;
}
if(substr($detail[‘pict_url’], 0, 5) == ‘https’) {
detail[‘pict_url’], ‘https’);
} else {
$goods = $detail[‘pict_url’];
}
require_once libfile(‘function/code’, ‘plugin/zhuzhu_taobao’);
$url = itemid."%26e=".str_replace(" “,”+", $_GET[‘e’]);
KaTeX parse error: Expected 'EOF', got '&' at position 65: …php?format=json&̲url=".url);
short_url,true);
$short_url = $short_url[‘url’];
$filename = ‘source/plugin/zhuzhu_taobao/static/QRcode.png’;
short_url,$filename,‘L’, ‘7.3’, ‘0’);
goods);
filename);
src.“img_quan.jpg”);
src.“img_kuang.jpg”);
src.“img_sheng.jpg”);
if($_G[‘charset’] !== ‘utf-8’){
title, “GB2312”, “UTF-8”);
}
$title = autowrap(12, 0, $font, $title, 250);
$detail = imagecreatetruecolor(820, 1100);
detail,255,255,255);
imagefill(color);
detail, 0, 0, 0);
detail, 255,255,255);
imagettftext($detail, 24, 0, 20, 870, $black, $font, detail, detail, detail, 44, 0, 285, 1028, $white, $arial, detail, 28, 0, 108, 1045, $white, $arial, detail, 25, 0, 295, 1063, imagecolorallocate($detail, 255,255,255), $font, detail, 25, 0, 296, 1063, imagecolorallocate($detail, 255,255,255), $font, detail, detail, $qcode, 594, 854, 0, 0, 182, 182, 100);
header(“Content-type: image/jpeg”);
imagejpeg($detail);