getMallAccessToken($mallId); $authAccessToken = $accessToken; $goodsId = ' 124809932'; //$goodsId = '78467055'; echo '
';

$pdd = new FetchAuthPddClient();
$goodsDetail = $pdd->getProductDetail($goodsId, $accessToken);
print_r($goodsDetail);

exit;

$client = new PddOAuthClient(Zc::C('gatewayUrl'), Zc::C('clientId'), Zc::C('clientSecret'), RedisExt::factory('bizCache'));
$req = new PddGoodsDetailGetRequest();

$req->setGoodsId($goodsId);
$ret = $client->execute($req, $accessToken);
echo '
';
print_r($ret);exit;

$req = new PddGOodsListGetRequest();
$req->setPage(1);
$req->setPageSize(100);
//$req->setIsOnsale(0);
$req->setGoodsName('鞋');
$client = new PddOAuthClient(Zc::C('gatewayUrl'), Zc::C('clientId'), Zc::C('clientSecret'), RedisExt::factory('bizCache'));
$ret = $client->execute($req, $accessToken);
echo '
';
$goodsNameList = array_column($ret['goods_list'], 'goods_name');
print_r($goodsNameList);
exit;
$param = array(
    'isOnSale' => 0,
//    'goodsName' => '商品',
);
$goodsListRet = $goodsService->getGoodsListFromPdd($pageNo, $pageSize, $accessToken, $param);
echo '
';
$goodsList = array_column($goodsListRet['goods_list'],'goods_name');
print_r($goodsList);exit;

$pdd = new FetchAuthPddClient();
$get = array();
$pageNo = 1;
$pageSize = 100;
$authAccessToken = 'a9c4f7672a4541d3a29411c57416d452f1850907';
$ret = $pdd->getProductList($get, $pageNo, $pageSize, $authAccessToken);
$data = json_decode($ret, true);
echo '
';
print_r($data);

exit();

$moveUtil = new MoveUtil();
$sourceItemId = 1166585316;
$source = FetchClientConst::collectTaskSourceAuthPdd;
$goodsData = $moveUtil->getWareData($sourceItemId, $source, '', array(), null, 403405650);
var_dump($goodsData);
exit;
$mallService = new MallService();
$pdd = new FetchAuthPddClient();
$productId = 1166570431;
//$productId = '1224067778';
$authMallId = 403405650;
//$authMallId = '5176091';

$authAccessToken = $mallService->getMallAccessToken($authMallId);
$pdd->getProductDetail($productId, $authAccessToken);
exit;

$lastGmtAccessTokenExpire = ZcDateHelper::formatDate("+12 hour");
Zc::dump($lastGmtAccessTokenExpire);
exit;
// Zc::runMVC();
$url = 'http://plus.2mm.cn/product/esgsqm';
preg_match('/(.*)\.2mm\.cn\/product\/(.*[^\.go])(?:\.go)?/is', $url, $match);
Zc::dump($match);
exit();

Zc::dump(gethostname());
$spider = new PageSpider(array(), null, $_SERVER['REMOTE_ADDR']);
for ($i = 1; $i <= 50; $i++) {
	$urls[] = 'http://mc-pre.chengji-inc.com/test2.php?t=' . $i;
};
$urlRetMap = $spider->crawl($urls);
Zc::dump($urlRetMap);

$hostMap = array();
foreach ($urlRetMap as $ret) {
	$host = $ret['content'];
	if (!isset($hostMap[$host])) {
		$hostMap[$host] = 1;
	} else {
		$hostMap[$host]++;
	}
}
Zc::dump($hostMap);

Zc::dump('hostCount:' . count($hostMap));
exit;

$curl = new TbProxyCurl();
$ret = $curl->get('https://esprit.tmall.com/category-1098612449-1010183159.htm?spm=a1z10.5-b-s.w4011-14866042071.151.QOBI4t&catName=%D0%C2%C6%B7&scene=taobao_shop&catId=1098612449&search=y&orderType=defaultSort');
echo $ret;
exit;

$fetchAliClient = new FetchAliClient();
$domain = 'https://shop1456245628666.1688.com';
$ret = $fetchAliClient->getBaseInfoByShopUrl($domain);
Zc::dump($ret);
exit;

$curl = new JdProxyCurl();
$r = $curl->get('http://item.jd.com/10127847181.html');
echo $r;
exit;

$fetchAliClient = new FetchAliClient();
$domain = 'https://shop1456245628666.1688.com';
$ret = $fetchAliClient->getBaseInfoByShopUrl($domain);
Zc::dump($ret);
exit;

list ($productList, $productTotal) = $fetchAliClient->getProductList($domain, null, 1, 0, '');
Zc::dump($productList);
exit;

$spider = new PageSpider(array(), null, $_SERVER['REMOTE_ADDR']);
$s = $spider->crawl(array('http://plds.chengji-inc.com/test2.php'));
print_r($s['http://plds.chengji-inc.com/test2.php']);
exit;

$a = '+Tm7peT3SuQ0p0RLYoeZhYniyVcQ86dXCwAF1KcXmxLQL54wPLts1S8nn1zJnYIiSluYUPSIjFfimUUEiijp3GyJ5pVMIDiMqCFni2DeJXwrr3A9C1cHAs04OsQZ9rIAeeeagqdWoMCUAXNXOdmRbnxnLEW9PAiu1gYC/o9Pk1E71b46muqm9wPFe/LVzlDAzZF0eP89K1fB6uOEy099B0kVKQ9uVrCCIkv9UWMy0gFLWBi+GRdynFVMN610lG6PwbXhgRWVKsATomf4UmfLg/ACRGYAsXdvgRTpfreGAGtBH+ZCsggavqMbXvR4OMH0xIisBGxIUsyq5Mbkf4Q7RVrgP9+mFL740En7p8FggqGWEA36zF9QL6SBzhlmDU094DLj9nlyVDAEHtKOc1pKB+GufNSKCSlYZslGPF7nlDuKrcHTeulAlJBSDoRc8vOdnrlhoy+Qb7zeaSPxjmVAAhOkgNZ7bttxnp3OFXiK+6iAM3MvkVOoPjf/6SMePR4V';
zc::dump(strlen($a));exit;
$encryptString = CommonTool::encrypt('15705963332', 116272);
$fxz = CommonTool::decrypt($encryptString, 1162723);
zc::dump($fxz);
exit;
$reason = '商品广告词包含敏感词:["亲","亲"]';

$reason = str_replace('"', '', $reason);
zc::dump($reason);
	$filterWordArray = preg_match('/敏感词:\[(.*)\]/', $reason, $matchFilterWord);
	$filterWordArray = explode(',', $matchFilterWord[1]);
	array_map('trim', $filterWordArray);
	zc::dump($filterWordArray);exit;

$goodsId = 10091050534;
$goodsId = (int)$goodsId;
zc::dump(gettype($goodsId));


$goodsList[$goodsId] = array('new' => '3');
foreach ($goodsList as &$goods) {
	list($goods['new1'], $goods['new2']) = array('fxz1', 'fxz2');
}
zc::dump($goodsList);exit;


$a = 'value[        
 225128 
 225129 
225130 225131
225132 225133 225134 225135
225136 225137
225138 225139
225140 225141
225142 225143
225144 225145 225146 225147
225148 225149
225150 225151 225152










225153 225154

225155 225156 225157 225158 225162 225166 225170 225174 225178 225182 225183 225184 225185 225186 225190 225191 225192 225193 225194 225195 225196 225197 225198 225199 225200 225201 225202 225203 225204 225205 225206 225207 225208 225209 225210 225211 225212 225213 225214 225215 225216 225217 225218 225219 225220 225221 225222 225223 225224 225225 225226 225227 225228 225229 225230 225231 225232 225233 225234 225235 225236 225237 225238 225239 225240 225241 225242 225243 225244 225245 225246 225247 225251 225252 225253 225254 225255 225256 225257 225258 225259 225260 225261 225262 225263 225264 225265 225266 225267 225268 225269 225270 225271 225272 225273 225274 225275 225276 225278 225279 225280 225282 225283 225284 225285 225286 225287 225288 225289 225290 225291 225292 225293 225294 225295
225159
225160 型号 225161
225163
225164 规格(个数) 225165
225167
225168 尺寸(长宽高)(mm) 225169
225171
225172 专柜价 225173
225175
225176 日常价
225177
225179
225180 包装体积(约) 225181
  CT026B-2 

225187
225188    225189

-
0.1m?3;
  CT015B-2
      249
 
  KT102B 
      199
 
 tm优21#                 269
tm上301餐> 椅
              < /span>

269
TM129#A餐椅



269 

【名称】餐椅
【风格】现代
【品牌】南方家居(南方家私)【公司】 225248
225249 成都南方家俱有限公司 225250
【产地】四川成都【颜色】以实物为准
【材质】

1.主面板:E1级环保中纤板,品牌油漆环保安全
2.脚:桦木实木脚;&nb sp;
3.所有板材都经过消甲醛处理,板材甲醛释放量均优于环保水平,保证了家具的环保安全和无污染;
4.高档五金配件,经久耐用

【产品包含】餐椅一把
【环保等级】国标
【品牌服务】
三年质保
【发货周期】付款后45天内发货,5-15天左右运输期
【尺寸说明】由于家具特殊性,每个成品尺寸都会有轻微差异,需以实物为准!(行业标准软体家具误差在5CM内属正常) 225277
【货物签收】各位买家:签收前务必验货查收,核对包件数量,型号,外包装是否完好。如包装损坏请打开包检查产品是否断裂、变形等严> 重情况,如果有请拒绝签收并马上拍照 联系我们,经我们核实后,在不影响正常使用情况下,我们将提供免费维修更换补件服务,受损严重如需退换货,物流费由我们承担。 225281
【运费说明】1、全场商品包物流到部分地级市物流点,客户需自己到物流点自提安装(注:包物流支持城市详情请见物流说明表格,不在表格中的城市需要客户另加部分运费)。
2、以下九省不在包物流范围内(新疆、内蒙、西藏、宁夏、青海、海南、黑龙江、吉林、辽> 宁) 省会城市按照产品总价的10%收取运费,其余城市按照产品总价的15%~30%收取运费,详情请咨询客服
【上楼费用】1、电梯公寓,不可使用电梯,参考非电梯公寓收费标准;能载物免费。
2、非电梯公寓,1-7层免上楼费,7层以上开始 收费,板式:每件10元/层,床垫:每张15元/层,沙发:每套30元/层。
3、如货物需要平移,30米内免费,30米-50米另收50元,50米-100米另收100元,100米以上请咨询客服,按实际> 情况收费。
温馨提示:配送安装费线上支付,上楼费线下支付。
【配送安装】仅购买餐椅享受部分地区包物流;和大件家具一 同购买享受600城区免费送货到家
225296 225297 225298 225299 225300 225301 225302 225303

225304 225305

225306 '; $b= ' 225113 仅购买餐椅享受部分地区包物流;和大件家具一 同购买享受600城区免费送货到家 225114 225115 225116 225117 225118 225119 225120 225121 225122 225123 225124

225125 225126

225127 '; zc::dump(sprintf('a[%s]', $a)); exit; zc::dump(strlen($b)); zc::dump(strlen($a)); zc::dump($a==$b);exit; $skuPropStr = ";蓝色;26;"; $color =26; if(strpos($skuPropStr, (string)$color) !== false){ echo "ok"; }else{ echo "error"; } exit; $log = Zc::getLog('test/move'); $log->error('hello world error'); exit; $url1 = 'https://gd1.alicdn.com/bao/uploaded/i1/1680976802/TB2vED1kpXXXXaWXpXXXXXXXXXX_!!1680976802.jpg'; $url2 = 'https://gd3.alicdn.com/bao/uploaded/i3/1680976802/TB2tfj3kpXXXXcTXXXXXXXXXXXX_!!1680976802.jpg'; $uc1 = file_get_contents($url1); $uc2 = file_get_contents($url2); Zc::dump(strlen($uc1)); Zc::dump(strlen($uc2)); Zc::dump(md5($uc1)); Zc::dump(md5($uc2)); exit; $subject = 'as12&+-*/\\_()中国屌當欬(……★\_()中国屌當欬()%……&¥#@=.!'; $filterSubject = preg_replace('/[^a-zA-Z0-9\x{4e00}-\x{9fa5}\s@#\$%&+\-\/\\\_()=.*!]/u', '', $subject); $filterSubject = $filterSubject ? $filterSubject : $subject; // 超过25个字符,京东接口报错:11000003:参数太长 $d = mb_substr($filterSubject, 0, 25, 'UTF-8'); zc::dump($d); exit; $a1 = array(8380 => 'ac', 8381 => 'dd'); $a2 = array(8380 => 'ad', 8382 => 'cc'); Zc::dump(array_intersect_key($a1, $a2)); exit; $goodsData = array('title' => 'lyx'); $goodsData += array('attributes' => '1:1', 'input_pids' => '1|2', 'input_strs' => 'abc|def'); Zc::dump($goodsData); exit; function parseSourceAttributesString($sourceAttributesString) { $sourceAttrs = array (); $sourceAttributesStringList = explode('^', $sourceAttributesString); foreach ($sourceAttributesStringList as $oneAttributeString) { list ($aid, $vid) = array_map('trim', explode(':', $oneAttributeString)); $vid = count(explode(',', $vid)) > 1 ? explode(',', $vid) : $vid; $sourceAttrs[$aid] = $vid; } return $sourceAttrs; } Zc::dump(parseSourceAttributesString('8313:58866^10033914:0,10^10033907:0,978788141120004^10033911:0,DVD2')); exit; $attrs = array('3:3'); $attrs2 = array('1:1', '2:2'); $attrs = array_merge($attrs, $attrs2); $attrs[] = '4:4'; $attrs = array_merge($attrs, array()); Zc::dump($attrs); exit; $sourceValueList = array_filter(array_map('trim', explode(' ', '防滑 耐磨 支撑 平衡 抗冲击 轻便'))); Zc::dump($sourceValueList); exit; similar_text('abc', 'abc', $percent); Zc::dump($percent); exit; $s = 'eyJqb3NfcGFyYW1ldGVycyI6eyJhcHBfa2V5IjoiNUZBOTU4QkM2OThENjgzRDZCNjVGODBGRERDRDJFNUYiLCJlbmRfZGF0ZSI6MTQ3NzIzODQwMDAwMCwiaXRlbV9jb2RlIjoiRldfR09PRFMtMjU4ODExLTEiLCJzb3VyY2UiOiJKTSIsInVzZXJfbmFtZSI6ImpkX axpOWJkei iSIsInZlcnNpb25fbm8iOjF9fQ=='; Zc::dump($s); $s = urldecode($s); Zc::dump($s); exit; Zc::dump(gethostname()); function matchKv($s, $name) { $match = array(); preg_match(sprintf('/"%s":"(.+)"/isU', $name), $s, $match); if (!empty($match[1])) { return $match[1]; } preg_match(sprintf('/"%s":(\d+)/is', $name), $s, $match); Zc::dump($match); if (!empty($match[1])) { return $match[1]; } return null; } function parseParamsByRegx($s) { $names = explode(',', 'app_key,end_date,item_code,source'); $stateInfo = array(); foreach ($names as $name) { $value = matchKv($s, $name); if (!empty($value)) { $stateInfo[$name] = $value; } } return $stateInfo; } $s = 'eyJqb3NfcGFyYW1ldGVycyI6eyJhcHBfa2V5IjoiNUZBOTU4QkM2OThENjgzRDZCNjVGODBGRERDRDJFNUYiLCJlbmRfZGF0ZSI6MTQ3NzIzODQwMDAwMCwiaXRlbV9jb2RlIjoiRldfR09PRFMtMjU4ODExLTEiLCJzb3VyY2UiOiJKTSIsInVzZXJfbmFtZSI6ImpkX+axpOWJkei+iSIsInZlcnNpb25fbm8iOjF9fQ=='; $sn = base64_decode($s); $si = parseParamsByRegx($sn); echo $sn; Zc::dump($si); exit; $log = Zc::getLog('auth'); Zc::dump($log); $log->info('test'); exit; Zc::dump(strtotime(null)); exit; $t = date('Y-m-d H:i:s', time() - 300); Zc::dump($t); exit; $url = 'http://ytrdyf.yao.95095.com/i/asynSearch.htm?_ksTS=1451121373013_898&callback=jsonp899&mid=w-3135465167-0&wid=3135465167&path=/search.htm&&search=y&spm=a1z10.1-b.w5002-3135451677.1.ZIXacv'; $url = 'http://yearconnx.tmall.com/i/asynSearch.htm?_ksTS=1451121444478_119&callback=jsonp120&mid=w-8506310470-0&wid=8506310470&path=/search.htm&&search=y&spm=a220m.1000858.1000725.14.toENlT&rn=54f65255b4611438778ab6af307771bd&user_number_id=1591594641'; $url = 'https://shop130099248.taobao.com/i/asynSearch.htm?_ksTS=1451121516039_117&callback=jsonp118&mid=w-13040844834-0&wid=13040844834&path=/search.htm&search=y&spm=a1z10.1-c.w5002-13040856456.1.QGwMZj'; $i = preg_match('/(http|https):\/\/.+(.taobao.com|.tmall.com|.yao.95095.com)/isU', $url, $matches); Zc::dump($i); Zc::dump($matches); exit; $detailUrls = '154554545, 4545454, 54545454,'; $detailUrls = array_map(function($url){ $u = trim($url); return empty($u) ? $u : false; }, preg_split("/\\r\\n|\\r|\\n|,|,/", $detailUrls)); $detailUrls = array_map('trim', preg_split("/\\r\\n|\\r|\\n|,|,/", $detailUrls)); Zc::dump($detailUrls);