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[
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
225155
225159
225160 型号
225161 |
225162
225163
225164 规格(个数)
225165 |
225166
225167
225168 尺寸(长宽高)(mm)
225169 |
225170
225171
225172 专柜价
225173 |
225174
225175
225176 日常价 225177 |
225178
225179
225180 包装体积(约)
225181 |
225182
CT026B-2 |
225185
225187
225188
225189 |
225190 - |
225192 0.1m?3; | 225193||
CT015B-2 |
225196 225197 | 225198 | 225199 | 249 |
225200 225201 |
KT102B |
225204 225205 | 225206 | 225207 | 199 |
225208 225209 |
tm优21# | 225212225213 | 225214 | 225215 | 269 | 225216|
tm上301餐> 椅 |
225220 < /span> | 225221269 | 225224|||
TM129#A餐椅 |
225228 269 | 225232225233 | |||
【名称】 | 225239餐椅 |
225240 【风格】 | 225241现代 |
225242 ||
【品牌】 | 225245南方家居(南方家私) | 225246【公司】 | 225247
225248
225249 成都南方家俱有限公司
225250 |
225251 ||
【产地】 | 225254四川成都 | 225255【颜色】 | 225256以实物为准 | 225257||
【材质】 | 2252601.主面板:E1级环保中纤板,品牌油漆环保安全 |
225261 【产品包含】 | 225262餐椅一把 |
225263 ||
【环保等级】 | 225266国标 |
225267 【品牌服务】 |
225268 三年质保 | 225269||
【发货周期】 | 225272付款后45天内发货,5-15天左右运输期 | 225273||||
【尺寸说明】 | 225276由于家具特殊性,每个成品尺寸都会有轻微差异,需以实物为准!(行业标准软体家具误差在5CM内属正常) td> 225277 | ||||
【货物签收】 | 225280各位买家:签收前务必验货查收,核对包件数量,型号,外包装是否完好。如包装损坏请打开包检查产品是否断裂、变形等严> 重情况,如果有请拒绝签收并马上拍照 联系我们,经我们核实后,在不影响正常使用情况下,我们将提供免费维修更换补件服务,受损严重如需退换货,物流费由我们承担。 td> 225281 | ||||
【运费说明】 | 2252841、全场商品包物流到部分地级市物流点,客户需自己到物流点自提安装(注:包物流支持城市详情请见物流说明表格,不在表格中的城市需要客户另加部分运费)。 2、以下九省不在包物流范围内(新疆、内蒙、西藏、宁夏、青海、海南、黑龙江、吉林、辽> 宁) 省会城市按照产品总价的10%收取运费,其余城市按照产品总价的15%~30%收取运费,详情请咨询客服 |
225285 ||||
【上楼费用】 | 2252881、电梯公寓,不可使用电梯,参考非电梯公寓收费标准;能载物免费。 2、非电梯公寓,1-7层免上楼费,7层以上开始 收费,板式:每件10元/层,床垫:每张15元/层,沙发:每套30元/层。 3、如货物需要平移,30米内免费,30米-50米另收50元,50米-100米另收100元,100米以上请咨询客服,按实际> 情况收费。 温馨提示:配送安装费线上支付,上楼费线下支付。 |
225289 ||||
【配送安装】 | 225292仅购买餐椅享受部分地区包物流;和大件家具一 同购买享受600城区免费送货到家 | 225293
225304 225305 225306 '; $b= ' 225113
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);