更新插件管理

This commit is contained in:
技术老胡
2025-03-01 12:54:53 +08:00
parent 6e42b0359e
commit aff1c51227
3 changed files with 6 additions and 6 deletions

View File

@@ -197,7 +197,7 @@ class PluginController extends BaseController
{
$dir_path = runtime_path() . "auth/";
if (!is_dir($dir_path)) mkdir($dir_path, 755, true);
$auth_path = $dir_path . md5($config['platform'] . $config['class_name']) . '.json';
$auth_path = $dir_path . md5("{$config['platform']}payclient\\{$config['class_name']}") . '.json';
return file_put_contents($auth_path, json_encode(['authcode' => $authcode])) !== false ? true : false;
}
// 保存插件类库文件