diff --git a/app/controller/api/PluginController.php b/app/controller/api/PluginController.php index 6d0228d..0af35fa 100644 --- a/app/controller/api/PluginController.php +++ b/app/controller/api/PluginController.php @@ -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; } // 保存插件类库文件 diff --git a/extend/Plugin.php b/extend/Plugin.php index 13fdcda..5c90923 100644 --- a/extend/Plugin.php +++ b/extend/Plugin.php @@ -4,7 +4,7 @@ declare(strict_types=1); class Plugin { - private static $siteUrl = 'http://localhost:60'; + private static $siteUrl = 'https://api.zhaidashi.cn'; // 获取全部插件(含本地) public static function getAllPlugins(array $local_plugin = []): array { diff --git a/view/plugin/index.html b/view/plugin/index.html index 414de9a..f48ea38 100644 --- a/view/plugin/index.html +++ b/view/plugin/index.html @@ -61,14 +61,14 @@
- 请使用{{= d.paytype==='alipay'?' 支付宝 ':' 微信支付 ' }}付款 + 请使用{{- d.paytype==='alipay'?'支付宝':'微信支付' }}付款
-

{{= d.money }}

商品:{{= d.name }}

订单:{{= d.orderid }}

+

{{= d.money }}

商品:{{= d.name }}

订单:{{= d.orderid }}

-

支付{{= d.money }}元,不要多付或少付

-

{{= d.closetime }} 前支付

+

支付{{= d.money }}元,不要多付或少付

+

{{= d.closetime }} 前支付

支付完成点击确认支付,过期请不要支付