Parcourir la source

remove: 快递查询子类实现 invokeClass。

使用旧的方式来查快递,升级版必须到crmeb内置的服务请求。
joe il y a 4 ans
Parent
commit
20700014ae
1 fichiers modifiés avec 14 ajouts et 14 suppressions
  1. 14 14
      crmeb/services/express/Express.php

+ 14 - 14
crmeb/services/express/Express.php

@@ -40,19 +40,19 @@ class Express extends BaseManager
      * @param $class
      * @return mixed|void
      */
-    protected function invokeClass($class)
-    {
-        if (!class_exists($class)) {
-            throw new \RuntimeException('class not exists: ' . $class);
-        }
-        $this->getConfigFile();
+    // protected function invokeClass($class)
+    // {
+    //     if (!class_exists($class)) {
+    //         throw new \RuntimeException('class not exists: ' . $class);
+    //     }
+    //     $this->getConfigFile();
 
-        if (!$this->config) {
-            $this->config = Config::get($this->configFile . '.stores.' . $this->name, []);
-        }
-        $handleAccessToken = new AccessTokenServeService($this->config['account'] ?? '', $this->config['secret'] ?? '', app()->cache);
-        $handle = Container::getInstance()->invokeClass($class, [$this->name, $handleAccessToken, $this->configFile]);
-        $this->config = [];
-        return $handle;
-    }
+    //     if (!$this->config) {
+    //         $this->config = Config::get($this->configFile . '.stores.' . $this->name, []);
+    //     }
+    //     $handleAccessToken = new AccessTokenServeService($this->config['account'] ?? '', $this->config['secret'] ?? '', app()->cache);
+    //     $handle = Container::getInstance()->invokeClass($class, [$this->name, $handleAccessToken, $this->configFile]);
+    //     $this->config = [];
+    //     return $handle;
+    // }
 }