浏览代码

策略变更

Zhouzhendong 4 年之前
父节点
当前提交
220eef8fb5
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      app/Http/Controllers/TestController.php
  2. 2 2
      app/Services/LogisticService.php

+ 1 - 1
app/Http/Controllers/TestController.php

@@ -289,7 +289,7 @@ class TestController extends Controller
     public function test(Request $request)
     public function test(Request $request)
     {
     {
         $s = new LogisticService();
         $s = new LogisticService();
-        dd($s->assertExpressCompany("9765256177597"));
+        dd($s->assertExpressCompany("312087577032867"));
         dd(DB::connection("aliyunMysql")->select(DB::raw("select * from units limit 1")));
         dd(DB::connection("aliyunMysql")->select(DB::raw("select * from units limit 1")));
         $s = new LogisticService();
         $s = new LogisticService();
         $val = "integer";
         $val = "integer";

+ 2 - 2
app/Services/LogisticService.php

@@ -180,12 +180,12 @@ class LogisticService implements UserFilter
                 [
                 [
                     "length" => 13,
                     "length" => 13,
                     "type"   => "numeric",
                     "type"   => "numeric",
-                    "multiHeader"  => ["46","43","42","35","31"],
+                    "multiHeader"  => ["46","43","42","35"],
                 ],
                 ],
                 [
                 [
                     "length" => 15,
                     "length" => 15,
                     "type"   => "numeric",
                     "type"   => "numeric",
-                    "multiHeader"  => ["46","43"],
+                    "multiHeader"  => ["46","43","31"],
                 ],
                 ],
             ], "京东" => [
             ], "京东" => [
                 [
                 [