Files

40 lines
2.4 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
// +----------------------------------------------------------------------
// | YwxApp [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2026-2036 http://ywxapp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: ywxapp<admin@ywxapp.cn>
// +----------------------------------------------------------------------
// | 应用市场(appmall)插件【运行期配置的规范默认源】
// |
// | 本文件是 config('appmall.*') 的完整默认集合(代码级默认值,支持 .env 覆盖)。
// | 后台「插件配置」表单(config.php) 仅负责「可编辑字段 + 默认值展示」,
// | 数据库保存值按最高优先级覆盖本文件。读取一律用 config('appmall.xxx')。
// |
// | 约定:布尔项统一用 booltrue/false),不要写 '1'/'0'(字符串),
// | 以免代码 if(!$v) 判定出错('0' 在 PHP 里是 truthy)。
// +----------------------------------------------------------------------
return [
// ===== 市场基础设置(仅中心站相关:运营与开发者自助)=====
'appmall_name' => 'YwxApp 应用市场',
'allow_register' => true, // 开放开发者自助注册
'need_approval' => true, // 注册后需审核(审核通过才下发开发者令牌)
'allow_upload' => true, // 允许后台上传发布核心包
// ===== 官方市场发布(把本机插件推送到 www.ywxapp.cn 官方公共市场)=====
// 与「远程中心站」是两回事:这里是【主动推送】,下面是【被动拉取】。
'developer_token' => env('APPMARKET_DEV_TOKEN', ''),
'developer_name' => env('APPMARKET_DEV_NAME', ''),
// ===== 远程市场 / 中心站客户机模式(仅当 ywxapp.api_url 指向其他服务器时生效)=====
// 「谁是中心站」由 config/ywxapp.php 的 api_url 决定(留空=本机即中心站,无需下面这些)。
'remote_token' => env('APPMARKET_REMOTE_TOKEN', ''), // 客户机↔中心站共享密钥,须与中心站一致
'ssl_verify' => env('APPMARKET_SSL_VERIFY', true), // 连接远程市场时 SSL 证书校验
// ===== 交易 / 安全 =====
'commission_rate' => env('APPMARKET_COMMISSION_RATE', 0.2), // 平台抽成 0~1
'security_scan' => env('APPMARKET_SECURITY_SCAN', true), // 发布前 PHP 语法+高危函数扫描
];