Ver código fonte

方法名修改

luolongfei 4 anos atrás
pai
commit
788902210c
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      app/Console/FreeNom.php
  2. 1 1
      run

+ 1 - 1
app/Console/FreeNom.php

@@ -88,7 +88,7 @@ class FreeNom
     /**
      * @return FreeNom
      */
-    public static function instance()
+    public static function getInstance()
     {
         if (!self::$instance instanceof self) {
             self::$instance = new self();

+ 1 - 1
run

@@ -65,7 +65,7 @@ try {
     $class = sprintf('Luolongfei\App\Console\%s', get_argv('c', 'FreeNom'));
     $fn = get_argv('m', 'handle');
 
-    $class::instance()->$fn();
+    $class::getInstance()->$fn();
 } catch (\Exception $e) {
     system_log(sprintf('执行出错:<red>%s</red>', $e->getMessage()), $e->getTrace());
     Message::send("执行出错:\n" . $e->getMessage(), '主人,捕获异常');