From 5c5c3e4dd6bd23b895c53ec31e5ceeb518d6658c Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Fri, 17 Dec 2021 20:45:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=91=E8=B4=A7=E6=97=B6?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E7=89=A9=E6=B5=81=E8=AE=A2=E9=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Http/Controllers/ArticleController.php | 6 +- .../Api/Http/Controllers/ClickController.php | 12 +- .../Callback/Http/Controllers/Controller.php | 15 + .../Http/Controllers/Kuaidi100Controller.php | 30 + app/Endpoint/Callback/routes.php | 10 + app/Models/Article.php | 10 - app/Models/KuaidiLog.php | 11 + app/Providers/RouteServiceProvider.php | 4 + app/Services/Kuaidi100Service.php | 1484 +++++++++++++++++ config/settings.php | 20 + ..._12_17_203048_create_kuaidi_logs_table.php | 37 + 11 files changed, 1622 insertions(+), 17 deletions(-) create mode 100644 app/Endpoint/Callback/Http/Controllers/Controller.php create mode 100644 app/Endpoint/Callback/Http/Controllers/Kuaidi100Controller.php create mode 100644 app/Endpoint/Callback/routes.php create mode 100644 app/Models/KuaidiLog.php create mode 100644 app/Services/Kuaidi100Service.php create mode 100644 database/migrations/2021_12_17_203048_create_kuaidi_logs_table.php diff --git a/app/Endpoint/Api/Http/Controllers/ArticleController.php b/app/Endpoint/Api/Http/Controllers/ArticleController.php index 031215fe..d95ae588 100644 --- a/app/Endpoint/Api/Http/Controllers/ArticleController.php +++ b/app/Endpoint/Api/Http/Controllers/ArticleController.php @@ -28,7 +28,11 @@ class ArticleController extends Controller { $cate = (string) $request->query('cate'); $key = (string) $request->query('key'); - $categoryId = Arr::get(Article::$cateMap, $cate); + $categoryId = Arr::get([ + 'help'=> config('settings.article_help'), + 'agreement'=> config('settings.article_agreement'), + 'health'=> config('settings.article_health'), + ], $cate); $query = Article::query()->with(['likesInfo'=>function ($q) use ($request) { return $q->where('user_id', $request->user()->id); }])->where('is_show', 1); diff --git a/app/Endpoint/Api/Http/Controllers/ClickController.php b/app/Endpoint/Api/Http/Controllers/ClickController.php index 874ee860..f2cc9ae5 100644 --- a/app/Endpoint/Api/Http/Controllers/ClickController.php +++ b/app/Endpoint/Api/Http/Controllers/ClickController.php @@ -63,15 +63,15 @@ class ClickController extends Controller ]); //发放当天签到积分 - $points = 5; + $points = config('settings.sign_click_points'); $pointsService->sendPoints(1, $user, $points, '签到奖励'); //发放额外的奖励积分 - // $continueClickDays = 7;//默认7天 - // $continueClickPoints = 10;//默认10分 - // if (($click->continue_click_times % $continueClickDays) == 0) { - // $pointsService->sendPoints(1, $user, $continueClickPoints, '连续签到奖励'); - // } + $continueClickDays = config('settings.sign_click_continue', 0); + $continueClickPoints = config('settings.sign_click_continue_points'); + if (($continueClickDays > 0 && $click->continue_click_times % $continueClickDays) == 0) { + $pointsService->sendPoints(1, $user, $continueClickPoints, '连续签到奖励'); + } DB::commit(); } catch (Throwable $th) { diff --git a/app/Endpoint/Callback/Http/Controllers/Controller.php b/app/Endpoint/Callback/Http/Controllers/Controller.php new file mode 100644 index 00000000..c4a9e485 --- /dev/null +++ b/app/Endpoint/Callback/Http/Controllers/Controller.php @@ -0,0 +1,15 @@ +all(); + + //校验回调签名 + if ($kuaidi100Service->unPollSign(Arr::get($data, 'sign', ''), Arr::get($data, 'param', []))) { + dd(132465); + } + return response()->json([ + 'result'=>true, + 'returnCode'=>'200', + 'message'=>'成功', + ]); + } +} diff --git a/app/Endpoint/Callback/routes.php b/app/Endpoint/Callback/routes.php new file mode 100644 index 00000000..fb69c598 --- /dev/null +++ b/app/Endpoint/Callback/routes.php @@ -0,0 +1,10 @@ + 'v1', +], function () { + Route::post('kuaidi100', [Kuaidi100Controller::class, 'callback']); +}); diff --git a/app/Models/Article.php b/app/Models/Article.php index 300aa26d..caf1df2e 100644 --- a/app/Models/Article.php +++ b/app/Models/Article.php @@ -10,16 +10,6 @@ class Article extends Model { use HasDateTimeFormatter; - protected const CATE_HELP = 1; - protected const CATE_AGREEMENT = 2; - protected const CATE_HEALTH = 3; - - public static $cateMap = [ - 'help'=> self::CATE_HELP, - 'agreement'=> self::CATE_AGREEMENT, - 'health'=> self::CATE_HEALTH, - ]; - protected $casts = [ 'is_show' => 'boolean', 'is_recommend' => 'boolean', diff --git a/app/Models/KuaidiLog.php b/app/Models/KuaidiLog.php new file mode 100644 index 00000000..fb9505fd --- /dev/null +++ b/app/Models/KuaidiLog.php @@ -0,0 +1,11 @@ +namespace($this->namespace) ->group(base_path('routes/web.php')); + + Route::prefix('callback') + ->namespace($this->namespace) + ->group(app_path('Endpoint/Callback/routes.php')); }); } diff --git a/app/Services/Kuaidi100Service.php b/app/Services/Kuaidi100Service.php new file mode 100644 index 00000000..c3fb83d8 --- /dev/null +++ b/app/Services/Kuaidi100Service.php @@ -0,0 +1,1484 @@ +setAppKey(); + $this->setCustomer(); + $this->basePath = 'https://poll.kuaidi100.com'; + } + + public function setAppKey($appKey = null) + { + $this->appKey = $appKey ??config('settings.kuaidi100_app_key'); + } + + public function setCustomer($customer = null) + { + $this->customer = $customer ??config('settings.kuaidi100_customer'); + } + + /** + * 订阅推送 + * + * @return void + */ + public function poll(string $company, string $number, string $phone) + { + $uri = 'poll'; + $callbackUrl = config('settings.kuaidi100_callback'); + if (is_null($callbackUrl)) { + throw new BizException('未配置推送回调地址'); + } + $code = $this->getCode($company); + $params = [ + 'schema' => 'json', + 'param' => [ + 'company' => $code, + 'number' => $number, + 'key' => $this->appKey, + 'parameters'=> [ + 'callbackurl'=> $callbackUrl, + 'salt' => config('settings.kuaidi100_secret'), + 'phone' => $phone, + 'resultv2' => '1', + 'autoCom' => empty($code) ? 1 : 0, + ], + ], + ]; + $response = $this->post($uri, $params); + + return $response; + } + + /** + * 实时查询 + * + * @param string $company + * @param string $number + * @param string $phone + * @return void + */ + public function getPollQuery(string $company, string $number, string $phone) + { + $uri = '/poll/query.do'; + $code = $this->getCode($company); + $params = [ + 'com' => $code, //快递公司编码 + 'num' => $number, //快递单号 + 'phone' => $phone, + 'order' => 'desc', + 'resultv2' => '4', //开启行政区域解析 + ]; + + $postData['customer'] = $this->customer; + $postData['param'] = json_encode($params); + $postData['sign'] = $this->makeSign($params); + + return $this->post($uri, $postData); + } + + /** + * post请求 + * + * @param string $uri + * @param array $params + * @return void + */ + public function post(string $uri, array $params) + { + $postData = $params; + $str = ''; + foreach ($postData as $k=>$v) { + $str .= "$k=".$v.'&'; //默认UTF-8编码格式 + } + $postData = substr($str, 0, -1); + + $response = Http::withHeaders([ + 'Accept' => 'application/json', + ])->post($this->basePath.$uri.'?'.$postData); + + return $response; + } + + private function makeSign($param) + { + $sign = md5(json_encode($param).$this->appKey.$this->customer); + return strtoupper($sign); + } + + /** + * 解密推送回调sign + * + * @param string $sign + * @param array $params + * @return void + */ + public function unPollSign(string $sign, array $params) + { + return $sign === md5(json_encode($params).config('settings.kuaidi100_secret')); + } + + public function getStatusName($state = 0) + { + $nameArr = [ + 1 =>'揽收', + 101 =>'已下单', + 102 =>'待揽收', + 103 =>'已揽收', + 0 =>'在途', + 1001=>'到达派件城市', + 1002=>'干线', + 5 =>'派件', + 501 =>'投柜或驿站', + 3 =>'签收', + 301 =>'本人签收', + 302 =>'派件异常后签收', + 303 =>'代签', + 304 =>'投柜或站签收', + 6 =>'退回', + 4 =>'退签', + 401 =>'已销单', + 14 =>'拒签', + 7 =>'转投', + 2 =>'疑难', + 201 =>'超时未签收', + 202 =>'超时未更新', + 203 =>'拒收', + 204 =>'派件异常', + 205 =>'柜或驿站超时未取', + 206 =>'无法联系', + 207 =>'超区', + 208 =>'滞留', + 209 =>'破损', + 8 =>'清关', + 10 =>'待清关', + 11 =>'清关中', + 12 =>'已清关', + 13 =>'清关异常', + 14 =>'拒签', + ]; + return isset($nameArr[$state]) ? $nameArr[$state] : '未知状态'; + } + + public function getCode($company = '') + { + if (empty($company)) { + return ''; + } + $codeArr = [ + '圆通速递'=>'yuantong', + '韵达快递'=>'yunda', + '韵达速递'=>'yunda', + '中通快递'=>'zhongtong', + '申通快递'=>'shentong', + '百世快递'=>'huitongkuaidi', + '邮政快递包裹'=>'youzhengguonei', + '顺丰速运'=>'shunfeng', + '极兔速递'=>'jtexpress', + '邮政速递'=>'ems', + 'EMS'=>'ems', + '京东物流'=>'jd', + '邮政标准快递'=>'youzhengbk', + '德邦快递'=>'debangkuaidi', + '德邦'=>'debangwuliu', + '圆通快运'=>'yuantongkuaiyun', + '丰网速运'=>'fengwang', + '宅急送'=>'zhaijisong', + '百世快运'=>'baishiwuliu', + '中通快运'=>'zhongtongkuaiyun', + '安能快运'=>'annengwuliu', + '中通国际'=>'zhongtongguoji', + '优速快递'=>'youshuwuliu', + '韵达快运'=>'yundakuaiyun', + '特急送'=>'lntjs', + '顺丰快运'=>'shunfengkuaiyun', + 'UPS'=>'ups', + '跨越速运'=>'kuayue', + '安得物流'=>'annto', + '国际包裹'=>'youzhengguoji', + '山东速递'=>'dsukuaidi', + 'D速快递'=>'dsukuaidi', + '顺心捷达'=>'sxjdfreight', + '壹米滴答'=>'yimidida', + '九曳供应链'=>'jiuyescm', + 'DHL-中国件'=>'dhl', + 'UPS-全球件'=>'upsen', + 'FedEx-国际件'=>'fedex', + '京广速递'=>'jinguangsudikuaijian', + '加运美'=>'jiayunmeiwuliu', + 'DHL-全球件'=>'dhlen', + '丹鸟'=>'danniao', + '联昊通'=>'lianhaowuliu', + '日日顺物流'=>'rrs', + 'DPD'=>'dpd', + 'EWE全球快递'=>'ewe', + 'EMS包裹'=>'emsbg', + '汇森速运'=>'huisenky', + 'USPS'=>'usps', + 'Titan泰坦国际速递'=>'timelytitan', + '信丰物流'=>'xinfengwuliu', + '速尔快递'=>'suer', + '递四方'=>'disifang', + '速腾快递'=>'suteng', + '中远e环球'=>'cosco', + 'YunExpress'=>'yuntrack', + '同城快寄'=>'shpost', + '宇鑫物流'=>'yuxinwuliu', + '卓志速运'=>'chinaicip', + '美快国际物流'=>'meiquick', + '威时沛运货运'=>'wtdchina', + '联邦快递'=>'lianbangkuaidi', + '天天快递'=>'tiantian', + 'EMS-国际件'=>'emsguoji', + '三态速递'=>'santaisudi', + '海信物流'=>'savor', + '众邮快递'=>'zhongyouex', + '申通国际'=>'stosolution', + '京东快运'=>'jingdongkuaiyun', + 'Xlobo贝海国际'=>'xlobo', + '天地华宇'=>'tiandihuayu', + 'Fedex-国际件-中文'=>'fedexcn', + '燕文物流'=>'yw56', + '苏宁物流'=>'suning', + 'CJ物流'=>'doortodoor', + '鑫正一快递'=>'zhengyikuaidi', + '龙邦速递'=>'longbanwuliu', + '联合快递'=>'gslhkd', + '顺昌国际'=>'shunchangguoji', + 'GLS'=>'gls', + '日本(Japan Post)'=>'japanposten', + '安能快递'=>'ane66', + '拉火速运'=>'lahuoex', + '程光快递'=>'flyway', + '威盛快递'=>'wherexpess', + '速必达'=>'subida', + '平安达腾飞'=>'pingandatengfei', + '国通快递'=>'guotongkuaidi', + '中铁快运'=>'ztky', + '德坤物流'=>'dekuncn', + '品骏快递'=>'pjbest', + 'UBI Australia'=>'gotoubi', + '嘉里大通'=>'jialidatong', + '四季安物流'=>'sja56', + '中邮速递'=>'wondersyd', + '圆通国际'=>'yuantongguoji', + '大马鹿'=>'idamalu', + '优邦速运'=>'ubonex', + 'TNT-全球件'=>'tnten', + '承诺达'=>'ytchengnuoda', + 'TNT'=>'tnt', + '澳邮中国快运'=>'auexpress', + '盛丰物流'=>'sfwl', + '极地快递'=>'polarexpress', + '邦泰快运'=>'btexpress', + '新顺丰(NSF)'=>'nsf', + '招金精炼'=>'zhaojin', + '金岸物流'=>'jinan', + '荣庆物流'=>'rokin', + '景光物流'=>'jgwl', + 'Austa国际速递'=>'austa', + '微特派'=>'weitepai', + '无忧物流'=>'aliexpress', + '富腾达国际货运'=>'ftd', + 'AAE-中国件'=>'aae', + '澳洲飞跃物流'=>'rlgaus', + '富吉速运'=>'fujisuyun', + '转运中国'=>'uszcn', + '速通物流'=>'sut56', + 'Superb Express'=>'superb', + '雪域易购'=>'qhxyyg', + '叁虎物流'=>'sanhuwuliu', + '安迅物流'=>'anxl', + '行云物流'=>'xyb2b', + '澳大利亚(Australia Post)'=>'auspost', + '方舟速递'=>'arkexpress', + '天马迅达'=>'tianma', + '迅达速递'=>'xdexpress', + '龙邦物流'=>'lbex', + '盛辉物流'=>'shenghuiwuliu', + '比利时(Bpost)'=>'bpost', + // '芝麻开门'=>'zhimakaimen', + 'OCS'=>'ocs', + '海欣斯快递'=>'highsince', + '澳天速运'=>'aotsd', + '中速快递'=>'zhongsukuaidi', + '易客满'=>'ecmscn', + '斑马物流'=>'banma', + '出口易'=>'chukou1', + '源安达'=>'yuananda', + '快捷速递'=>'kuaijiesudi', + 'EMS-国际件-英文'=>'emsinten', + '安信达'=>'anxindakuaixi', + '宏递快运'=>'hd', + '新西兰(New Zealand Post)'=>'newzealand', + '疯狂快递'=>'crazyexpress', + 'Aramex'=>'aramex', + '广东邮政'=>'guangdongyouzhengwuliu', + '递四方美国'=>'disifangus', + '鼎润物流'=>'la911', + 'DPD Germany'=>'dpdgermany', + '联合速运'=>'unitedex', + '安达速递'=>'adapost', + '泰进物流'=>'taijin', + '黄马甲'=>'huangmajia', + '达发物流'=>'dfwl', + '泛捷国际速递'=>'epanex', + '汇通天下物流'=>'httx56', + '中华邮政'=>'postserv', + '新杰物流'=>'sunjex', + '铁中快运'=>'tzky', + '成都立即送'=>'lijisong', + '快捷快物流'=>'gdkjk56', + '荷兰邮政(PostNL international registered mail)'=>'postnl', + '百腾物流'=>'baitengwuliu', + '家家通快递'=>'newsway', + '速递中国'=>'sendtochina', + 'LUCFLOW EXPRESS'=>'longfx', + '商桥物流'=>'shangqiao56', + 'TransRush'=>'transrush', + '澳德物流'=>'auod', + '贰仟家物流'=>'erqianjia56', + '全联速运'=>'guexp', + '速达通'=>'sdto', + '诚和通'=>'cht361', + '大田物流'=>'datianwuliu', + '中铁飞豹'=>'zhongtiewuliu', + 'DPD UK'=>'dpduk', + 'EFS Post(平安快递)'=>'efs', + '万家物流'=>'wanjiawuliu', + '百福东方'=>'baifudongfang', + 'Purolator'=>'purolator', + 'MoreLink'=>'morelink56', + '转运四方'=>'zhuanyunsifang', + 'SYNSHIP快递'=>'synship', + '美通'=>'valueway', + '一正达速运'=>'yizhengdasuyun', + '速派快递'=>'fastgoexpress', + 'E2G速递'=>'express2global', + '中集冷云'=>'cccc58', + '鸿泰物流'=>'hnht56', + '优优速递'=>'youyou', + 'beiou express'=>'beiou', + '宅急便'=>'zhaijibian', + '联合速递'=>'lhexpressus', + '三真驿道'=>'zlink', + '长江国际速递'=>'changjiang', + '恒路物流'=>'hengluwuliu', + '北京EMS'=>'bjemstckj', + '星云速递'=>'nebuex', + '三志物流'=>'sanzhi56', + '亚洲顺物流'=>'yzswuliu', + '佐川急便'=>'sagawa', + '新元国际'=>'xynyc', + '直德邮'=>'zdepost', + 'COE'=>'coe', + '小飞侠速递'=>'cyxfx', + '安捷物流'=>'anjie88', + 'TST速运通'=>'tstexp', + '锦程快递'=>'hrex', + '三象速递'=>'sxexpress', + '华欣物流'=>'chinastarlogistics', + '签收快递'=>'signedexpress', + '中外运'=>'esinotrans', + 'Hermes'=>'hermes', + '御风速运'=>'yufeng', + 'airpak expresss'=>'airpak', + '顺丰-繁体'=>'shunfenghk', + '佳怡物流'=>'jiayiwuliu', + '顺捷美中速递'=>'passerbyaexpress', + '黑猫宅急便'=>'tcat', + '中邮物流'=>'zhongyouwuliu', + '聚盟共建'=>'jumstc', + '合众速递(UCS)'=>'ucs', + '货拉拉物流'=>'huolalawuliu', + '能达速递'=>'ganzhongnengda', + '明通国际快递'=>'tnjex', + '增益速递'=>'zengyisudi', + '德国优拜物流'=>'ubuy', + '佳成快递 '=>'jiacheng', + '帮帮发'=>'bangbangpost', + '时达通'=>'jssdt56', + 'wedepot物流'=>'wedepot', + '百事亨通'=>'bsht', + 'JDIEX'=>'jdiex', + 'DHL Benelux'=>'dhlbenelux', + '汇达物流'=>'hdcexpress', + '易达通快递'=>'qexpress', + '德国(Deutsche Post)'=>'deutschepost', + '中环快递'=>'zhonghuan', + '澳捷物流'=>'ajlogistics', + '联邦快递-英文'=>'lianbangkuaidien', + '原飞航'=>'yuanfeihangwuliu', + '中途速递'=>'ztcce', + '友家速递'=>'youjia', + '加拿大(Canada Post)'=>'canpost', + '宇佳物流'=>'yujiawl', + 'Newgistics'=>'newgistics', + 'TRAKPAK'=>'trakpak', + '韵达国际'=>'udalogistic', + '远航国际快运'=>'yuanhhk', + 'YDH'=>'ydhex', + 'E速达'=>'exsuda', + '城晓国际快递'=>'ckeex', + '荷兰邮政-中国件'=>'postnlchina', + 'FedEx-美国件'=>'fedexus', + '佰麒快递'=>'beckygo', + '安鲜达'=>'exfresh', + '运通速运'=>'yuntong', + '51跨境通'=>'wykjt', + '百世云配'=>'baishiyp', + '万象物流'=>'wanxiangwuliu', + '汇峰物流'=>'huif56', + '山西建华'=>'shanxijianhua', + '海带宝'=>'haidaibao', + '皇家云仓'=>'hotwms', + '明达国际速递'=>'tmwexpress', + 'EMS物流'=>'emswuliu', + '英国邮政大包EMS'=>'parcelforcecn', + '法国大包、EMS-英文(Chronopost France)'=>'chronopostfren', + '运通中港快递'=>'ytkd', + '大韩通运'=>'cjkoreaexpress', + '西班牙(Correos de Espa?a)'=>'correosdees', + '飞远配送'=>'feiyuanvipshop', + '丰通快运'=>'ftky365', + '韩国邮政'=>'koreapostcn', + '中外运速递'=>'zhongwaiyun', + '皮牙子快递'=>'bazirim', + 'OC-Post'=>'ocpost', + '英国大包、EMS(Parcel Force)'=>'parcelforce', + '一速递'=>'oneexpress', + '全峰快递'=>'quanfengkuaidi', + '飞洋快递'=>'shipgce', + 'DPEX'=>'dpex', + '春风物流'=>'spring56', + 'DHL-德国件(DHL Deutschland)'=>'dhlde', + '加拿大龙行速运'=>'longcps', + '洋包裹'=>'yangbaoguo', + '永昌物流'=>'yongchangwuliu', + '递五方云仓'=>'di5pll', + 'CHS中环国际快递'=>'chszhonghuanguoji', + '商壹国际物流'=>'com1express', + '联运通物流'=>'szuem', + 'CNE'=>'cnexps', + '佳吉快运'=>'jiajiwuliu', + '集先锋快递'=>'jxfex', + 'TNT Australia'=>'tntau', + 'EASY EXPRESS'=>'easyexpress', + '永邦国际物流'=>'yongbangwuliu', + '优速通达'=>'yousutongda', + '上海缤纷物流'=>'bflg', + '昌宇国际'=>'changwooair', + '科捷物流'=>'kejie', + '武汉优进汇'=>'yjhgo', + '飞豹快递'=>'feibaokuaidi', + '全一快递'=>'quanyikuaidi', + '顺达快递'=>'sundarexpress', + '中国香港(HongKong Post)'=>'hkpost', + '秦远物流'=>'qinyuan', + '瑞典(Sweden Post)'=>'ruidianyouzheng', + '迅速快递'=>'xunsuexpress', + '银雁专送'=>'cfss', + '中邮电商'=>'chinapostcb', + '耀飞同城快递'=>'yaofeikuaidi', + '韩国(Korea Post)'=>'koreapost', + '环球速运'=>'huanqiu', + '爱尔兰(An Post)'=>'anposten', + '运通中港'=>'yuntongkuaidi', + '宜送物流'=>'yiex', + '海派国际速递'=>'hpexpress', + '黑猫同城送'=>'ynztsy', + '魔速达'=>'mosuda', + '西游寄'=>'xiyoug', + '全川物流'=>'quanchuan56', + '久久物流'=>'jiujiuwl', + '湘达物流'=>'xiangdawuliu', + '如家国际快递'=>'homecourier', + 'GTS快递'=>'gts', + '广州安能聚创物流'=>'gzanjcwl', + '天翼快递'=>'tykd', + '亚风速递'=>'yafengsudi', + '邮邦国际'=>'youban', + '中国香港环球快运'=>'huanqiuabc', + '远盾物流'=>'yuandun', + '天天欧洲物流'=>'ttkeurope', + '尚橙物流'=>'shangcheng', + '意大利(Poste Italiane)'=>'italiane', + '顺丰冷链'=>'shunfenglengyun', + '洋口岸'=>'ykouan', + '雅澳物流'=>'yourscm', + '创运物流'=>'zjcy56', + '7号速递'=>'express7th', + '泰国138国际物流'=>'sd138', + '海红网送'=>'haihongwangsong', + '捷安达'=>'jieanda', + 'Gati-中文'=>'gaticn', + 'EFSPOST'=>'efspost', + 'Toll Priority(Toll Online)'=>'tollpriority', + 'EMS-英文'=>'emsen', + 'UEQ快递'=>'ueq', + 'CDEK'=>'cdek', + '捷祥物流'=>'cdjx56', + '速舟物流'=>'cnspeedster', + '陆本速递 LUBEN EXPRESS'=>'luben', + '雪域快递'=>'qhxykd', + 'CCES/国通快递'=>'cces', + 'OnTrac'=>'ontrac', + '一起送'=>'yiqisong', + '奔腾物流'=>'benteng', + '喀麦隆(CAMPOST)'=>'cameroon', + '上大物流'=>'shangda', + '城际快递'=>'chengji', + '货运皇'=>'kingfreight', + '配思货运'=>'peisihuoyunkuaidi', + '远成快运'=>'ycgky', + '法国(La Poste)'=>'csuivi', + '佳辰国际速递'=>'jiachenexpress', + '佳吉快递'=>'jiajikuaidi', + '菲律宾(Philippine Postal)'=>'phlpost', + '秦邦快运'=>'qbexpress', + '新速航'=>'sunspeedy', + '泰国(Thailand Thai Post)'=>'thailand', + '世华通物流'=>'szshihuatong56', + '传喜物流'=>'chuanxiwuliu', + '颿达国际快递'=>'fardarww', + '泰实货运'=>'tjkjwl', + '全速快递'=>'fsexp', + '易境达国际物流'=>'uscbexpress', + '明大快递'=>'adaexpress', + '创一快递'=>'chuangyi', + '上海航瑞货运'=>'hangrui', + '远成物流'=>'yuanchengwuliu', + '宇捷通'=>'yujtong', + 'Canpar'=>'canpar', + 'DPD Poland'=>'dpdpoland', + '高捷快运'=>'goldjet', + '日日顺智慧物联'=>'gooday365', + '林道国际快递-英文'=>'ldxpres', + 'A2U速递'=>'a2u', + '欧亚专线'=>'euasia', + '瀚朝物流'=>'hac56', + '华美快递'=>'hmus', + '丰程物流'=>'sccod', + '中外运速递-中文'=>'sinoex', + '美国申通'=>'stoexpress', + '大洋物流'=>'dayangwuliu', + '中国香港(HongKong Post)英文'=>'hkposten', + '龙枫国际快递'=>'lfexpress', + '美西快递'=>'meixi', + '荷兰包裹(PostNL International Parcels)'=>'postnlpacle', + '林道国际快递'=>'shlindao', + '申通新西兰'=>'stonewzealand', + '安世通快递'=>'astexpress', + '河北橙配'=>'chengpei', + '澳州顺风快递'=>'emms', + 'GSM'=>'gsm', + '黑猫速运'=>'heimao56', + '汇捷物流'=>'hjwl', + '聚鼎物流'=>'juding', + '晟邦物流'=>'nanjingshengbang', + '人人转运'=>'renrenex', + 'USPSCN'=>'uspscn', + '玥玛速运'=>'yue777', + '阿森迪亚'=>'asendia', + '鑫宸物流'=>'cdxinchen56', + '智通物流'=>'ztong', + '长吉物流'=>'cjqy', + 'Toll'=>'dpexen', + '天天快物流'=>'guoeryue', + '捷邦物流'=>'jieborne', + '新西兰中通'=>'nzzto', + '荷兰邮政-中文(PostNL international registered mail)'=>'postnlcn', + '顺捷丰达'=>'shunjiefengda', + '深圳邮政'=>'szyouzheng', + '万庚国际速递'=>'vangenexpress', + '伍圆速递'=>'wuyuansudi', + '中宏物流'=>'zhonghongwl', + '苏通快运'=>'zjstky', + '一智通'=>'1ziton', + 'BHT'=>'bht', + '贝业物流'=>'boyol', + '中翼国际物流'=>'chnexp', + '东方汇'=>'est365', + '飞康达'=>'feikangda', + 'globaltracktrace'=>'globaltracktrace', + '红远物流'=>'hongywl', + '恒通快递'=>'lqht', + '浩博物流'=>'njhaobo', + '皇家物流'=>'pfcexpress', + '中融泰隆'=>'zrtl', + '心怡物流'=>'alog', + '加拿大邮政'=>'canpostfr', + '达方物流'=>'dfpost', + '凡宇快递'=>'fanyukuaidi', + '飞快达'=>'feikuaida', + '共速达'=>'gongsuda', + 'GTT EXPRESS快递'=>'gttexpress', + '海星桥快递'=>'haixingqiao', + '海联快递'=>'hltop', + '好来运'=>'hlyex', + '金大物流'=>'jindawuliu', + '全速物流'=>'quansu', + '速呈'=>'sczpds', + '英超物流'=>'yingchao', + '锋鸟物流'=>'beebird', + '百通物流'=>'buytong', + '中骅物流'=>'chunghwa56', + '加拿大联通快运'=>'fastontime', + '奉天物流'=>'fengtianexpress', + '飞力士物流'=>'flysman', + '美国快递'=>'meiguokuaidi', + '民航快递'=>'minghangkuaidi', + '全日通'=>'quanritongkuaidi', + '赛澳递for买卖宝'=>'saiaodimmb', + '万家康物流'=>'wjkwl', + '中天万运'=>'zhongtianwanyun', + '八达通'=>'bdatong', + '同舟行物流'=>'chinatzx', + '澳通华人物流'=>'cllexpress', + '法国小包(colissimo)'=>'colissimo', + '成都东骏物流'=>'dongjun', + '高考通知书'=>'emsluqu', + 'FedRoad 联邦转运'=>'fedroad', + '考拉国际速递'=>'kaolaexpress', + '领送送'=>'lingsong', + '腾达速递'=>'nntengda', + '丹麦(Post Denmark)'=>'postdanmarken', + '中加国际快递'=>'scic', + '瑞士(Swiss Post)'=>'swisspost', + '五六快运'=>'wuliuky', + '韵丰物流'=>'yunfeng56', + '远为快递'=>'ywexpress', + '中技物流'=>'zhongjiwuliu', + '中粮鲜到家物流'=>'zlxdjwl', + '泰捷达国际物流'=>'ztjieda', + '全球快运'=>'abcglobal', + '中联速递'=>'auvanda', + '泰国中通CTO'=>'ctoexp', + '大道物流'=>'dadaoex', + '一号线'=>'lineone', + 'LWE'=>'lwe', + 'rpx'=>'rpx', + '全时速运'=>'runhengfeng', + '赛澳递'=>'saiaodi', + '红马甲物流'=>'sxhongmajia', + '亚马逊中国'=>'yamaxunwuliu', + 'YODEL'=>'yodel', + '越丰物流'=>'yuefengwuliu', + '加拿大民航快递'=>'airgtc', + '澳世速递'=>'ausexpress', + '比利时国际(Bpost international)'=>'bpostinter', + 'CNUP 中联邮'=>'cnup', + '邦通国际'=>'comexpress', + '哥斯达黎加(Correos de Costa Rica)'=>'correos', + '泛远国际物流'=>'farlogistis', + '安的快递'=>'gda', + '华通快运'=>'htongexpress', + '汇强快递'=>'huiqiangkuaidi', + '木春货运'=>'mchy', + '南方传媒物流'=>'ndwl', + '睿和泰速运'=>'rhtexpress', + '新加坡小包(Singapore Post)'=>'singpost', + '速风快递'=>'sufengkuaidi', + 'Amazon FBA Swiship'=>'swiship', + '优海国际速递'=>'uhi', + '祥龙运通物流'=>'xianglongyuntong', + 'ZTE中兴物流'=>'zteexpress', + 'ABF'=>'abf', + 'ADP国际快递'=>'adp', + 'Asendia USA'=>'asendiausa', + '蜜蜂速递'=>'bee001', + '比利时(Belgium Post)'=>'belgiumpost', + '鑫锐达'=>'bjxsrd', + '博茨瓦纳'=>'botspost', + '巴西(Brazil Post/Correios)'=>'brazilposten', + '城市映急'=>'city56', + 'citysprint'=>'citysprint', + '华中快递'=>'cpsair', + '波兰小包(Poczta Polska)'=>'emonitoring', + '可可树美中速运'=>'excocotree', + '海外环球'=>'haiwaihuanqiu', + '翰丰快递'=>'hanfengjl', + '拉脱维亚(Latvijas Pasts)'=>'latvia', + '亚欧专线'=>'nlebv', + '鹏远国际速递'=>'pengyuanexpress', + 'PostNord(Posten AB)'=>'postenab', + '全速通'=>'quansutong', + '叙利亚(Syrian Post)'=>'republic', + '顺通快递'=>'stkd', + '穗佳物流'=>'suijiawuliu', + '中运全速'=>'topspeedex', + 'track-parcel'=>'trackparcel', + '云达通'=>'ydglobe', + '宇航通物流'=>'yhtlogistics', + '元智捷诚'=>'yuanzhijiecheng', + '三三国际物流'=>'zenzen', + '众川国际'=>'zhongchuan', + '亚马逊中国订单'=>'amazoncnorder', + 'amazon-国内订单'=>'amcnorder', + '青岛安捷快递'=>'anjiekuaidi', + '奥地利(Austrian Post)'=>'austria', + '宏桥国际物流'=>'briems', + 'CNAIR'=>'cnair', + '龙象国际物流'=>'edragon', + '艾菲尔国际速递'=>'eiffel', + '飞邦快递'=>'fbkd', + 'Gati-英文'=>'gatien', + '顺时达物流'=>'hnssd56', + '大达物流'=>'idada', + 'J&T Express 马来西亚'=>'jtexpressmy', + '韩国邮政韩文'=>'koreapostkr', + 'LaserShip'=>'lasership', + '楽道物流'=>'ledaowuliu', + '马来西亚小包(Malaysia Post(Registered))'=>'malaysiapost', + '银河物流'=>'milkyway', + '民邦速递'=>'minbangsudi', + '明亮物流'=>'mingliangwuliu', + '俄罗斯邮政(Russian Post)'=>'pochta', + '北极星快运'=>'polarisexpress', + '新加坡EMS、大包(Singapore Speedpost)'=>'speedpost', + '越南EMS(VNPost Express)'=>'vnpost', + '壹品速递'=>'ypsd', + '美国云达'=>'yundaexus', + '中环转运'=>'zhonghuanus', + '明辉物流'=>'zsmhwl', + '德国雄鹰速递'=>'adlerlogi', + '阿尔巴尼亚(Posta shqipatre)'=>'albania', + '阿鲁巴[荷兰](Post Aruba)'=>'aruba', + '邦送物流'=>'bangsongwuliu', + '宝通快递'=>'baotongkd', + '速方(Sufast)'=>'bphchina', + '嘉荣物流'=>'chllog', + 'City-Link'=>'citylink', + '群航国际物流'=>'cloudlogistics365', + 'dhl小包'=>'dhlecommerce', + 'DHL-荷兰(DHL Netherlands)'=>'dhlnetherlands', + '英国(大包,EMS)'=>'england', + 'Estafeta'=>'estafeta', + '飞狐快递'=>'feihukuaidi', + '冠捷物流 '=>'gjwl', + '英脉物流'=>'gml', + '河南全速通'=>'hnqst', + '宏捷国际物流'=>'hongjie', + '华企快运'=>'huaqikuaiyun', + '爱拜物流'=>'ibuy8', + 'jcex'=>'jcex', + '嘉诚速达'=>'jcsuda', + '景顺物流'=>'jingshun', + '跨境直邮通'=>'kjde', + '快8速运'=>'kuai8', + '新易泰'=>'lnet', + '联通快递'=>'ltparcel', + '美泰物流'=>'meitai', + '猛犸速递'=>'mmlogi', + '无限配'=>'omni2', + 'PCA Express'=>'pcaexpress', + '先锋国际快递'=>'pioneer', + '龙行天下'=>'pmt0704be', + '挪威(Posten Norge)'=>'postennorge', + '卡塔尔(Qatar Post)'=>'qpost', + '全际通'=>'quanjitong', + '日日通国际'=>'rrthk', + '萨摩亚(Samoa Post)'=>'samoa', + '十方通物流'=>'sfift', + '杰响物流'=>'shbwch', + '神骏物流'=>'shenjun', + '速豹'=>'subaoex', + '老扬州物流'=>'tjlyz56', + 'TNY物流'=>'tny', + '乌克兰邮政包裹'=>'ukrpostcn', + '乌兹别克斯坦(Post of Uzbekistan)'=>'uzbekistan', + '鹰运国际速递'=>'vipexpress', + '豌豆物流'=>'wandougongzhu', + '宁夏万家通'=>'wanjiatong', + '西翼物流'=>'westwing', + '万邑通'=>'winit', + '易达通'=>'yidatong', + '邮来速递'=>'youlai', + '忠信达'=>'zhongxinda', + '中远快运'=>'zy100', + '增速跨境 '=>'zyzoom', + '安达信'=>'advancing', + '全程快递'=>'agopost', + '德方物流'=>'ahdf', + 'AOL澳通速递'=>'aolau', + 'apgecommerce'=>'apgecommerce', + '澳货通'=>'auex', + '孟加拉国(EMS)'=>'bangladesh', + '白俄罗斯(Belpochta)'=>'belpost', + '笨鸟国际'=>'benniao', + '彪记快递'=>'biaojikuaidi', + '青云物流'=>'bjqywl', + '波黑(JP BH Posta)'=>'bohei', + '保加利亚(Bulgarian Posts)'=>'bulgarian', + '展勤快递'=>'byht', + '柬埔寨(Cambodia Post)'=>'cambodia', + 'Campbell’s Express'=>'campbellsexpress', + '河南次晨达'=>'ccd', + '捷克(?eská po?ta)'=>'ceskaposta', + '法国大包、EMS-法文(Chronopost France)'=>'chronopostfra', + 'C&C国际速递'=>'cncexp', + '中欧物流'=>'cneulogistics', + '中国翼'=>'cnws', + '哥伦比亚(4-72 La Red Postal de Colombia)'=>'colombia', + '阿根廷(Correo Argentina)'=>'correoargentino', + '新时速物流'=>'csxss', + '塞浦路斯(Cyprus Post)'=>'cypruspost', + '云南诚中物流'=>'czwlyn', + '丹递56'=>'dande56', + '深圳德创物流'=>'dechuangwuliu', + 'Deltec Courier'=>'deltec', + '澳行快递'=>'desworks', + 'DHL-波兰(DHL Poland)'=>'dhlpoland', + '东红物流'=>'donghong', + '德淘邦'=>'dt8ang', + '易达快运'=>'edaeuexpress', + 'e直运'=>'edtexpress', + '南非EMS'=>'emssouthafrica', + '俄顺达'=>'eshunda', + '易达国际速递'=>'eta100', + '优莎速运'=>'eusacn', + '凤凰快递'=>'fenghuangkuaidi', + '四方格'=>'fourpxus', + 'FOX国际快递'=>'fox', + 'GHT物流'=>'ghtexpress', + '海盟速递'=>'haimengsudi', + '航宇快递'=>'hangyu', + '开心快递'=>'happylink', + '环国运物流'=>'hgy56', + '华瀚快递'=>'hhair56', + '飞豹速递'=>'hkeex', + '云邮跨境快递'=>'hkems', + '飞鹰物流'=>'hnfy', + '红背心'=>'hongbeixin', + '宏品物流'=>'hongpinwuliu', + '环东物流'=>'huandonglg', + '汇霖大货网'=>'huilin56', + '匈牙利(Magyar Posta)'=>'hungary', + '兰州伙伴物流'=>'huoban', + '户通物流'=>'hutongwuliu', + '恒宇运通'=>'hyytes', + '印度(India Post)'=>'india', + 'UPS i-parcel'=>'iparcel', + '驿扬国际速运'=>'iyoungspeed', + '牙买加(Jamaica Post)'=>'jamaicapost', + '日本郵便'=>'japanpost', + '加佳物流'=>'jiajiawl', + '加州猫速递'=>'jiazhoumao', + '极光转运'=>'jiguang', + '急先达'=>'jixianda', + '佳捷翔物流'=>'jjx888', + '骏绅物流'=>'jsexpress', + '骏丰国际速递'=>'junfengguoji', + 'KCS'=>'kcs', + '肯尼亚(POSTA KENYA)'=>'kenya', + '嘉里大荣物流'=>'kerrytj', + '考拉速递'=>'koalaexp', + '快淘快递'=>'kuaitao', + '四川快优达速递'=>'kuaiyouda', + '乐递供应链'=>'ledii', + '莱索托(Lesotho Post)'=>'lesotho', + '丽狮物流'=>'lishi', + '立陶宛(Lietuvos pa?tas)'=>'lithuania', + '華信物流WTO'=>'logistics', + '乐天速递'=>'ltexp', + '吉捷国际速递'=>'luckyfastex', + '鲁通快运'=>'lutong', + '马来西亚大包、EMS(Malaysia Post(parcel,EMS))'=>'malaysiaems', + '中俄速通(淼信)'=>'mxe56', + '诺尔国际物流'=>'nuoer', + '葡萄牙(Portugal CTT)'=>'portugalctt', + '急顺通'=>'pzhjst', + 'Quantium'=>'quantium', + '全通快运'=>'quantwl', + '日日顺快线'=>'rrskx', + '卢旺达(Rwanda i-posita)'=>'rwanda', + 'S2C'=>'s2c', + '三盛快递'=>'sanshengco', + '塞尔维亚(PE Post of Serbia)'=>'serbia', + '曹操到'=>'sfpost', + '上海快通'=>'shanghaikuaitong', + '闪货极速达'=>'shanhuodidi', + '圣安物流'=>'shenganwuliu', + '世运快递'=>'shiyunkuaidi', + 'wish邮'=>'shpostwish', + '顺邦国际物流'=>'shunbang', + '顺捷达'=>'shunjieda', + '中外运空运'=>'sinoairinex', + 'skynet'=>'skynet', + '荷兰Sky Post'=>'skypost', + '首通快运'=>'staky', + '星速递'=>'starex', + '速呈宅配'=>'sucheng', + '苏丹(Sudapost)'=>'sudapost', + '速配欧翼'=>'superoz', + '深圳DPEX'=>'szdpex', + '淘布斯国际物流'=>'taoplus', + '天纵物流'=>'tianzong', + '通和天下'=>'tonghetianxia', + '海龟国际快递'=>'turtle', + '天翼物流'=>'tywl99', + '优联吉运'=>'uluckex', + '万达美'=>'wdm', + '文捷航空'=>'wenjiesudi', + 'WTD海外通'=>'wtdex', + '迅选物流'=>'xunxuan', + '一邦速递'=>'yibangwuliu', + '银捷速递'=>'yinjiesudi', + '易通达'=>'yitongda', + '优胜国际速递'=>'yoseus', + '粤中国际货运代理(上海)有限公司'=>'yuezhongsh', + '珠峰速运'=>'zf365', + '众辉达物流'=>'zhdwl', + 'AAA Cooper Transportation'=>'aaacooper', + 'aCommerce'=>'acommerce', + '安达易国际速递'=>'adiexpress', + 'ADSone'=>'adsone', + '阿富汗(Afghan Post)'=>'afghan', + 'AFL'=>'afl', + 'Agility Logistics'=>'agility', + '卡邦配送'=>'ahkbps', + '捷记方舟'=>'ajexpress', + '奥兰群岛'=>'aland', + 'AlfaTrex'=>'alfatrex', + 'Algeria Post'=>'algeria', + 'ALLIED'=>'alliedexpress', + 'amazon-国际订单'=>'amusorder', + '安家同城快运'=>'anjiatongcheng', + '新干线快递'=>'anlexpress', + 'Anteraja'=>'anteraja', + '澳速物流'=>'aosu', + '美国汉邦快递'=>'aplus100', + 'ARC'=>'arc', + '艾瑞斯远'=>'ariesfar', + 'Asendia HK'=>'asendiahk', + '澳达国际物流'=>'auadexpress', + '澳邦国际物流'=>'ausbondexpress', + 'AUV国际快递'=>'auvexpress', + '澳新物流'=>'axexpress', + '阿塞拜疆EMS(EMS AzerExpressPost)'=>'azerbaijan', + '巴林(Bahrain Post)'=>'bahrain', + '百世国际'=>'baishiguoji', + '报通快递'=>'baoxianda', + '巴巴多斯(Barbados Post)'=>'barbados', + 'BCWELT'=>'bcwelt', + 'BDC快递'=>'bdcgcc', + 'BEE express'=>'beeexpress', + '伯利兹(Belize Postal)'=>'belize', + '贝宁'=>'benin', + '飛斯特'=>'bester', + '不丹邮政 Bhutan Post'=>'bhutan', + '远通盛源'=>'bjytsywl', + '佰乐捷通'=>'bljt56', + 'BlueDart'=>'bluedart', + '标杆物流'=>'bmlchina', + '玻利维亚'=>'bolivia', + 'BorderGuru'=>'borderguru', + '堡昕德速递'=>'bosind', + '百千诚物流'=>'bqcwl', + 'BRT'=>'brt', + '文莱(Brunei Postal)'=>'brunei', + '新喀里多尼亚[法国](New Caledonia)'=>'caledonia', + '到了港'=>'camekong', + '能装能送'=>'canhold', + '卢森堡航空'=>'cargolux', + '广州信邦'=>'cbllogistics', + '钏博物流'=>'cbo56', + '中迅三方'=>'cd3fwl', + 'CEVA Logistics'=>'ceva', + 'CEVA Logistic'=>'cevalogistics', + '城铁速递'=>'cex', + '成达国际速递'=>'chengda', + '城通物流'=>'chengtong', + '智利(Correos Chile)'=>'chile', + '中国邮政(CHINA POST)'=>'chinapost', + '荣通国际'=>'chinaqingguan', + 'SQK国际速递'=>'chinasqk', + 'Chronopost Portugal'=>'chronopostport', + '中国香港骏辉物流'=>'chunfai', + 'CE易欧通国际速递'=>'cloudexpress', + 'CL日中速运'=>'clsp', + '中澳速递'=>'cnausu', + 'CNPEX中邮快递'=>'cnpex', + 'Corporate couriers logistics'=>'corporatecouriers', + '莫桑比克(Correios de Moçambique)'=>'correios', + '乌拉圭(Correo Uruguayo)'=>'correo', + '重庆星程快递'=>'cqxingcheng', + '环旅快运'=>'crossbox', + '达速物流'=>'dasu', + 'DCS'=>'dcs', + '叮当同城'=>'ddotbase', + '德中快递'=>'decnlh', + 'Delhivery'=>'delhivery', + '东风全球速递'=>'dfglobalex', + 'DHL HK'=>'dhlhk', + 'dhluk'=>'dhluk', + '云南滇驿物流'=>'dianyi', + '递达速运'=>'didasuyun', + '叮咚澳洲转运'=>'dindon', + '叮咚快递'=>'dingdong', + 'Direct Link'=>'directlink', + '递四方澳洲'=>'disifangau', + '吉布提'=>'djibouti', + '天翔东捷运'=>'djy56', + '东瀚物流'=>'donghanwl', + 'Dotzot'=>'dotzot', + '老司机国际快递'=>'driverfastgo', + 'DTD'=>'dtd', + 'DTDC India'=>'dtdcindia', + '多道供应链'=>'duodao56', + '东方航空物流'=>'ealceair', + 'E跨通'=>'ecallturn', + 'EC-Firstclass'=>'ecfirstclass', + 'ECMS Express'=>'ecmsglobal', + 'Ecom Express'=>'ecomexpress', + '东西E全运'=>'ecotransite', + '厄瓜多尔(Correos del Ecuador)'=>'ecuador', + '埃及(Egypt Post)'=>'egypt', + 'Ekart'=>'ekart', + '易联通达'=>'el56', + '希腊包裹(ELTA Hellenic Post)'=>'elta', + '希腊EMS(ELTA Courier)'=>'eltahell', + '阿联酋(Emirates Post)'=>'emirates', + '阿联酋(Emirates Post)'=>'emiratesen', + '波兰小包(Poczta Polska)'=>'emonitoringen', + '乌克兰EMS(EMS Ukraine)'=>'emsukraine', + '乌克兰EMS-中文(EMS Ukraine)'=>'emsukrainecn', + '联众国际'=>'epspost', + 'Estes'=>'estes', + 'ETEEN专线'=>'eteenlog', + '埃塞俄比亚(Ethiopian postal)'=>'ethiopia', + '埃塞俄比亚(Ethiopian Post)'=>'ethiopian', + 'E通速递'=>'etong', + '中欧国际物流'=>'eucnrail', + '德国 EUC POST'=>'eucpost', + 'EU-EXPRESS'=>'euexpress', + '易邮国际'=>'euguoji', + '易优包裹'=>'eupackage', + '败欧洲'=>'europe8', + 'europeanecom'=>'europeanecom', + '飛斯特運通'=>'exbtr', + 'Expeditors'=>'expeditors', + '探路速运'=>'explorer56', + '澳洲新干线快递'=>'expressplus', + '易转运'=>'ezhuanyuan', + '颿达国际快递-英文'=>'fandaguoji', + 'Fastway Ireland'=>'fastway', + '正途供应链'=>'fastzt', + 'FedEx-英国件(FedEx UK)'=>'fedexuk', + 'FedEx-英国件'=>'fedexukcn', + '丰羿'=>'fengyee', + '斐济(Fiji Post)'=>'fiji', + '芬兰(Itella Posti Oy)'=>'finland', + 'First Flight'=>'firstflight', + 'First Logistics'=>'firstlogistics', + 'Flash Express'=>'flashexpress', + '花瓣转运'=>'flowerkd', + 'FQ狂派速递'=>'freakyquick', + '法翔速运'=>'ftlexpress', + '飞云快递系统'=>'fyex', + '高铁快运'=>'gaotieex', + 'Gati-KWE'=>'gatikwe', + '广东诚通物流'=>'gdct56', + '全网物流'=>'gdqwwl', + '容智快运'=>'gdrz58', + '新鹏快递'=>'gdxp', + 'GE2D跨境物流'=>'ge2d', + '格鲁吉亚(Georgian Pos)'=>'georgianpost', + '加纳'=>'ghanapost', + '环创物流'=>'ghl', + '直布罗陀[英国]( Royal Gibraltar Post)'=>'gibraltar', + 'GIZTIX'=>'giztix', + '全球特快'=>'global99', + '时安达速递'=>'goex', + 'GOGOX'=>'gogox', + 'gojavas'=>'gojavas', + 'Grab'=>'grab', + '格陵兰[丹麦](TELE Greenland A/S)'=>'greenland', + '潍鸿'=>'grivertek', + '哥士传奇速递'=>'gscq365', + '德尚国际速递'=>'gslexpress', + '万通快递'=>'gswtkd', + 'GT国际快运'=>'gtgogo', + '广东通路'=>'guangdongtonglu', + '永邦快递'=>'guangdongyongbang', + '冠庭国际物流'=>'guanting', + '国顺达物流'=>'guoshunda', + '国送快运'=>'guosong', + '圭亚那'=>'guyana', + '宏观国际快递'=>'gvpexpress', + '光线速递'=>'gxwl', + '贵州星程快递'=>'gzxingcheng', + '货六六'=>'h66', + '海红for买卖宝'=>'haihongmmb', + '海中转运'=>'haizhongzhuanyun', + '汉邦国际速递'=>'handboy', + '好又快物流'=>'haoyoukuai', + '亚美尼亚(Haypost-Armenian Postal)'=>'haypost', + '恒瑞物流'=>'hengrui56', + '合心速递'=>'hexinexpress', + 'Hi淘易快递'=>'hitaoe', + '猴急送'=>'hjs', + '互联快运'=>'hlkytj', + '共联配'=>'hlpgyl', + '中强物流'=>'hnzqwl', + 'Holisol'=>'holisollogistics', + '居家通'=>'homexpress', + '洪都拉斯'=>'honduras', + '环球通达 '=>'hqtd', + '卓烨快递'=>'hrbzykd', + '高铁速递'=>'hre', + '克罗地亚(Hrvatska Posta)'=>'hrvatska', + '海硕高铁速递'=>'hsgtsd', + '海淘物流'=>'ht22', + '华通务达物流'=>'htwd', + '华达快运'=>'huada', + '华夏货运'=>'huaxiahuoyun', + '驼峰国际'=>'humpline', + 'hunter Express'=>'hunterexpress', + '鸿远物流'=>'hyeship', + '上海昊宏国际货物'=>'hyk', + '华航快递'=>'hzpl', + '冰岛(Iceland Post)'=>'iceland', + 'ID Express'=>'idexpress', + '泛太优达'=>'iex', + 'iExpress'=>'iexpress', + '无限速递'=>'igcaexpress', + 'logen路坚'=>'ilogen', + 'ILYANG'=>'ilyang', + '艾姆勒'=>'imlb2c', + '印度尼西亚EMS(Pos Indonesia-EMS)'=>'indonesia', + 'INDOPAKET'=>'indopaket', + '多米尼加(INPOSDOM – Instituto Postal Dominicano)'=>'inposdom', + '捷运达快递'=>'interjz', + 'Interlink Express'=>'interlink', + 'Interparcel'=>'interparcel', + '伊朗(Iran Post)'=>'iran', + '以色列(Israel Post)'=>'israelpost', + 'Italy SDA'=>'italysad', + 'IXPRESS'=>'ixpress', + 'janio'=>'janio', + '骏达快递'=>'jdexpressusa', + '急递'=>'jdpplus', + '泽西岛'=>'jerseypost', + '极兔国际'=>'jet', + '澳速通国际速递'=>'jetexpressgroup', + 'J&T Express'=>'jetexpresszh', + '捷仕'=>'jetstarexp', + '佳家通货运'=>'jiajiatong56', + '锦程物流'=>'jinchengwuliu', + '近端'=>'jinduan', + '劲通快递'=>'jintongkd', + '晋越快递'=>'jinyuekuaidi', + '冀速物流'=>'jisu', + '九宫物流'=>'jiugong', + '久易快递'=>'jiuyicn', + '吉祥邮(澳洲)'=>'jixiangyouau', + 'JNE'=>'jne', + '约旦(Jordan Post)'=>'jordan', + 'J&T Express 泰国'=>'jtexpressth', + '聚物物流'=>'juwu', + '聚中大'=>'juzhongda', + 'Kaha Epress'=>'kahaexpress', + '哈萨克斯坦(Kazpost)'=>'kazpost', + 'Kerry Express'=>'kerryexpress', + '启邦国际物流'=>'keypon', + '快服务'=>'kfwnet', + '柬埔寨中通'=>'khzto', + '番薯国际货运'=>'koali', + '淘韩国际快递'=>'krtao', + '快速递'=>'ksudi', + '快达物流'=>'kuaidawuliu', + 'Kuehne+Nagel'=>'kuehnenagel', + 'KURASI'=>'kurasi', + '凯信达'=>'kxda', + '吉尔吉斯斯坦(Kyrgyz Post)'=>'kyrgyzpost', + '跨跃国际'=>'kyue', + '蓝镖快递'=>'lanbiaokuaidi', + 'Landmark Global'=>'landmarkglobal', + '蓝弧快递'=>'lanhukuaidi', + '老挝(Lao Express) '=>'lao', + '塞内加尔'=>'laposte', + '林安物流'=>'lasy56', + '拉脱维亚(Latvijas Pasts)'=>'latviaen', + '立白宝凯物流'=>'lbbk', + '两点之间'=>'ldzy168', + '乐达全球速递'=>'ledaexpress', + '云豹国际货运'=>'leopard', + '美联快递'=>'letseml', + 'Laxship'=>'lexship', + 'lazada'=>'lgs', + '联运快递'=>'lianyun', + '黎巴嫩(Liban Post)'=>'libanpost', + 'Linex'=>'linex', + 'Lion Parcel'=>'lionparcel', + '小熊物流'=>'littlebearbear', + '良藤国际速递'=>'lmfex', + '隆浪快递'=>'longlangkuaidi', + '长风物流'=>'longvast', + 'Loomis Express'=>'loomisexpress', + '6LS EXPRESS'=>'lsexpress', + '路邦物流'=>'lubang56', + '论道国际物流'=>'lundao', + '卢森堡(Luxembourg Post)'=>'luxembourg', + '卢森堡(Luxembourg Post)'=>'luxembourgde', + '卢森堡(Luxembourg Post)'=>'luxembourgfr', + '中国澳门(Macau Post)'=>'macao', + '马其顿(Macedonian Post)'=>'macedonia', + 'Maersk'=>'maersk', + 'mailamericas'=>'mailamericas', + '麦力快递'=>'mailikuaidi', + '迈隆递运'=>'mailongdy', + 'Mainfreight'=>'mainfreight', + '马尔代夫(Maldives Post)'=>'maldives', + '马耳他(Malta Post)'=>'malta', + '芒果速递'=>'mangguo', + '今枫国际快运'=>'mapleexpress', + '毛里求斯(Mauritius Post)'=>'mauritius', + '澳洲迈速快递'=>'maxeedexpress', + '美邦国际快递'=>'meibang', + '美达快递'=>'meidaexpress', + '墨西哥(Correos de Mexico)'=>'mexico', + 'Mexico Senda Express'=>'mexicodenda', + '美龙快递'=>'mjexp', + 'Mitsui OSK Lines'=>'mol', + '摩尔多瓦(Posta Moldovei)'=>'moldova', + '蒙古国(Mongol Post) '=>'mongolpost', + '黑山(Posta Crne Gore)'=>'montenegro', + '摩洛哥 ( Morocco Post )'=>'morocco', + 'MRW'=>'mrw', + 'Mexico Multipack'=>'multipack', + 'MyHermes'=>'myhermes', + '新亚物流'=>'nalexpress', + '纳米比亚(NamPost)'=>'namibia', + 'NandanCourier'=>'nandan', + 'Nationex'=>'nationex', + '红马速递'=>'nedahm', + '荷兰速递(Nederland Post)'=>'nederlandpost', + '尼尔快递'=>'nell', + '尼泊尔(Nepal Postal Services)'=>'nepalpost', + 'Network Courier'=>'networkcourier', + '尼日利亚(Nigerian Postal)'=>'nigerianpost', + 'Ninja Van '=>'ninjavan', + 'ninja xpress'=>'ninjaxpress', + 'Nippon Express'=>'nipponexpress', + '牛仔速运'=>'niuzaiexpress', + 'NLE'=>'nle', + '华赫物流'=>'nmhuahe', + 'Nova Poshta'=>'novaposhta', + '偌亚奥国际快递'=>'nuoyaao', + 'NYK Line'=>'nyk', + 'OCA Argentina'=>'ocaargen', + 'OCS ANA Group'=>'ocsindia', + '阿曼(Oman Post)'=>'oman', + '爱沙尼亚(Eesti Post)'=>'omniva', + '一号仓'=>'onehcang', + '昂威物流'=>'onway', + 'OPEK'=>'opek', + '波音速递'=>'overseaex', + '巴基斯坦(Pakistan Post)'=>'pakistan', + '巴拿马'=>'panama', + 'Pandu Logistics'=>'pandulogistics', + '巴拉圭(Correo Paraguayo)'=>'paraguay', + '诚一物流'=>'parcelchina', + 'Park N Pracel'=>'parknparcel', + 'paxel'=>'paxel', + 'paxelen'=>'paxelen', + '普畅物流'=>'pcwl56', + '全球速递'=>'pdstow', + '派尔快递'=>'peex', + '陪行物流'=>'peixingwuliu', + '鹏程快递'=>'pengcheng', + '秘鲁(SERPOST)'=>'peru', + 'Parcel Freight Logistics'=>'pflogistics', + 'pickupp'=>'pickupp', + '品速心达快递'=>'pinsuxinda', + '品信快递'=>'pinxinkuaidi', + '葡萄牙(Portugal CTT)'=>'portugalctten', + 'Portugal Seur'=>'portugalseur', + 'POS INDONESIA'=>'posindonesia', + '坦桑尼亚(Tanzania Posts Corporation)'=>'posta', + 'PostElbe'=>'postelbe', + '巴布亚新几内亚(PNG Post)'=>'postpng', + 'PT Prima Multi Cipta'=>'primamulticipta', + '土耳其'=>'ptt', + 'ANTS EXPRESS'=>'qdants', + '7E速递'=>'qesd', + '千里速递'=>'qianli', + '启辰国际速递'=>'qichen', + '秦岭智能速运'=>'qinling', + '千顺快递'=>'qskdyxgs', + '全信通快递'=>'quanxintong', + 'Qxpress'=>'qxpress', + '全之鑫物流'=>'qzx56', + 'Red Express'=>'redexpress', + '日昱物流'=>'riyuwuliu', + '罗马尼亚(Posta Romanian)'=>'romanian', + '皇家国际速运'=>'royal', + '瑞典(Sweden Post)'=>'ruidianyouzhengen', + '润百特货'=>'runbail', + 'Safexpress'=>'safexpress', + 'Correo El Salvador'=>'salvador', + 'SAP EXPRESS'=>'sapexpress', + '沙特阿拉伯(Saudi Post)'=>'saudipost', + 'SCG'=>'scglogistics', + '速佳达快运'=>'scsujiada', + '四川星程快递'=>'scxingcheng', + '首达速运'=>'sdsy888', + 'Selektvracht'=>'selektvracht', + '森鼎国际物流'=>'sendinglog', + 'Sendle'=>'sendle', + 'International Seur'=>'seur', + '澳丰速递'=>'sfau', + '圣飞捷快递'=>'sfjhd', + 'Shadowfax'=>'shadowfax', + '衫达快运'=>'shanda56', + '上海无疆for买卖宝'=>'shanghaiwujiangmmb', + '尚途国际货运'=>'shangtuguoji', + '捎客物流'=>'shaoke', + '商海德物流'=>'shd56', + '盛通快递'=>'shengtongscm', + '神马快递'=>'shenma', + '阳光快递'=>'shiningexpress', + '王牌快递'=>'shipbyace', + '苏豪快递'=>'shipsoho', + 'SHL畅灵国际物流'=>'shlexp', + 'shreeanjanicourier'=>'shreeanjanicourier', + '顺士达速运'=>'shunshid', + 'SiCepat Ekspres'=>'sicepat', + '四海快递'=>'sihaiet', + '四海捷运'=>'sihiexpress', + 'Siodemka'=>'siodemka', + '易普递'=>'sixroad', + 'SkyNet Malaysia'=>'skynetmalaysia', + 'skynetworldwide'=>'skynetworldwide', + '斯洛伐克(Slovenská Posta)'=>'slovak', + '斯洛文尼亚(Slovenia Post)'=>'slovenia', + '斯里兰卡(Sri Lanka Post)'=>'slpost', + '嗖一下同城快递'=>'sofast56', + '所罗门群岛'=>'solomon', + '布基纳法索'=>'sonapost', + '南非(South African Post Office)'=>'southafrican', + '行必达'=>'speeda', + '申必达'=>'speedoex', + 'Spoton'=>'spoton', + '速速达'=>'ssd', + '星运快递'=>'staryvr', + '圣卢西亚'=>'stlucia', + '智德物流'=>'stzd56', + '特急便物流'=>'sucmj', + '郑州速捷'=>'sujievip', + '速品快递'=>'supinexpress', + '苏里南'=>'surpost', + '圣文森特和格林纳丁斯'=>'svgpost', + '斯威士兰'=>'swaziland', + '瑞士邮政'=>'swisspostcn', + '顺友物流'=>'sypost', + '天美快递'=>'taimek', + '坦桑尼亚(Tanzania Posts)'=>'tanzania', + '淘特物流快递'=>'taote', + 'TCI XPS'=>'tcixps', + 'GPI'=>'tcxbthai', + 'TD Cargo'=>'tdcargo', + 'The BlueBhell Couriers'=>'thebluebhellcouriers', + '加拿大雷霆快递'=>'thunderexpress', + '天翔快递'=>'tianxiang', + 'TiKi'=>'tiki', + '万家通快递'=>'timedg', + 'Shree Tirupati'=>'tirupati', + '天联快运'=>'tlky', + '株式会社T.M.G'=>'tmg', + 'TNT Italy'=>'tntitaly', + 'TNT Post'=>'tntpostcn', + 'TNT UK'=>'tntuk', + '通达兴物流'=>'tongdaxing', + '顶世国际物流'=>'topshey', + 'The Professional Couriers'=>'tpcindia', + 'Trans Kargo'=>'transkargologistics', + '突尼斯EMS(Rapid-Poste)'=>'tunisia', + 'UEX国际物流'=>'uex', + '欧洲UEX'=>'uexiex', + '乌干达(Posta Uganda)'=>'uganda', + '邮鸽速运'=>'ugoexpress', + '乌克兰小包、大包(UkrPoshta)'=>'ukraine', + '乌克兰小包、大包(UkrPost)'=>'ukrpost', + 'Uni Express'=>'uniexpress', + 'UParcel'=>'uparcel', + 'UPS Freight'=>'upsfreight', + 'UPS Mail Innovations'=>'upsmailinno', + '华夏国际速递'=>'uschuaxia', + 'UTAO优到'=>'utaoscm', + '瓦努阿图(Vanuatu Post)'=>'vanuatu', + '越中国际物流'=>'vctrans', + '越南小包(Vietnam Posts)'=>'vietnam', + '维普恩物流'=>'vps', + 'Wahana'=>'wahana', + '万博快递'=>'wanboex', + '威速递'=>'wexpress', + '香港伟豪国际物流'=>'whgjkd', + '凡仕特物流'=>'wlfast', + '万理诺物流'=>'wln', + '星空国际'=>'wlwex', + '渥途国际速运'=>'wotu', + 'wowexpress'=>'wowexpress', + '沃埃家'=>'wowvip', + '臣邦同城'=>'wto56kj', + '万运国际快递'=>'wygj168', + '微转运'=>'wzhaunyun', + '国晶物流'=>'xdshipping', + '蓝天物流'=>'xflt56', + '鑫宏福物流'=>'xhf56', + '西安城联速递'=>'xianchengliansudi', + '翔腾物流'=>'xiangteng', + '西安喜来快递'=>'xilaikd', + '新元快递'=>'xingyuankuaidi', + '新宁物流'=>'xinning', + '西邮寄'=>'xipost', + 'XpressBees'=>'xpressbees', + '鑫世锐达'=>'xsrd', + '鑫通宝物流'=>'xtb', + '鑫远东速运'=>'xyd666', + '西游寄速递'=>'xyjexpress', + '一辉物流'=>'yatfai', + 'YCG物流'=>'ycgglobal', + '易达丰国际速递'=>'ydfexpress', + '也门(Yemen Post)'=>'yemen', + '驿递汇速递'=>'yidihui', + '艺凡快递'=>'yifankd', + '易航物流'=>'yihangmall', + 'yikonn'=>'yikonn', + '亿领速运'=>'yilingsuyun', + '易欧洲国际物流'=>'yiouzhou', + '一柒国际物流'=>'yiqiguojiwuliu', + '亿顺航'=>'yishunhang', + '宜送'=>'yisong', + '易邮速运'=>'yiyou', + '益加盛快递'=>'yjs', + '运通快运'=>'ytky168', + 'Yusen Logistics'=>'yusen', + '西安运逸快递'=>'yyexp', + '一运全成物流'=>'yyqc56', + '赞比亚'=>'zampost', + '智谷特货'=>'zhiguil', + '志腾物流'=>'zhitengwuliu', + '众派速递'=>'zhpex', + '卓实快运'=>'zhuoshikuaiyun', + '振捷国际货运'=>'zjgj56', + '转瞬达集运'=>'zsda56', + '准实快运'=>'zsky123', + ]; + return isset($codeArr[$company]) ? $codeArr[$company] : ''; + } +} diff --git a/config/settings.php b/config/settings.php index cbde7e09..ab2c2403 100644 --- a/config/settings.php +++ b/config/settings.php @@ -6,4 +6,24 @@ return [ // 售后过期时间(天) 'sale_after_expire_days' => 7, + + // 签到配置,每次积分、连续N天、连续奖励积分 + 'sign_click_points'=>5, + 'sign_click_continue'=>7, + 'sign_click_continue_points'=>10, + + // 文章分类配置: 帮助、协议、健康 + 'article_help'=>1, + 'article_agreement'=>2, + 'article_health'=>3, + + // 快递100是否开启 + 'kuaidi100_is_use' => true, + 'kuaidi100_callback'=> '', + 'kuaidi100_app_key'=> 'BTvgbjti4727', + 'kuaidi100_customer'=> '064109188EC4D85DA655DFC342144C6A', + 'kuaidi100_secret'=> '1bd287d1981749f2a30ea74cac0ab99c', + 'kuaidi100_userid'=> 'ec0b6ec7729d4f22824cfd3c519dd45b', + + ]; diff --git a/database/migrations/2021_12_17_203048_create_kuaidi_logs_table.php b/database/migrations/2021_12_17_203048_create_kuaidi_logs_table.php new file mode 100644 index 00000000..fd34e45b --- /dev/null +++ b/database/migrations/2021_12_17_203048_create_kuaidi_logs_table.php @@ -0,0 +1,37 @@ +id(); + $table->string('shipping_number')->comment('快递单号'); + $table->string('shipping_company')->comment('快递公司'); + $table->string('shipping_code')->nullable()->comment('快递公司编号'); + $table->json('shipping_info')->nullable()->comment('物流情况明细'); + $table->timestamps(); + + $table->index('shipping_number'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('kuaidi_logs'); + } +}