


PHP query express delivery (STO, EMS, SF, YTO, ZTO, Yunda, Tiantian, Huitong, Quanfeng, Deppon, Home Delivery) by tracking number_PHP Tutorial
PHP query express delivery (STO, EMS, SF Express, YTO, ZTO, Yunda, Tiantian, Huitong, Quanfeng, Debon, Home Delivery)
<!--?php header('content-type:text/html;charset=utf-8'); /** * @param $url String * @param array $post * @param array $options * @return mixed at most json */ function curl_get($url, array $post = NULL, array $options = array()) { $defaults = array( CURLOPT_HEADER =--> 0, CURLOPT_URL => $url, CURLOPT_FRESH_CONNECT => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_FORBID_REUSE => 1, CURLOPT_TIMEOUT => 4, CURLOPT_POSTFIELDS => http_build_query($post) ); $ch = curl_init(); curl_setopt_array($ch, ($options + $defaults)); if( ! $result = curl_exec($ch)) { trigger_error(curl_error($ch)); } curl_close($ch); return $result; } //正确的返回格式 JSON /** * {"message":"ok","state":"3″,"data":[{"context":"已签收,签收人是【本人】", * "time":"2013-12-15 11:02:26","ftime":"2013-12-15 11:02:26"},{"context":" * 【湖南长沙雨花分公司】的派件员【林大自取分部82177562 电话(82171562)】正在派件", * "time":"2013-12-14 21:43:38","ftime":"2013-12-14 21:43:38"},{"context": * "快件已到达【湖南长沙雨花分公司】 扫描员是【汤建敏】上一站是【】","time":"2013-12-14 * 17:19:52","ftime":"2013-12-14 17:19:52"},{"context":"由【湖南长沙航空部】发往 * 【湖南长沙雨花分公司】","time":"2013-12-14 16:26:36","ftime":"2013-12-14 16:26:36"} * ,{"context":"【浙江萧山公司】正在进行【装袋】扫描","time":"2013-12-12 18:59:17", * "ftime":"2013-12-12 18:59:17"},{"context":"由【浙江萧山公司】发往【湖南长沙中转部】" * ,"time":"2013-12-12 18:59:17","ftime":"2013-12-12 18:59:17"},{"context":"【浙江萧山公司】 * 的收件员【公司汉帛 】已收件","time":"2013-12-12 18:20:47","ftime":"2013-12-12 18:20:47"}, * {"context":"【浙江萧山公司】的收件员【公司汉帛 】已收件","time":"2013-12-12 * 14:56:21","ftime":"2013-12-12 14:56:21"}],"status":"200″,"com":"shentong","nu": * "768064369802″,"condition":"F00″,"ischeck":"1″} */ //正确放回的格式 JSON /** * {"message":"ok","state":"3″, * "data":[{"context":"微山县付村邮电支局:投递并签收 * 投递结果:他人签收代收","time":"2013-12-17 15:42:00", * "ftime":"2013-12-17 15:42:00"},{"context":"微山县付村邮电支局:投递并签收", * "time":"2013-12-17 09:47:00","ftime":"2013-12-17 09:47:00"} * ,{"context":"微山县邮政局速递公司:离开处理中心,发往微山县付村邮电支局", * "time":"2013-12-16 18:38:56","ftime":"2013-12-16 18:38:56"}, * {"context":"微山县邮政局速递公司:到达处理中心,来自金华市","time":" * 2013-12-16 17:27:18","ftime":"2013-12-16 17:27:18"},{"context": * "金华市:离开处理中心,发往枣庄市","time":"2013-12-14 23:57:43","ftime": * "2013-12-14 23:57:43"},{"context":"金华市:到达处理中心,来自义乌市", * "time":"2013-12-14 22:51:02","ftime":"2013-12-14 22:51:02"}, * {"context":"义乌市义乌市电子商务分公司:收寄","time":"2013-12-14 15:00:00", * "ftime":"2013-12-14 15:00:00"}],"status":"200″,"com":"ems","nu":"5000655082802″, * "condition":"F00″,"ischeck":"1″} */ //错误的格式 JSON /** * {"status":"201″,"message":"快递公司参数异常:单号不存在或者已经过期"} */ /** * @param string $postid 快递单号 * @param string $type 快递类型 * shentong —> 申通 * ems —> EMS * shunfeng –> 顺丰 * yuantong –> 圆通 * zhongtong –> 中通 * yunda –> 韵达 * tiantian —> 天天快递 * huitongkuaidi –> 汇通快递 * quanfengkuaidi –> 全峰快递 * debangwuliu –> 德邦物流 * zhaijisong –> 宅急送 * @return mixed json格式 */ function Dquery($postid = '268323324324' , $type = 'shentong') { $post_data = array ( "type" => $type, "postid" => $postid , "id" => "1", "valicode" => "", "temp" => '0.7771608149632812' ) ; $url ='http://www.kuaidi100.com/query'; return curl_get($url,$post_data); } /** * 申通快递 * @param string $postid String 快递单号 * @return mixed at most json */ function shentong($postid = '229055602837') { return Dquery($postid,'shentong'); } /** * EMS * @param string $postid 快递单号 * @return mixed JSON */ function EMS($postid = '5000655082802') { return Dquery($postid,'ems'); } /** * 顺丰快递 * @param string $postid 快递单号 * @return mixed JSON */ function shunfeng($postid = '370270606236') { return Dquery($postid,'shunfeng'); } /** * 圆通快递 * @param string $postid 快递单号 * @return mixed JSON */ function yuantong($postid = '9149223354') { return Dquery($postid,'yuantong'); } /** * 中通快递 * @param string $postid 快递单号 * @return mixed JSON */ function zhongtong($postid = '778179380478') { return Dquery($postid,'zhongtong'); } /** * 韵达快递 * @param string $postid 快递单号 * @return mixed JSON */ function yunda($postid = '1201030121554') { return Dquery($postid,'yunda'); } /** * 天天快递 * @param string $postid 快递单号 * @return mixed JSON */ function tiantian($postid = '580054419316') { return Dquery($postid,'tiantian'); } /** * 汇通快递 * @param string $postid 快递单号 * @return mixed JSON */ function huitongkuaidi($postid='210322948150') { return Dquery($postid,'huitongkuaidi'); } /** * 全峰快递 * @param string $postid 快递单号 * @return mixed JSON */ function quanfengkuaidi($postid='340003662547') { return Dquery($postid,'quanfengkuaidi'); } /** * 德邦物流 * @param string $postid 快递单号 * @return mixed JSON */ function debangwuliu($postid='16312048') { return Dquery($postid,'debangwuliu'); } /** * 宅急送 * @param string $postid 快递单号 * @return mixed JSON */ function chaijisong($postid = '3332776112') { return Dquery($postid,'zhaijisong'); } //Debug 这里是调用时的 debug,最好再加个订单号。 //放回格式都是json喔。。 记得解析 print_r(json_decode(shentong())); //echo EMS(); //echo shunfeng(); //echo yuantong(); //echo zhongtong(); //echo yunda(); //echo tiantian(); //echo huitongkuaidi(); //echo quanfengkuaidi(); //echo debangwuliu(); ?>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

According to news from this site on November 21, SF Express has launched the "Late Arrivals Will Compensate" value-added service during the peak season, mainly for sellers who use Amazon's online "Buy Delivery" service. Use SF Express International e-commerce during the event from November 15 to December 31. Special Delivery - Priority CD or International E-commerce Special Delivery - CD products can enjoy a 10% discount on shipping costs when shipped from China to the United States, and are promised to be delivered within 10 working days and 13 working days respectively. Late arrivals will be compensated. The freight will be compensated proportionally, and the maximum compensation amount for a single ticket is RMB 300. We have noticed that express delivery cities include Shenzhen, Foshan, Guangzhou, Dongguan, Xiamen, Fuzhou, Quanzhou, Hangzhou, Shanghai, Suzhou, Hefei, Putian, Xinxiang, Nanjing, and Nanchang International E-Commerce Express-CD (E-CommerceEx

News from this site on July 20. Yesterday, many domestic express delivery companies announced their June operating briefings. SF Express, STO, YTO, and Yunda all achieved revenue increases. This site summarizes as follows: SF Holding: The company’s express logistics in June 2024 The total revenue from business, supply chain and international business was 23.145 billion yuan, a year-on-year increase of 6.11%. Among them, express logistics business revenue was 17.473 billion yuan, a year-on-year increase of 4.60%, and business volume increased by 8.95% year-on-year; supply chain and international business revenue was 5.672 billion yuan, a year-on-year increase of 11.04%. YTO Express: Revenue from express delivery products in June 2024 was 4.963 billion yuan, a year-on-year increase of 16.88%; business completion volume was 2.202 billion yuan, a year-on-year increase of 22.85%; express delivery product single-ticket revenue was 2

According to news from this website on August 8, at noon today, the topic #Master’s Graduation Certificate Was Torn by SF Express # topped the hot search list on Weibo. In response, SF Express Group responded to Sino-Singapore Jingwei. SF Express stated that it noticed complaints from customers in Jiangsu that graduation certificates and other items were torn. After internal investigation, it was confirmed that the express package accidentally fell into the gap of the belt conveyor during sorting at the Zhenjiang transit yard. Although the staff took immediate emergency measures and took out the express package, the items in the package were still damaged due to the crushing of the machine. At present, SF Express has apologized to customers many times, and after proper negotiation, it has reached an agreement on a claim settlement plan. Fenye’s website inquired and learned that according to Article 38 of the “Regulations on the Administration of Students in Ordinary Colleges and Universities”, if academic certificates and degree certificates are lost or damaged, the school will verify them upon my application.

Recently, the northwest container shipping project warehouse jointly operated by SF Express and Kuaishou was officially opened in Sanyuan County, Shaanxi Province. This milestone means that SF Express has achieved an important improvement in its logistics network in the northwest region. After the business is launched, Xinjiang netizens who shop in stores with "Northwest Consolidation" on the Kuaishou platform will enjoy free shipping. Xinjiang netizens can buy the same products at more favorable prices. In the later stage of the project, more northwest cities will be covered, allowing More "non-free shipping areas" enjoy free shipping services. According to reports, the opening of SF Express’s Kuaishou northwest container shipping project marks the official start of the operation of Xinjiang transshipment warehouses, and also marks the beginning of a new journey of a new smart logistics model in the northwest region. This website has noticed that due to geographical location, netizens in Xinjiang could enjoy fewer services before. However, this situation has changed recently.

According to news from this site on April 15, SF Express has recently officially announced the launch of a new service - luxury goods delivery, providing exclusive delivery solutions for high-end luxury brands such as LV, GUCCI, DIOR, FENDI, etc. This service has been launched simultaneously in Beijing, Shanghai, Chengdu, Hangzhou and other cities to meet the growing demand for luxury goods consumption in these regions. It is reported that this service is equipped with a team of senior high-value knights who have been strictly trained. Special personnel are assigned to orders to ensure that they are picked up, and the entire delivery process is monitored and supervised by dedicated personnel. During the delivery process, the knights dress neatly, carry luxury bags and carry them with ease throughout the process. Handle it with care, and pay special attention to avoiding road bumps while riding; products must be signed in person, and if you cannot be contacted, return to the merchant along the same route. In addition, SF Express also provides 1

SF Express Group issued an announcement on November 24, announcing that recently, financial accounts such as "Shijiawen", "No.1 Chief Officer", and "Midnight Finance" have issued letters of public apology and compensation to SF Express since April 19, 2022. Since then, the above three self-media accounts have been publishing false and inaccurate articles on multiple Internet platforms with a high degree of consistency to maliciously fabricate and smear SF Express. Due to inaccurate words, misuse of causal relationships, and distortion of quoted events and data, they have seriously violated the law. SF Express’s reputation. On February 24, 2023, the above-mentioned reputation dispute case was heard. The Shenzhen Baoan District People’s Court determined that the three self-media accounts involved in this case were owned by Fuzhou Daozhong Culture Media Co., Ltd., and the defendant’s behavior constituted a violation of SF Express Infringement of the right of reputation shall be borne

According to news from this website on April 19, today, many domestic express delivery companies announced their March operating briefings. SF Express, STO, YTO, and Yunda all achieved revenue increases. The summary of this site is as follows: SF Holding: The company’s express logistics business revenue in March was 16.18 billion yuan, a year-on-year increase of 3.35%. The company's total revenue from express logistics business, supply chain and international business in March was 21.582 billion yuan, a year-on-year increase of 4.69%, excluding Fengwang, a year-on-year increase of 5.99%. STO Express: In March, express delivery service business revenue was 3.652 billion yuan, a year-on-year increase of 14.94%; the completed business volume was 1.737 billion tickets, a year-on-year increase of 31.51%; express delivery service single ticket revenue was 2.1 yuan, a year-on-year decrease of 12.86%. YTO Express: Express product revenue in March was 51.2

According to news from this site on April 8, according to the China Post Express Newspaper, on April 8, the State Post Bureau held a regular press conference for the second quarter of 2024 to report the results of the 2023 express service satisfaction survey and time limit test. Lin Hu, Director of the Market Supervision Department of the State Post Bureau, said that in 2023, express delivery service satisfaction and time limit punctuality have not only effectively recovered but also been greatly improved against the background of high-quality development of the industry. Among them, express delivery service public satisfaction Both the degree score and the 72-hour delivery rate hit the best levels in history. The survey shows that the public satisfaction score of express delivery services in 2023 is 84.3 points, an increase of 0.9 points from 2022. The satisfaction level of the five secondary indicators involved in evaluation has increased compared with 2022. Among them, collection, collection, investment
