rabin 6 天之前
父節點
當前提交
2d5a1dc695
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/Lib/Type/Code.php
  2. 1 1
      app/Lib/Type/Notify.php

+ 1 - 1
app/Lib/Type/Code.php

@@ -23,7 +23,7 @@ class Code
         foreach ($template['method'] as $k => $v) {
             $config = Dever::db('msg/account')->find(['method' => $v]);
             if ($config) {
-                $handle = Dever::load('\\Msg\\Lib\\Method\\' . $config['method']);
+                $handle = Dever::load('Msg\\Lib\\Method\\' . $config['method']);
                 $data['account'] = $handle->init($template['id'], $config['id'], $account, $project);
                 $this->valid($data);
                 if ($config['test'] == 2) {

+ 1 - 1
app/Lib/Type/Notify.php

@@ -12,7 +12,7 @@ class Notify
         foreach ($template['method'] as $k => $v) {
             $config = Dever::db('msg/account')->find(['method' => $v]);
             if ($config) {
-                $handle = Dever::load('\\Msg\\Lib\\Method\\' . $config['method']);
+                $handle = Dever::load('Msg\\Lib\\Method\\' . $config['method']);
                 $data['account'] = $handle->init($template['id'], $config['id'], $account, $project);
                 if ($config['test'] == 2) {
                     $api = Dever::load(Account::class)->get($config['api_account_id'], $project);