xieruidong 2 年之前
父節點
當前提交
dea1386c83
共有 2 個文件被更改,包括 10 次插入0 次删除
  1. 3 0
      application/common.php
  2. 7 0
      extend/logistics/QueryInterface.php

+ 3 - 0
application/common.php

@@ -668,4 +668,7 @@ function seconds2Time($seconds){
     $sec=$seconds-$minute*60;
     $minute=$minute-$hour*60;
     return sprintf('%02d:%02d:%02d',$hour,$minute,$sec);
+}
+function logistics(){
+    return new
 }

+ 7 - 0
extend/logistics/QueryInterface.php

@@ -68,4 +68,11 @@ abstract class QueryInterface{
         }
         return Arr::get($this->logistics,$field);
     }
+
+    public static function init():self{
+        $provider=[
+            'kd100'=>Kd100::class,
+        ];
+        return new $provider['kd100'];
+    }
 }