You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pdd-order-api/test2.php

524 lines
30 KiB
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
require 'vendor/autoload.php';
// 应用目录
$rootDir = dirname(__FILE__);
$appDir = 'app';
ini_set('default_charset', 'utf-8');
// 启动MVC
include $rootDir . '/zc-framework/zc.php';
Zc::init($rootDir, $appDir);
Zc::dump(gethostname());
exit;
$db = Zc::getDb();
$hostnames = array (
/*
'honor-s9',
'honor-s10',
'honor-s11',
'honor-s12',
'honor-s15',
'honor-s16',
'honor-s17',
'honor-s18',
'honor-s19',
'honor-s20',
'honor-s21',
'honor-s22',
'honor-s23',
'honor-s24',
'honor-s25',
'honor-s26',
'honor-s27',
'honor-s28',
'honor-s29',
'honor-s30',
'honor-s31',
'honor-s32',
'honor-s33',
'honor-s34',
'honor-s35',
'honor-s36',
'honor-s37',
'honor-s38',
'honor-s39',
'honor-s51',
'honor-s52',
'honor-s53',
'honor-s54',
'honor-s55',
'honor-s56',
'honor-s57',
'honor-s58',
'honor-s59',
'honor-s60',
'honor-s61',
'honor-s62',
'honor-s63',
'honor-s64',
'honor-s65',
'honor-s66',
'honor-s67',
'honor-s68',
'honor-s69',
'honor-s71',
'honor-s72',
'honor-s73',
'honor-s75',
'honor-s76',
'honor-s77',
'honor-s78',
'honor-s79',
'honor-s81',
'honor-s82',
'honor-s83',
'honor-s85',
'honor-s86',*/
'honor-s87',
'honor-s88',
'honor-s89',
'honor-s90',
'honor-s91',
'honor-s92',
'honor-s93',
'honor-s94',
'honor-s95',
'honor-s96',
'honor-s97',
'honor-s98',
'honor-s99',
'honor-s100',
'honor-s101',
'honor-s102',
'honor-s103',
'honor-s104',
'honor-s105',
'honor-s106',
'honor-s107',
'honor-s108',
'honor-s109',
'honor-s110',
'honor-s111',
'honor-s112',
'honor-s115',
'honor-s116',
'honor-s117',
'honor-s118'
);
foreach ($hostnames as $hostname) {
$r = $db->insert('timer_spec', array (
'timer_code' => 'timer/move_publish/add_goods_task',
'hostname' => $hostname,
'max_count' => 1,
'gmt_create' => ZcDbEval::now(),
'gmt_modified' => ZcDbEval::now()
));
Zc::dump($hostname . '->' . $r);
}
exit();
$a = null;
zc::dump(is_string($a));
exit;
// Zc::runMVC();
$a = null;
$b = array('a','b');
Zc::dump(array_merge($a, $b));
exit;
Zc::dump($_SERVER);
exit;
Zc::dump(Zc::C());
Zc::dump($_SERVER);
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[ <img class="desc_anchor" id="desc-module-1" src="http://img13.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" />
225128 <img src="http://img20.360buyimg.com/imgzone/jfs/t2599/239/2239024341/183791/823dbd07/575eaf71N67313856.jpg" alt="" />
225129 <br />
225130 <img src="http://img12.360buyimg.com/imgzone/jfs/t2590/243/2282204781/126074/940871eb/575eaf74N7bcfe1fe.jpg" alt="" />
225131 <br />
225132 <img src="http://img10.360buyimg.com/imgzone/jfs/t2800/273/2302374752/111924/4560dbdf/575eaf76Ncf3abaf5.jpg" alt="" />
225133 <img class="desc_anchor" id="desc-module-2" src="http://img10.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" />
225134 <img src="http://img20.360buyimg.com/imgzone/jfs/t2584/160/2284213529/211616/5ab68b38/575eaf7aN374ccc19.jpg" alt="" />
225135 <br />
225136 <img src="http://img13.360buyimg.com/imgzone/jfs/t2683/219/2255322567/138405/2e300a30/575eaf7eNa2b1b8ae.jpg" alt="" />
225137 <br />
225138 <img src="http://img14.360buyimg.com/imgzone/jfs/t2701/148/2290003642/124250/64d29551/575eaf80N6bf17f12.jpg" alt="" />
225139 <br />
225140 <img src="http://img11.360buyimg.com/imgzone/jfs/t2686/205/2308920090/101853/8851ba19/575eaf82N5f533e58.jpg" alt="" />
225141 <br />
225142 <img src="http://img13.360buyimg.com/imgzone/jfs/t2980/151/567107152/198984/aa33ab6c/575eaf86Nbe1df8cf.jpg" alt="" />
225143 <br />
225144 <img src="http://img12.360buyimg.com/imgzone/jfs/t2614/211/2250884493/123155/e4c544dd/575eaf88N14f9ee53.jpg" alt="" />
225145 <img class="desc_anchor" id="desc-module-3" src="http://img20.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" />
225146 <img src="http://img30.360buyimg.com/imgzone/jfs/t2743/295/2281487313/136642/b270eed7/575eaf8bNd93e626b.jpg" alt="" />
225147 <br />
225148 <img src="http://img11.360buyimg.com/imgzone/jfs/t2809/239/2277216597/107837/94c18615/575eaf8dN4d1426c2.jpg" alt="" />
225149 <br />
225150 <img src="http://img10.360buyimg.com/imgzone/jfs/t2983/174/534314368/91273/eb424a4c/575eaf90Nae84819f.jpg" alt="" />
225151 <img class="desc_anchor" id="desc-module-4" src="http://img20.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" />
225152 <p><img src="http://img30.360buyimg.com/imgzone/jfs/t2752/247/2289204917/161054/a950542b/575eaf92N5f4e886b.jpg" alt="" /><br /><img src="http://img20.360buyimg.com/imgzo ne/jfs/t2938/173/559002752/114581/8c5c270b/575eaf94N73868879.jpg" alt="" /><br /><img src="http://img11.360buyimg.com/imgzone/jfs/t2716/244/2274363483/148480/a8b05179/57 5eaf96N176fd9e8.jpg" alt="" /><br /><img src="http://img20.360buyimg.com/imgzone/jfs/t2689/310/2264701132/254631/57fd6072/575eaf9aN7d197a73.jpg" alt="" /><img src="http: //img12.360buyimg.com/imgzone/jfs/t2986/247/566229586/150855/145138ec/575eaf9bN2c68030c.jpg" alt="" /><br /><img src="http://img11.360buyimg.com/imgzone/jfs/t2638/209/22 67241636/121558/9e4c0ac7/575eaf9dNdd2cf24e.jpg" alt="" /><br /><img src="http://img13.360buyimg.com/imgzone/jfs/t2842/298/2261584356/86349/2916ff7d/575eaf9eN4fbb11be.jpg " alt="" /><br /><img src="http://img14.360buyimg.com/imgzone/jfs/t2653/334/2289486481/217834/f52946e1/575eafa1N87241e69.jpg" alt="" /><br /><img src="http://img12.360bu yimg.com/imgzone/jfs/t2845/318/2308876791/176104/a58f8c11/575eafa3Nb66cab39.jpg" alt="" /><br /><img src="http://img12.360buyimg.com/imgzone/jfs/t2701/196/2302119839/822 00/95942466/575eafa5Nb8b3ca99.jpg" alt="" /><br /><img src="http://img11.360buyimg.com/imgzone/jfs/t2644/211/2283268527/75386/6ea54d2e/575eafa6Na00fc33f.jpg" alt="" /><b r /><img src="http://img12.360buyimg.com/imgzone/jfs/t2980/204/550281505/199686/726c4fa8/575eafa9N58225eda.jpg" alt="" /></p>
225153 <img class="desc_anchor" id="desc-module-5" src="http://img14.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" />
225154 <p><span style="font-size: 12.0px;"><span><img alt="" src="http://img30.360buyimg.com/imgzone/jfs/t2851/151/1277762104/26881/190a29bb/5739736eN2bf91403.jpg" /></span></s pan></p>
225155 <table border="1" style="border-collapse: collapse;border-width: thin;width: 790.0px;">
225156 <tbody>
225157 <tr>
225158 <td bgcolor="#CCCCCC" width="93">
225159 <div align="center">
225160 <span style="font-size: 12.0px;"><span>型号</span></span>
225161 </div></td>
225162 <td bgcolor="#CCCCCC" width="127">
225163 <div align="center">
225164 <span style="font-size: 12.0px;"><span>规格(个数)</span></span>
225165 </div></td>
225166 <td bgcolor="#CCCCCC" width="166">
225167 <div align="center">
225168 <span style="font-size: 12.0px;"><span>尺寸长宽高mm</span></span>
225169 </div></td>
225170 <td bgcolor="#CCCCCC" width="65">
225171 <div align="center">
225172 <span style="font-size: 12.0px;"><span>专柜价</span></span>
225173 </div></td>
225174 <td bgcolor="#F0F0F0" width="43">
225175 <div align="center">
225176 <span style="color: #ff0000;"><span style="font-size: 12.0px;"><span>日常价<br /></span></span></span>
225177 </div></td>
225178 <td bgcolor="#CCCCCC" width="148">
225179 <div align="center">
225180 <span style="font-size: 12.0px;"><span>包装体积(约)</span></span>
225181 </div></td>
225182 </tr>
225183 <tr>
225184 <td bgcolor="#CCCCCC"><span style="font-size: 12.0px;"><span>&nbsp; CT026B-2&nbsp;<br /></span></span></td>
225185 <td style="padding: 0.0px;"><span style="font-size: 12.0px;"><span><br /></span></span></td>
225186 <td>
225187 <div align="center">
225188 <span style="font-size: 12.0px;"><span>&nbsp;&nbsp;</span></span>
225189 </div></td>
225190 <td><span style="font-size: 12.0px;"><span><br /></span></span></td>
225191 <td style="text-align: center;"><span style="color: #ff0000;"><span style="font-size: 12.0px;"><span>-<br /></span></span></span></td>
225192 <td style="text-align: center;"><span style="font-size: 12.0px;"><span>0.1m?3;</span></span></td>
225193 </tr>
225194 <tr>
225195 <td bgcolor="#CCCCCC"><span style="font-size: 12.0px;"><span>&nbsp; CT015B-2<br /></span></span></td>
225196 <td style="padding: 0.0px;">&nbsp; </td>
225197 <td>&nbsp; </td>
225198 <td>&nbsp; </td>
225199 <td style="text-align: center;"><span style="color: #ff0000;"><span style="font-size: 12.0px;"><span>249<br /></span></span></span></td>
225200 <td style="text-align: center;">&nbsp; </td>
225201 </tr>
225202 <tr>
225203 <td bgcolor="#CCCCCC"><span style="font-size: 12.0px;"><span>&nbsp; KT102B&nbsp;<br /></span></span></td>
225204 <td style="padding: 0.0px;">&nbsp; </td>
225205 <td>&nbsp; </td>
225206 <td>&nbsp; </td>
225207 <td style="text-align: center;"><span style="color: #ff0000;"><span style="font-size: 12.0px;"><span>199<br /></span></span></span></td>
225208 <td style="text-align: center;">&nbsp; </td>
225209 </tr>
225210 <tr>
225211 <td bgcolor="#CCCCCC"><span style="color: #404040;font-family: tahoma arial;font-size: 12.0px;line-height: 15.6px;">&nbsp;tm优21#</span></td>
225212 <td style="padding: 0.0px;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </td>
225213 <td>&nbsp; </td>
225214 <td>&nbsp; </td>
225215 <td style="text-align: center;"><span style="font-size: 12.0px;"><span><span style="color: #ff0000;">269</span></span></span></td>
225216 <td style="text-align: center;"><span style="font-size: 12.0px;"><span><span style="color: #ff0000;"><br /></span></span></span></td>
225217 </tr>
225218 <tr>
225219 <td bgcolor="#CCCCCC"><span style="font-size: 12.0px;"><span><span style="color: #ff0000;"><span style="color: #000000;"><span style="line-height: 15.6px;">tm上301餐> 椅</span></span><br /></span></span></span></td>
225220 <td style="padding: 0.0px;"><span style="font-size: 12.0px;"><span><span style="color: #ff0000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></span>< /span></td>
225221 <td><span style="font-size: 12.0px;"><span><span style="color: #ff0000;"><br /></span></span></span></td>
225222 <td><span style="font-size: 12.0px;"><span><span style="color: #ff0000;"><br /></span></span></span></td>
225223 <td style="text-align: center;"><span style="font-size: 12.0px;"><span><span style="color: #ff0000;">269</span></span></span></td>
225224 <td style="text-align: center;"><span style="font-size: 12.0px;"><span><br /></span></span></td>
225225 </tr>
225226 <tr>
225227 <td bgcolor="#CCCCCC"><span style="font-size: 12.0px;"><span><span style="color: #030303;line-height: 18.0px;text-align: center;">TM129#A</span><span style="color: #0 30303;line-height: 18.0px;text-align: center;">餐椅</span><br /></span></span></td>
225228 <td style="padding: 0.0px;"><span style="font-size: 12.0px;"><span><br /></span></span></td>
225229 <td><span style="font-size: 12.0px;"><span><br /></span></span></td>
225230 <td><span style="font-size: 12.0px;"><span><br /></span></span></td>
225231 <td style="text-align: center;"><span style="color: #ff0000;"><span style="font-size: 12.0px;"><span>269</span></span></span></td>
225232 <td style="text-align: center;">&nbsp; </td>
225233 </tr>
225234 <tr>
225235 <td colspan="6"><span style="font-size: 12.0px;"><span><br /></span></span></td>
225236 </tr>
225237 <tr>
225238 <td bgcolor="#CCCCCC"><span style="font-size: 12.0px;"><span>【名称】</span></span></td>
225239 <td colspan="2"><span style="font-size: 12.0px;"><span>餐椅<br /></span></span></td>
225240 <td bgcolor="#CCCCCC" colspan="2"><span style="font-size: 12.0px;"><span>【风格】</span></span></td>
225241 <td><span style="font-size: 12.0px;"><span>现代<br /></span></span></td>
225242 </tr>
225243 <tr>
225244 <td bgcolor="#CCCCCC"><span style="font-size: 12.0px;"><span>【品牌】</span></span></td>
225245 <td colspan="2"><span style="font-size: 12.0px;"><span>南方家居(南方家私)</span></span></td>
225246 <td bgcolor="#CCCCCC" colspan="2"><span style="font-size: 12.0px;"><span>【公司】</span></span></td>
225247 <td>
225248 <div>
225249 <span style="font-size: 12.0px;"><span>成都南方家俱有限公司</span></span>
225250 </div></td>
225251 </tr>
225252 <tr>
225253 <td bgcolor="#CCCCCC"><span style="font-size: 12.0px;"><span>【产地】</span></span></td>
225254 <td colspan="2"><span style="font-size: 12.0px;"><span>四川成都</span></span></td>
225255 <td bgcolor="#CCCCCC" colspan="2"><span style="font-size: 12.0px;"><span>【颜色】</span></span></td>
225256 <td><span style="font-size: 12.0px;"><span>以实物为准</span></span></td>
225257 </tr>
225258 <tr>
225259 <td bgcolor="#CCCCCC"><span style="font-size: 12.0px;"><span>【材质】</span></span></td>
225260 <td colspan="2"><p><span style="font-size: 12.0px;"><span><span style="font-size: 12.0px;"><span>1.主面板E1级环保中纤板品牌油漆环保安全<br /> 2.脚:桦木实木脚;&nb sp;<br /> 3.所有板材都经过消甲醛处理,板材甲醛释放量均优于环保水平,保证了家具的环保安全和无污染;<br /> 4.高档五金配件,经久耐用</span></span></span></span></p></td>
225261 <td bgcolor="#CCCCCC" colspan="2"><span style="font-size: 12.0px;"><span>【产品包含】</span></span></td>
225262 <td><span style="font-size: 12.0px;"><span>餐椅一把<br /></span></span></td>
225263 </tr>
225264 <tr>
225265 <td bgcolor="#CCCCCC" height="48"><span style="font-size: 12.0px;"><span>【环保等级】</span></span></td>
225266 <td colspan="2"><span style="font-size: 12.0px;"><span>国标<br /></span></span></td>
225267 <td bgcolor="#CCCCCC" colspan="2"><span style="font-size: 12.0px;"><span>【品牌服务】<br /></span></span></td>
225268 <td><span style="font-size: 12.0px;"><span>三年质保</span></span></td>
225269 </tr>
225270 <tr>
225271 <td bgcolor="#CCCCCC"><span style="font-size: 12.0px;"><span><span style="color: #ff0000;">【发货周期】</span></span></span></td>
225272 <td colspan="5"><span style="font-size: 12.0px;"><span><span style="color: #ff0000;">付款后45天内发货5-15天左右运输期</span></span></span></td>
225273 </tr>
225274 <tr>
225275 <td bgcolor="#CCCCCC" height="35"><span style="font-size: 12.0px;"><span>【尺寸说明】</span></span></td>
225276 <td colspan="5"><span style="font-size: 12.0px;"><span>由于家具特殊性每个成品尺寸都会有轻微差异需以实物为准行业标准软体家具误差在5CM内属正常</span></span></ td>
225277 </tr>
225278 <tr>
225279 <td bgcolor="#CCCCCC" height="48"><span style="font-size: 12.0px;"><span>【货物签收】</span></span></td>
225280 <td colspan="5"><span style="font-size: 12.0px;"><span>各位买家:签收前务必验货查收,核对包件数量,型号,外包装是否完好。如包装损坏请打开包检查产品是否断裂、变形等严> 重情况,如果有请拒绝签收并马上拍照 联系我们,经我们核实后,在不影响正常使用情况下,我们将提供免费维修更换补件服务,受损严重如需退换货,物流费由我们承担。</span></span></ td>
225281 </tr>
225282 <tr>
225283 <td bgcolor="#CCCCCC" height="48"><span style="font-size: 12.0px;"><span>【运费说明】</span></span></td>
225284 <td colspan="5"><span style="font-size: 12.0px;"><span>1、全场商品包物流到<a href="http://mall.jd.com/view_page-10293433.html" target="_blank"><span style="color: #ff 0000;">部分地级市物流点</span></a>,客户需自己到物流点自提安装(注:包物流支持城市详情请见物流说明表格,不在表格中的城市需要客户另加部分运费)。<br /> <a style="color: # ff0000;"><span style="color: #000000;">2、</span></a><span style="color: #ff0000;">以下九省不在包物流范围内</span>(新疆、内蒙、西藏、宁夏、青海、海南、黑龙江、吉林、辽> 宁) 省会城市按照产品总价的10%收取运费,<span style="color: #404040;">其余城市按照产品总价的15%~30%收取运费,详情请咨询客服</span></span></span> </td>
225285 </tr>
225286 <tr>
225287 <td bgcolor="#CCCCCC" height="82"><span style="font-size: 12.0px;"><span>【上楼费用】</span></span></td>
225288 <td colspan="5"><span style="font-size: 12.0px;"><span>1、电梯公寓不可使用电梯参考非电梯公寓收费标准能载物免费。<br /> 2、非电梯公寓1-7层免上楼费7层以上开始
收费板式每件10元/层床垫每张15元/层沙发每套30元/层。<br /> 3、如货物需要平移30米内免费30米-50米另收50元50米-100米另收100元100米以上请咨询客服按实际> 情况收费。<br /> 温馨提示:配送安装费线上支付,上楼费线下支付。</span></span></td>
225289 </tr>
225290 <tr>
225291 <td bgcolor="#CCCCCC" height="35"><span style="font-size: 12.0px;"><span>【配送安装】</span></span></td>
225292 <td colspan="5"><span style="font-size: 12.0px;"><span><span style="font-size: 12.0px;"><span><span style="color: #ff0000;">仅购买餐椅享受部分地区包物流;和大件家具一
同购买享受600城区免费送货到家</span></span></span></span></span></td>
225293 </tr>
225294 </tbody>
225295 </table>
225296 <img class="desc_anchor" id="desc-module-6" src="http://img14.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" />
225297 <img alt="" src="http://img11.360buyimg.com/imgzone/jfs/t2974/177/552676415/82293/fa873b2b/575eafabN63386438.jpg" />
225298 <img alt="" src="http://img11.360buyimg.com/imgzone/jfs/t2923/251/524258391/40998/23caf9f/575eafadN1d3ce65f.jpg" />
225299 <img class="desc_anchor" id="desc-module-7" src="http://img13.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" />
225300 <img alt="" src="http://img12.360buyimg.com/imgzone/jfs/t2740/305/2294341569/175361/2c5c0821/575eafafN9687ef5d.jpg" />
225301 <img alt="" src="http://img11.360buyimg.com/imgzone/jfs/t2716/275/2272557944/107978/46b5fc3d/575eafb2Neba5395a.jpg" />
225302 <img class="desc_anchor" id="desc-module-8" src="http://img11.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" />
225303 <p><img class="desc_anchor" id="desc-module-7" src="http://img20.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" /><img src="http ://img12.360buyimg.com/imgzone/jfs/t2602/116/1264783103/126852/5b20fae1/57397375Nf1a8bddd.jpg" alt="" /><img src="http://img13.360buyimg.com/imgzone/jfs/t2728/125/129648 5164/138642/78ca697b/57397376Ne23d96a3.jpg" alt="" /><img class="desc_anchor" id="desc-module-8" src="http://img12.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acce ab1/57397357Ne112faa7.gif" alt="" /><img src="http://img11.360buyimg.com/imgzone/jfs/t2770/158/1312486383/422996/4b7d5381/5739737aNac413655.jpg" alt="" border="0" usemap ="#MapAA" /><map name="MapAA"><area shape="rect" coords="533,138,688,163" href="http://mall.jd.com/view_page-10293433.html" target="_blank"></area><area shape="rect" coo rds="394,361,786,411" href="http://mall.jd.com/view_page-10293433.html" target="_blank"></area></map><img src="http://img10.360buyimg.com/imgzone/jfs/t2839/26/3448655821 /539219/e08bf7a5/578c8ee6N4161608d.jpg" alt="" /><img class="desc_anchor" id="desc-module-9" src="http://img13.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/ 57397357Ne112faa7.gif" alt="" /><img src="http://img12.360buyimg.com/imgzone/jfs/t2809/169/1259767732/251850/b382ef4d/5739737cN02b7f94e.jpg" alt="" /><img src="http://im g30.360buyimg.com/imgzone/jfs/t2806/175/1271316547/117047/169af810/5739737eN6b542643.jpg" alt="" /><img src="http://img10.360buyimg.com/imgzone/jfs/t2779/160/1305087468/ 235602/f2c92f52/57397380N7d51d1a0.jpg" alt="" /><img src="http://img30.360buyimg.com/imgzone/jfs/t2695/176/1284202275/185663/30dfaec9/57397382N183664c0.jpg" alt="" /> <i mg src="http://img14.360buyimg.com/imgzone/jfs/t2890/192/1277501454/203370/67c4449e/57397384N154e7b00.jpg" alt="" /></p>
225304 <img class="desc_anchor" id="desc-module-10" src="http://img13.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" />
225305 <p><img alt="" src="http://img14.360buyimg.com/imgzone/jfs/t2641/180/1243137874/291910/d8d3ad5c/57397387N2481d304.jpg" /></p>
225306 <img class="desc_anchor" id="desc-module-11" src="http://img30.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" />';
$b= ' 225113 <td colspan="5"><span style="font-size: 12.0px;"><span><span style="font-size: 12.0px;"><span><span style="color: #ff0000;">仅购买餐椅享受部分地区包物流;和大件家具一
同购买享受600城区免费送货到家</span></span></span></span></span></td>
225114 </tr>
225115 </tbody>
225116 </table>
225117 <img class="desc_anchor" id="desc-module-6" src="http://img14.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" />
225118 <img alt="" src="http://img11.360buyimg.com/imgzone/jfs/t2974/177/552676415/82293/fa873b2b/575eafabN63386438.jpg" />
225119 <img alt="" src="http://img11.360buyimg.com/imgzone/jfs/t2923/251/524258391/40998/23caf9f/575eafadN1d3ce65f.jpg" />
225120 <img class="desc_anchor" id="desc-module-7" src="http://img13.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" />
225121 <img alt="" src="http://img12.360buyimg.com/imgzone/jfs/t2740/305/2294341569/175361/2c5c0821/575eafafN9687ef5d.jpg" />
225122 <img alt="" src="http://img11.360buyimg.com/imgzone/jfs/t2716/275/2272557944/107978/46b5fc3d/575eafb2Neba5395a.jpg" />
225123 <img class="desc_anchor" id="desc-module-8" src="http://img11.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" />
225124 <p><img class="desc_anchor" id="desc-module-7" src="http://img20.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" /><img src="http ://img12.360buyimg.com/imgzone/jfs/t2602/116/1264783103/126852/5b20fae1/57397375Nf1a8bddd.jpg" alt="" /><img src="http://img13.360buyimg.com/imgzone/jfs/t2728/125/129648 5164/138642/78ca697b/57397376Ne23d96a3.jpg" alt="" /><img class="desc_anchor" id="desc-module-8" src="http://img12.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acce ab1/57397357Ne112faa7.gif" alt="" /><img src="http://img11.360buyimg.com/imgzone/jfs/t2770/158/1312486383/422996/4b7d5381/5739737aNac413655.jpg" alt="" border="0" usemap ="#MapAA" /><map name="MapAA"><area shape="rect" coords="533,138,688,163" href="http://mall.jd.com/view_page-10293433.html" target="_blank"></area><area shape="rect" coo rds="394,361,786,411" href="http://mall.jd.com/view_page-10293433.html" target="_blank"></area></map><img src="http://img10.360buyimg.com/imgzone/jfs/t2839/26/3448655821 /539219/e08bf7a5/578c8ee6N4161608d.jpg" alt="" /><img class="desc_anchor" id="desc-module-9" src="http://img13.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/ 57397357Ne112faa7.gif" alt="" /><img src="http://img12.360buyimg.com/imgzone/jfs/t2809/169/1259767732/251850/b382ef4d/5739737cN02b7f94e.jpg" alt="" /><img src="http://im g30.360buyimg.com/imgzone/jfs/t2806/175/1271316547/117047/169af810/5739737eN6b542643.jpg" alt="" /><img src="http://img10.360buyimg.com/imgzone/jfs/t2779/160/1305087468/ 235602/f2c92f52/57397380N7d51d1a0.jpg" alt="" /><img src="http://img30.360buyimg.com/imgzone/jfs/t2695/176/1284202275/185663/30dfaec9/57397382N183664c0.jpg" alt="" /> <i mg src="http://img14.360buyimg.com/imgzone/jfs/t2890/192/1277501454/203370/67c4449e/57397384N154e7b00.jpg" alt="" /></p>
225125 <img class="desc_anchor" id="desc-module-10" src="http://img13.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" />
225126 <p><img alt="" src="http://img14.360buyimg.com/imgzone/jfs/t2641/180/1243137874/291910/d8d3ad5c/57397387N2481d304.jpg" /></p>
225127 <img class="desc_anchor" id="desc-module-11" src="http://img30.360buyimg.com/imgzone/jfs/t2866/68/1278134258/43/9acceab1/57397357Ne112faa7.gif" alt="" />';
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);