mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-12-28 02:15:58 +08:00
插件管理优化
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
<button class="layui-btn layui-btn-primary layui-bg-gray layui-btn-sm" grp-btn lay-event="showWaitInstall">待安装</button>
|
||||
</script>
|
||||
<script type="text/html" id="plugin-state">
|
||||
<input type="checkbox" name="state" value="{{d.id}}" lay-skin="switch" lay-text="启用|禁用" lay-filter="pluginEnable" {{ d.state == 1 ? 'checked' : '' }} />
|
||||
<input type="checkbox" name="state" value="{{d.platform}}" lay-skin="switch" lay-text="启用|禁用" lay-filter="pluginEnable" {{ d.state == 1 ? 'checked' : '' }} />
|
||||
</script>
|
||||
<script type="text/html" id="plugin-action">
|
||||
<a href="javascript:;" class="layui-font-green" lay-event="createConfig">配置</a><div class="divider-vl"></div>
|
||||
@@ -105,8 +105,8 @@
|
||||
// 启用状态
|
||||
form.on('switch(pluginEnable)', function (obj) {
|
||||
const state = obj.elem.checked == true ? 1 : 0;
|
||||
const id = obj.value;
|
||||
const field = { state: state, id: id };
|
||||
const platform = obj.value;
|
||||
const field = { state: state, platform: platform };
|
||||
plugin.enable(obj, field);
|
||||
return false;
|
||||
});
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
<?php echo "<?php\n"; ?>
|
||||
// +----------------------------------------------------------------------
|
||||
// | 支付监听配置,一个文件,一个账号
|
||||
// +----------------------------------------------------------------------
|
||||
return [
|
||||
// 用户账号配置
|
||||
'user' => [
|
||||
'pid' => <?php echo $pid; ?>,
|
||||
'key' => '<?php echo $key; ?>'
|
||||
],
|
||||
// 收款平台账号配置
|
||||
'pay' => [
|
||||
// 账号id
|
||||
'aid' => <?php echo $aid; ?>,
|
||||
// 收款平台
|
||||
'platform' => '<?php echo $platform; ?>',
|
||||
// 收款平台
|
||||
'payclass' => '<?php echo $payclass; ?>',
|
||||
// 账号
|
||||
'account' => '<?php echo $account; ?>',
|
||||
// 密码
|
||||
'password' => '<?php echo $password; ?>',
|
||||
// 订单查询参数配置
|
||||
'query' => <?php echo $query; ?>,
|
||||
]
|
||||
];
|
||||
@@ -1,6 +0,0 @@
|
||||
<?php echo "<?php\n"; ?>
|
||||
// +----------------------------------------------------------------------
|
||||
// | 支持平台
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return <?php echo var_export($data, true); ?>;
|
||||
Reference in New Issue
Block a user