diff --git a/admin/.env.development b/admin/.env.development deleted file mode 100644 index 819eabb4..00000000 --- a/admin/.env.development +++ /dev/null @@ -1,8 +0,0 @@ -# api请求地址 -VITE_APP_BASE_URL='http://zhjwxt.test/adminapi/' - -# 图片服务器地址 -VITE_IMG_DOMAIN='' - -# 请求时header中token的参数名 -VITE_REQUEST_HEADER_TOKEN_KEY='token' diff --git a/admin/.env.production b/admin/.env.production deleted file mode 100644 index 5f49894b..00000000 --- a/admin/.env.production +++ /dev/null @@ -1,9 +0,0 @@ -# api请求地址 -VITE_APP_BASE_URL='http://146.56.228.75:20024/adminapi/' -# VITE_APP_BASE_URL='https://zh.hnhbty.cn/adminapi/' - -# 图片服务器地址 -VITE_IMG_DOMAIN='' - -# 请求时header中token的参数名 -VITE_REQUEST_HEADER_TOKEN_KEY='token' diff --git a/admin/auto-imports.d.ts b/admin/auto-imports.d.ts deleted file mode 100644 index a51b7a66..00000000 --- a/admin/auto-imports.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -// Generated by 'unplugin-auto-import' -export {} -declare global { - const ElNotification: typeof import('element-plus/es')['ElNotification'] -} diff --git a/admin/components.d.ts b/admin/components.d.ts deleted file mode 100644 index bcd19574..00000000 --- a/admin/components.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -// generated by unplugin-vue-components -// We suggest you to commit this file into source control -// Read more: https://github.com/vuejs/core/pull/3399 -import '@vue/runtime-core' - -export {} - -declare module '@vue/runtime-core' { - export interface GlobalComponents { - Attachment: typeof import('./src/components/upload-attachment/attachment.vue')['default'] - DiyLink: typeof import('./src/components/diy-link/index.vue')['default'] - Editor: typeof import('./src/components/editor/index.vue')['default'] - ElAside: typeof import('element-plus/es')['ElAside'] - ElAvatar: typeof import('element-plus/es')['ElAvatar'] - ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb'] - ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem'] - ElButton: typeof import('element-plus/es')['ElButton'] - ElCard: typeof import('element-plus/es')['ElCard'] - ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] - ElCol: typeof import('element-plus/es')['ElCol'] - ElColorPicker: typeof import('element-plus/es')['ElColorPicker'] - ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] - ElContainer: typeof import('element-plus/es')['ElContainer'] - ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] - ElDialog: typeof import('element-plus/es')['ElDialog'] - ElDrawer: typeof import('element-plus/es')['ElDrawer'] - ElDropdown: typeof import('element-plus/es')['ElDropdown'] - ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] - ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] - ElForm: typeof import('element-plus/es')['ElForm'] - ElFormItem: typeof import('element-plus/es')['ElFormItem'] - ElHeader: typeof import('element-plus/es')['ElHeader'] - ElIcon: typeof import('element-plus/es')['ElIcon'] - ElImage: typeof import('element-plus/es')['ElImage'] - ElImageViewer: typeof import('element-plus/es')['ElImageViewer'] - ElInput: typeof import('element-plus/es')['ElInput'] - ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] - ElMain: typeof import('element-plus/es')['ElMain'] - ElMenu: typeof import('element-plus/es')['ElMenu'] - ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] - ElOption: typeof import('element-plus/es')['ElOption'] - ElPagination: typeof import('element-plus/es')['ElPagination'] - ElPopover: typeof import('element-plus/es')['ElPopover'] - ElRadio: typeof import('element-plus/es')['ElRadio'] - ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] - ElRow: typeof import('element-plus/es')['ElRow'] - ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] - ElSelect: typeof import('element-plus/es')['ElSelect'] - ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] - ElSwitch: typeof import('element-plus/es')['ElSwitch'] - ElTable: typeof import('element-plus/es')['ElTable'] - ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] - ElTabPane: typeof import('element-plus/es')['ElTabPane'] - ElTabs: typeof import('element-plus/es')['ElTabs'] - ElTag: typeof import('element-plus/es')['ElTag'] - ElTooltip: typeof import('element-plus/es')['ElTooltip'] - ElTree: typeof import('element-plus/es')['ElTree'] - ElUpload: typeof import('element-plus/es')['ElUpload'] - ExportSure: typeof import('./src/components/export-sure/index.vue')['default'] - HeatMap: typeof import('./src/components/heat-map/index.vue')['default'] - Icon: typeof import('./src/components/icon/index.vue')['default'] - PopoverInput: typeof import('./src/components/popover-input/index.vue')['default'] - RangeInput: typeof import('./src/components/range-input/index.vue')['default'] - RouterLink: typeof import('vue-router')['RouterLink'] - RouterView: typeof import('vue-router')['RouterView'] - SelectArea: typeof import('./src/components/select-area/index.vue')['default'] - SelectIcon: typeof import('./src/components/select-icon/index.vue')['default'] - TencentMapPicker: typeof import('./src/components/TencentMapPicker.vue')['default'] - UploadAttachment: typeof import('./src/components/upload-attachment/index.vue')['default'] - UploadFile: typeof import('./src/components/upload-file/index.vue')['default'] - UploadImage: typeof import('./src/components/upload-image/index.vue')['default'] - UploadVideo: typeof import('./src/components/upload-video/index.vue')['default'] - Verify: typeof import('./src/components/verifition/Verify.vue')['default'] - VerifyPoints: typeof import('./src/components/verifition/Verify/VerifyPoints.vue')['default'] - VerifySlide: typeof import('./src/components/verifition/Verify/VerifySlide.vue')['default'] - VideoPlayer: typeof import('./src/components/video-player/index.vue')['default'] - WebLink: typeof import('./src/components/web-link/web-link.vue')['default'] - } - export interface ComponentCustomProperties { - vLoading: typeof import('element-plus/es')['ElLoadingDirective'] - } -} diff --git a/niucloud/app/adminapi/config/config.php b/niucloud/app/adminapi/config/config.php deleted file mode 100644 index 22922f76..00000000 --- a/niucloud/app/adminapi/config/config.php +++ /dev/null @@ -1,15 +0,0 @@ - 'json', -]; diff --git a/niucloud/app/adminapi/config/route.php b/niucloud/app/adminapi/config/route.php deleted file mode 100644 index e1ab5d39..00000000 --- a/niucloud/app/adminapi/config/route.php +++ /dev/null @@ -1,21 +0,0 @@ - true, - // 合并路由规则 - 'route_rule_merge' => true, - // 路由是否完全匹配 - 'route_complete_match' => true, - // 是否自动转换URL中的控制器和操作名 - 'url_convert' => false, -]; diff --git a/niucloud/app/api/config/config.php b/niucloud/app/api/config/config.php deleted file mode 100644 index b7ffcc3a..00000000 --- a/niucloud/app/api/config/config.php +++ /dev/null @@ -1,15 +0,0 @@ - 'json', -]; diff --git a/niucloud/app/api/config/route.php b/niucloud/app/api/config/route.php deleted file mode 100644 index 7719f17d..00000000 --- a/niucloud/app/api/config/route.php +++ /dev/null @@ -1,21 +0,0 @@ - true, - // 合并路由规则 - 'route_rule_merge' => true, - // 路由是否完全匹配 - 'route_complete_match' => true, - // 是否自动转换URL中的控制器和操作名 - 'url_convert' => true, -]; diff --git a/niucloud/config/app.php b/niucloud/config/app.php deleted file mode 100644 index 3dada4b4..00000000 --- a/niucloud/config/app.php +++ /dev/null @@ -1,32 +0,0 @@ - env('app.host', ''), - // 应用的命名空间 - 'app_namespace' => '', - // 是否启用路由 - 'with_route' => true, - // 默认应用 - 'default_app' => 'index', - // 默认时区 - 'default_timezone' => 'Asia/Shanghai', - - // 应用映射(自动多应用模式有效) - 'app_map' => [], - // 域名绑定(自动多应用模式有效) - 'domain_bind' => [], - // 禁止URL访问的应用列表(自动多应用模式有效) - 'deny_app_list' => [], - - // 异常页面的模板文件 - 'exception_tmpl' => app()->getThinkPath() . 'tpl/think_exception.tpl', - - // 错误显示信息,非调试模式有效 - 'error_message' => '页面错误!请稍后再试~', - // 显示错误信息 - 'show_error_msg' => false, -]; diff --git a/niucloud/config/cache.php b/niucloud/config/cache.php deleted file mode 100644 index 34f9e1aa..00000000 --- a/niucloud/config/cache.php +++ /dev/null @@ -1,51 +0,0 @@ - env('cache.driver', 'file'), - - // 缓存连接方式配置 - 'stores' => [ - 'file' => [ - // 驱动方式 - 'type' => 'File', - // 缓存保存目录 - 'path' => app()->getRuntimePath() . 'cache' . DIRECTORY_SEPARATOR, - // 缓存前缀 - 'prefix' => '', - // 缓存有效期 0表示永久缓存 - 'expire' => 0, - // 缓存标签前缀 - 'tag_prefix' => 'tag:', - // 序列化机制 例如 ['serialize', 'unserialize'] - 'serialize' => [], - ], - // 更多的缓存连接 - // redis - 'redis' => [ - // 驱动方式 - 'type' => 'redis', - // 服务器地址 - 'host' => env('redis.redis_hostname', '127.0.0.1'), - // 端口 - 'port' => env('redis.port', '6379'), - // 密码 - 'password' => env('redis.redis_password', ''), - // 缓存有效期 0表示永久缓存 - 'expire' => 0 , - // 缓存前缀 - 'prefix' => '', - // 缓存标签前缀 - 'tag_prefix' => 'tag:', - // 数据库 0号数据库 - 'select' => env('redis.select', 0), - 'serialize' => [], - // 服务端主动关闭 - 'timeout' => 0 - ], - ], -]; diff --git a/niucloud/config/captcha.php b/niucloud/config/captcha.php deleted file mode 100644 index 39d7fbc9..00000000 --- a/niucloud/config/captcha.php +++ /dev/null @@ -1,39 +0,0 @@ - 4, - // 验证码字符集合 - 'codeSet' => '1234567890', - // 验证码过期时间 - 'expire' => 1800, - // 是否使用中文验证码 - 'useZh' => false, - // 是否使用算术验证码 - 'math' => false, - // 是否使用背景图 - 'useImgBg' => false, - //验证码字符大小 - 'fontSize' => 14, - // 是否使用混淆曲线 - 'useCurve' => true, - //是否添加杂点 - 'useNoise' => true, - // 验证码字体 不设置则随机 - 'fontttf' => '', - //背景颜色 - 'bg' => [243, 251, 254], - // 验证码图片高度 - 'imageH' => 36, - // 验证码图片宽度 - 'imageW' => 100, - - // 添加额外的验证码设置 - // verify => [ - // 'length'=>4, - // ... - //], -]; diff --git a/niucloud/config/console.php b/niucloud/config/console.php deleted file mode 100644 index 244e1bf5..00000000 --- a/niucloud/config/console.php +++ /dev/null @@ -1,24 +0,0 @@ - [ - 'addon:install' => 'app\command\Addon\Install', - 'addon:uninstall' => 'app\command\Addon\Uninstall', - 'menu:refresh' => 'app\command\Menu', - //消息队列 自定义命令 - 'queue:work' => 'app\command\queue\Queue', - 'queue:restart' => 'app\command\queue\Queue', - 'queue:listen' => 'app\command\queue\Queue', - - //计划任务 自定义命令 - 'cron:schedule' => 'app\command\schedule\Schedule', - - //wokrerman的启动停止和重启 - 'workerman' => 'app\command\workerman\Workerman', - ], -]; -return (new DictLoader("Console"))->load($data); diff --git a/niucloud/config/cookie.php b/niucloud/config/cookie.php deleted file mode 100644 index d3b3aab9..00000000 --- a/niucloud/config/cookie.php +++ /dev/null @@ -1,20 +0,0 @@ - 0, - // cookie 保存路径 - 'path' => '/', - // cookie 有效域名 - 'domain' => '', - // cookie 启用安全传输 - 'secure' => false, - // httponly设置 - 'httponly' => false, - // 是否使用 setcookie - 'setcookie' => true, - // samesite 设置,支持 'strict' 'lax' - 'samesite' => '', -]; diff --git a/niucloud/config/cron.php b/niucloud/config/cron.php deleted file mode 100644 index e5a24290..00000000 --- a/niucloud/config/cron.php +++ /dev/null @@ -1,5 +0,0 @@ - [] -]; \ No newline at end of file diff --git a/niucloud/config/database.php b/niucloud/config/database.php deleted file mode 100644 index d15ca88b..00000000 --- a/niucloud/config/database.php +++ /dev/null @@ -1,63 +0,0 @@ - env('database.driver', 'mysql'), - - // 自定义时间查询规则 - 'time_query_rule' => [], - - // 自动写入时间戳字段 - // true为自动识别类型 false关闭 - // 字符串则明确指定时间字段类型 支持 int timestamp datetime date - 'auto_timestamp' => true, - - // 时间字段取出后的默认时间格式 - 'datetime_format' => 'Y-m-d H:i:s', - - // 时间字段配置 配置格式:create_time,update_time - 'datetime_field' => '', - - // 数据库连接配置信息 - 'connections' => [ - 'mysql' => [ - // 数据库类型 - 'type' => env('database.type', 'mysql'), - // 服务器地址 - 'hostname' => env('database.hostname', '127.0.0.1'), - // 数据库名 - 'database' => env('database.database', ''), - // 用户名 - 'username' => env('database.username', 'root'), - // 密码 - 'password' => env('database.password', ''), - // 端口 - 'hostport' => env('database.hostport', '3306'), - // 数据库连接参数 - 'params' => [], - // 数据库编码默认采用utf8 - 'charset' => env('database.charset', 'utf8mb4'), - // 数据库表前缀 - 'prefix' => env('database.prefix', 'ns_'), - - // 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器) - 'deploy' => 0, - // 数据库读写是否分离 主从式有效 - 'rw_separate' => false, - // 读写分离后 主服务器数量 - 'master_num' => 1, - // 指定从服务器序号 - 'slave_no' => '', - // 是否严格检查字段是否存在 - 'fields_strict' => true, - // 是否需要断线重连 - 'break_reconnect' => false, - // 监听SQL - 'trigger_sql' => env('app_debug', true), - // 开启字段缓存 - 'fields_cache' => false, - ], - - // 更多的数据库配置信息 - ], -]; diff --git a/niucloud/config/filesystem.php b/niucloud/config/filesystem.php deleted file mode 100644 index 965297e8..00000000 --- a/niucloud/config/filesystem.php +++ /dev/null @@ -1,24 +0,0 @@ - env('filesystem.driver', 'local'), - // 磁盘列表 - 'disks' => [ - 'local' => [ - 'type' => 'local', - 'root' => app()->getRuntimePath() . 'storage', - ], - 'public' => [ - // 磁盘类型 - 'type' => 'local', - // 磁盘路径 - 'root' => app()->getRootPath() . 'public/storage', - // 磁盘路径对应的外部URL路径 - 'url' => '/storage', - // 可见性 - 'visibility' => 'public', - ], - // 更多的磁盘配置信息 - ], -]; diff --git a/niucloud/config/gateway_worker.php b/niucloud/config/gateway_worker.php deleted file mode 100644 index 21d1ebe2..00000000 --- a/niucloud/config/gateway_worker.php +++ /dev/null @@ -1,45 +0,0 @@ - -// +---------------------------------------------------------------------- -// +---------------------------------------------------------------------- -// | Workerman设置 仅对 php think worker:gateway 指令有效 -// +---------------------------------------------------------------------- -return [ - // 扩展自身需要的配置 - 'protocol' => 'websocket', // 协议 支持 tcp udp unix http websocket text - 'host' => '0.0.0.0', // 监听地址 - 'port' => 2348, // 监听端口 - 'socket' => '', // 完整监听地址 - 'context' => [], // socket 上下文选项 - 'register_deploy' => true, // 是否需要部署register - 'businessWorker_deploy' => true, // 是否需要部署businessWorker - 'gateway_deploy' => true, // 是否需要部署gateway - - // Register配置 - 'registerAddress' => '127.0.0.1:1236', - - // Gateway配置 - 'name' => 'thinkphp', - 'count' => 1, - 'lanIp' => '127.0.0.1', - 'startPort' => 2000, - 'daemonize' => false, - 'pingInterval' => 30, - 'pingNotResponseLimit' => 0, - 'pingData' => '{"type":"ping"}', - - // BusinsessWorker配置 - 'businessWorker' => [ - 'name' => 'BusinessWorker', - 'count' => 1, - 'eventHandler' => '\think\worker\Events', - ], - -]; diff --git a/niucloud/config/imgcaptcha.php b/niucloud/config/imgcaptcha.php deleted file mode 100644 index 4374d0cd..00000000 --- a/niucloud/config/imgcaptcha.php +++ /dev/null @@ -1,30 +0,0 @@ - '', //自定义字体包路径, 不填使用默认值 - //文字验证码 - 'click_world' => [ - 'backgrounds' => [] - ], - //滑动验证码 - 'block_puzzle' => [ - 'backgrounds' => [], //背景图片路径, 不填使用默认值 - 'templates' => [], //模板图 - 'offset' => 10, //容错偏移量 - ], - //水印 - 'watermark' => [ - 'fontsize' => 12, - 'color' => '#ffffff', - 'text' => '' - ], - 'cache' => [ - 'constructor' => [Cache::class, 'instance'] - ] -]; diff --git a/niucloud/config/install.php b/niucloud/config/install.php deleted file mode 100644 index 2c6420c7..00000000 --- a/niucloud/config/install.php +++ /dev/null @@ -1,79 +0,0 @@ - 'NIUCLOUD-ADMIN', - // logo - 'logo' => 'logo.jpg', - // 官网地址 - 'website_url' => 'https://www.niucloud.com', - // 论坛地址 - 'bbs_url' => 'http://bbs.niucloud.com', - // 编译帮助手册 - 'build_manual' => 'https://www.kancloud.cn/niushop/niucloud-admin-app/3199825', - // 安装协议 - 'agreement' => '版权所有 (c)2023,niucloud-admin保留所有权利。 -

- 感谢您选择niucloud-admin【以下简称niucloud】,niucloud-admin后台采用thinkphp6+php8+mysql,前端采用uniapp前后端分离的技术开发,全部源码开放。
- 为了使您正确并合法的使用本软件,请您在使用前务必阅读清楚下面的协议条款: -

-

- 一、本协议适用于niucloud-admin框架以及框架内所有应用,使用前请您务必仔细阅读本协议须知并勾选接受或者不接受,如不接受此协议,那么您无权利继续注册并使用本协议涉及的所有服务,如果您继续注册,登录,订阅等行为,则视为默认接受本协议。niucloud官方对本授权协议拥有最终解释权。 -

-

- 二、协议许可权利 -

    -
  1. 1、用户接受并承诺遵守本协议才可登录niucloud-admin官网订购应用,如果用户不同意,那么不允许在niucloud-admin官网注册账号并登录体验。
  2. -
  3. 2、用户必须是具有独立民事责任行为能力的自然人、法人或其他组织个人。若用户不具备前述资格,那么该用户及其监护人应承担导致的一切后果。并且官方有权利对其账号进行冻结,对官方造成的利益损害有权进行申诉索赔。
  4. -
  5. 3、用户可登录niucloud-admin官网下载并安装免费版应用。
  6. -
  7. 4、若需要安装付费版应用,用户需要登录niucloud-admin官网付费并订购付费版应用后才可下载安装。
  8. -
  9. 5、在更新niucloud-admin框架到最新版时,请务必对原整站内容进行备份,否则niucloud官方对升级过程中造成的数据丢失等问题不承担任何责任。
  10. -
  11. 6、niucloud官方下架应用造成的无法更新,官方不承担任何责任。
  12. -
  13. 7、niucloud官方因商业需求,暂停应用的更新,官方不承担任何责任。
  14. -
  15. 8、niucloud官网有权根据需要不时地制订、修改本协议或各类规则,并以公示的方式进行公告,不再单独通知用户。变更后的协议和规则一经公布后,立即自动生效。如用户不同意相关变更,应当立即停止使用niucloud-admin付费应用。如果用户继续订阅、使用niucloud-admin付费应用,即表示用户接受经修订的协议。
  16. -
-

-

- 三、协议规定的约束和限制 -

    -
  1. 1、请尊重开发人员劳动成果,严禁对本框架进行转卖、销售或二次开发后转卖、销售等商业行为。
  2. -
  3. 2、任何企业和个人不允许对程序代码以任何形式任何目的再发布。
  4. -
  5. 3、基于niucloud-admin应用从事的任何商业行为,都与niucloud官方无关。
  6. -
  7. 4、授权niucloud-admin付费应用时,必须要确保授权信息主体录入的准确性,否则出现的法律纠纷与niucloud官方无关,需要自行解决。
  8. -
  9. 5、应用金额以最终结算价格为准,已售出的应用不做任何差价补偿。
  10. -
  11. 6、如果用户利用特殊手段以低价或者免费获得付费应用,niucloud官方有权对应用进行回收。
  12. -
  13. 7、niucloud-admin付费应用一旦完成交易下载源码,不得以任何形式和理由进行退款,请在购买前仔细阅读本协议。
  14. -
  15. 8、基于niucloud-admin框架进行应用的开发,必须保留框架版权信息。
  16. -
-

-

- 四、知识产权声明 -

    -
  1. 1、niucloud-admin框架应用源代码所有权和著作权归niucloud官方所有,基于niucloud-admin框架开发的应用,所有权和著作权归应用开发商所有。
  2. -
  3. 2、niucloud-admin框架所依托的代码、文字、图片等著作权、专利权及其他知识产权均归niucloud官方所有,除另外有特别声明。
  4. -
-

- -

五、有限担保和免责声明

-

- 本软件及所附带的文件是作为不提供任何明确的或隐含的赔偿或担保的形式提供的。
- 用户出于自愿而使用本软件,您必须了解使用本软件的风险,在尚未购买产品技术服务之前,我们不承诺对免费用户提供任何形式的技术支持、使用担保,也不承担任何因使用本软件而产生问题的相关责任。 - 电子文本形式的授权协议如同双方书面签署的协议一样,具有完全的和等同的法律效力。您一旦开始确认本协议并安装niucloud-admin框架,即被视为完全理解并接受本协议的各项条款,在享有上述条款授予的权力的同时,受到相关的约束和限制。协议许可范围以外的行为,将直接违反本授权协议并构成侵权,我们有权随时终止授权,责令停止损害,并保留追究相关责任的权力。 -

', - // 站点名称 - 'admin_site_name' => 'NIUCLOUD ADMIN', - // admin 端登录页默认图 - 'admin_login_bg' => 'install/img/niushop_login_index_left.jpg', - // admin 端默认logo - 'admin_logo' => 'install/img/logo.jpg' -]; diff --git a/niucloud/config/lang.php b/niucloud/config/lang.php deleted file mode 100644 index 24fb387e..00000000 --- a/niucloud/config/lang.php +++ /dev/null @@ -1,27 +0,0 @@ - env('lang.default_lang', 'zh-cn'), - // 允许的语言列表 - 'allow_lang_list' => ['zh-cn', 'en'], - // 多语言自动侦测变量名 - 'detect_var' => 'lang', - // 是否使用Cookie记录 - 'use_cookie' => false, - // 多语言cookie变量 - 'cookie_var' => 'lang', - // 多语言header变量 - 'header_var' => 'lang', - 'extend_list' => [ - ], - // Accept-Language转义为对应语言包名称 - 'accept_language' => [ - 'zh-hans-cn' => 'zh-cn', - ], - // 是否支持语言分组 - 'allow_group' => true, -]; diff --git a/niucloud/config/log.php b/niucloud/config/log.php deleted file mode 100644 index ea24ff9d..00000000 --- a/niucloud/config/log.php +++ /dev/null @@ -1,45 +0,0 @@ - env('log.channel', 'file'), - // 日志记录级别 - 'level' => [], - // 日志类型记录的通道 ['error'=>'email',...] - 'type_channel' => [], - // 关闭全局日志写入 - 'close' => false, - // 全局日志处理 支持闭包 - 'processor' => null, - - // 日志通道列表 - 'channels' => [ - 'file' => [ - // 日志记录方式 - 'type' => 'File', - // 日志保存目录 - 'path' => '', - // 单文件日志写入 - 'single' => false, - // 独立日志级别 - 'apart_level' => [], - // 最大日志文件数量 - 'max_files' => 0, - // 使用JSON格式记录 - 'json' => false, - // 日志处理 - 'processor' => null, - // 关闭通道日志写入 - 'close' => false, - // 日志输出格式化 - 'format' => '[%s][%s] %s', - // 是否实时写入 - 'realtime_write' => false, - ], - // 其它日志通道配置 - ], - -]; diff --git a/niucloud/config/middleware.php b/niucloud/config/middleware.php deleted file mode 100644 index 7e1972f5..00000000 --- a/niucloud/config/middleware.php +++ /dev/null @@ -1,8 +0,0 @@ - [], - // 优先级设置,此数组中的中间件会按照数组中的顺序优先执行 - 'priority' => [], -]; diff --git a/niucloud/config/niucloud.php b/niucloud/config/niucloud.php deleted file mode 100644 index 1d15de69..00000000 --- a/niucloud/config/niucloud.php +++ /dev/null @@ -1,16 +0,0 @@ - [ - 'code' => env('niucloud.code', ''),//授权码 - 'secret' => env('niucloud.secret', ''),//授权秘钥 - ], - 'http' => [ - 'max_retries' => 1,// 重试次数,默认 1,指定当 http 请求失败时重试的次数。 - 'retry_delay' => 1000,//重试延迟间隔(单位:ms),默认 500 - 'timeout' => 5.0,//最大运行时间(超时) - 'verify' => false,//请求时验证SSL证书行为。设置成 true 启用SSL证书验证,默认使用操作系统提供的CA包。设置成 false 禁用证书验证(这是不安全的!)。设置成字符串启用验证,并使用该字符串作为自定义证书CA包的路径。 - ], - 'response_type' => 'array', - -]; diff --git a/niucloud/config/oauth.php b/niucloud/config/oauth.php deleted file mode 100644 index e34704ed..00000000 --- a/niucloud/config/oauth.php +++ /dev/null @@ -1,26 +0,0 @@ - 'wechat', - //驱动厂商列表及参数-第三方授权 - 'drivers' => [ - //微信公众号 - 'wechat' => [ - - ], - //微信小程序 - 'weapp' => [ - - ] - ] -]; diff --git a/niucloud/config/pay.php b/niucloud/config/pay.php deleted file mode 100644 index 4a8eb2fb..00000000 --- a/niucloud/config/pay.php +++ /dev/null @@ -1,33 +0,0 @@ - 'wechatpay', - //驱动 - 'drivers' => [ - //微信 - 'wechatpay' => [], - //支付宝 - 'alipay' => [], - //余额 - 'balancepay' => [ - 'driver' => 'app\service\core\paytype\CoreBalanceService', //反射类的名字 - ], - 'offlinepay' => [ - 'driver' => 'app\service\core\paytype\CoreOfflineService' - ] - ] -]; - -return (new DictLoader("Config"))->load(['data' => $system, 'name' => 'pay']); diff --git a/niucloud/config/poster.php b/niucloud/config/poster.php deleted file mode 100644 index ffed52e2..00000000 --- a/niucloud/config/poster.php +++ /dev/null @@ -1,22 +0,0 @@ - 'poster', - //驱动厂商列表及参数-海报 - 'drivers' => [ - //牛云默认海报 - 'poster' => [ - - ] - ] -]; diff --git a/niucloud/config/route.php b/niucloud/config/route.php deleted file mode 100644 index 2f4cd129..00000000 --- a/niucloud/config/route.php +++ /dev/null @@ -1,45 +0,0 @@ - '/', - // URL伪静态后缀 - 'url_html_suffix' => 'html', - // URL普通方式参数 用于自动生成 - 'url_common_param' => true, - // 是否开启路由延迟解析 - 'url_lazy_route' => false, - // 是否强制使用路由 - 'url_route_must' => false, - // 合并路由规则 - 'route_rule_merge' => false, - // 路由是否完全匹配 - 'route_complete_match' => false, - // 访问控制器层名称 - 'controller_layer' => 'controller', - // 空控制器名 - 'empty_controller' => 'Error', - // 是否使用控制器后缀 - 'controller_suffix' => false, - // 默认的路由变量规则 - 'default_route_pattern' => '[\w\.]+', - // 是否开启请求缓存 true自动缓存 支持设置请求缓存规则 - 'request_cache_key' => false, - // 请求缓存有效期 - 'request_cache_expire' => null, - // 全局请求缓存排除规则 - 'request_cache_except' => [], - // 默认控制器名 - 'default_controller' => 'Index', - // 默认操作名 - 'default_action' => 'index', - // 操作方法后缀 - 'action_suffix' => '', - // 默认JSONP格式返回的处理方法 - 'default_jsonp_handler' => 'jsonpReturn', - // 默认JSONP处理方法 - 'var_jsonp_handler' => 'callback', -]; diff --git a/niucloud/config/session.php b/niucloud/config/session.php deleted file mode 100644 index c1ef6e16..00000000 --- a/niucloud/config/session.php +++ /dev/null @@ -1,19 +0,0 @@ - 'PHPSESSID', - // SESSION_ID的提交变量,解决flash上传跨域 - 'var_session_id' => '', - // 驱动方式 支持file cache - 'type' => 'file', - // 存储连接标识 当type使用cache的时候有效 - 'store' => null, - // 过期时间 - 'expire' => 1440, - // 前缀 - 'prefix' => '', -]; diff --git a/niucloud/config/sms.php b/niucloud/config/sms.php deleted file mode 100644 index 114fb4d2..00000000 --- a/niucloud/config/sms.php +++ /dev/null @@ -1,36 +0,0 @@ - 'aliyun', - //驱动厂商列表及参数-短信 - 'drivers' => [ - //阿里云 - 'aliyun' => [ - 'driver' => 'core\sms\Aliyun', //反射类的名字 - 'app_key' => '', - 'secret_key' => '', - 'sign' => '', - ], - //腾讯云 - 'tencent' => [ - 'secret_id' => '', - 'secret_key' => '', - 'sign' => '', - 'app_id' => '', - ] - ] -]; - -return (new DictLoader("Config"))->load(['data' => $system, 'name' => 'sms']); diff --git a/niucloud/config/terminal.php b/niucloud/config/terminal.php deleted file mode 100644 index 77b6fdb5..00000000 --- a/niucloud/config/terminal.php +++ /dev/null @@ -1,44 +0,0 @@ - [ - - // 查看版本的命令 - 'version' => [ - 'npm' => 'npm -v', - 'node' => 'node -v', - ], - 'npm-admin' => [ - 'cwd' => 'admin', - 'command' => 'npm install', - ], - - 'npm-web' => [ - 'cwd' => 'web', - 'command' => 'npm install', - ], - - 'npm-uni-app' => [ - 'cwd' => 'uni-app', - 'command' => 'npm install', - ], - - 'composer-install' => [ - 'cwd' => 'niucloud', - 'command' => 'composer update', - ], - // 切换到国内镜像 - 'set-mirror' => [ - //切换到淘宝镜像 - 'npm' => 'npm config set registry https://registry.npmjs.org', - //切换到阿里云镜像 - 'composer' => 'composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/', - ], - ], -]; - diff --git a/niucloud/config/trace.php b/niucloud/config/trace.php deleted file mode 100644 index 0b2ee6d1..00000000 --- a/niucloud/config/trace.php +++ /dev/null @@ -1,10 +0,0 @@ - env('app_trace_type', 'Html'), - // 读取的日志通道名 - 'channel' => '', -]; diff --git a/niucloud/config/upload.php b/niucloud/config/upload.php deleted file mode 100644 index a2603480..00000000 --- a/niucloud/config/upload.php +++ /dev/null @@ -1,98 +0,0 @@ - 'local',//默认驱动 - 'drivers' => [ - //本地上传 - 'local' => [], - //七牛云 - 'qiniu' => [ - 'access_key' => '', - 'secret_key' => '', - 'bucket' => '' - ], - //阿里云 - 'aliyun' => [ - 'access_key' => '', - 'secret_key' => '', - 'endpoint' => '', - 'bucket' => '' - ], - //腾讯云 - 'tencent' => [ - 'access_key' => '', - 'secret_key' => '', - 'region' => '', - 'bucket' => '' - ], - ], - // 默认规则 - 'rules' => [ - 'image' => [ - 'ext' => ['jpg', 'jpeg', 'png', 'gif'], - 'mime' => ['image/jpeg', 'image/gif', 'image/png'], - 'size' => 10485760 - ], - 'video' => [ - 'ext' => ['mp4'], - 'mime' => ['video/mp4'], - 'size' => 104857600 - ], - 'wechat' => [ - 'ext' => ['pem', 'key'], - 'mime' => [ - 'application/x-x509-ca-cert', - 'application/octet-stream', - 'application/x-iwork-keynote-sffkey' - ], - 'size' => 2097152 - ], - 'aliyun' => [ - 'ext' => ['crt'], - 'mime' => [ - 'application/x-x509-ca-cert', - 'application/octet-stream' - ], - 'size' => 2097152 - ], - 'applet' => [ - 'ext' => ['zip', 'rar'], - 'mime' => [ - 'application/zip', - 'application/vnd.rar', - 'application/x-zip-compressed' - ], - 'size' => 2097152 - ], - 'excel' => [ - 'ext' => ['xls', 'xlsx'], - 'mime' => [ - 'application/vnd.ms-excel', - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', - ], - 'size' => 10485760 - ] - ], - 'thumb' => [ - 'thumb_type' => [ - 'big' => [ - 'width' => 1200, - 'height' => 1200, - ], - 'mid' => [ - 'width' => 800, - 'height' => 800, - ], - 'small' => [ - 'width' => 200, - 'height' => 200, - ], - ] - - - ] -]; - -return (new DictLoader("Config"))->load(['data' => $system, 'name' => 'upload']); diff --git a/niucloud/config/version.php b/niucloud/config/version.php deleted file mode 100644 index 67c29f73..00000000 --- a/niucloud/config/version.php +++ /dev/null @@ -1,6 +0,0 @@ - '1.5.1', - 'code' => '2025022201' -]; diff --git a/niucloud/config/view.php b/niucloud/config/view.php deleted file mode 100644 index 5f39a1d6..00000000 --- a/niucloud/config/view.php +++ /dev/null @@ -1,31 +0,0 @@ - 'Think', - // 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写 3 保持操作方法 - 'auto_rule' => 1, - // 模板目录名 - 'view_dir_name' => 'view', - // 模板后缀 - 'view_suffix' => 'html', - // 模板文件名分隔符 - 'view_depr' => DIRECTORY_SEPARATOR, - // 模板引擎普通标签开始标记 - 'tpl_begin' => '{', - // 模板引擎普通标签结束标记 - 'tpl_end' => '}', - // 标签库标签开始标记 - 'taglib_begin' => '{', - // 标签库标签结束标记 - 'taglib_end' => '}', - 'tpl_cache' => false, //模板缓存,部署模式后改为true - 'tpl_replace_string' => [ - 'INSTALL_IMG' => '/install/img', - 'INSTALL_CSS' => '/install/css', - 'INSTALL_JS' => '/install/js', - ] -]; diff --git a/niucloud/core/printer/sdk/yilianyun/config/YlyConfig.php b/niucloud/core/printer/sdk/yilianyun/config/YlyConfig.php deleted file mode 100644 index cdf00b9e..00000000 --- a/niucloud/core/printer/sdk/yilianyun/config/YlyConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -clientId = $clientId; - $this->clientSecret = $clientSecret; - } - - public function getClientId() - { - return $this->clientId; - } - - - public function getClientSecret() - { - return $this->clientSecret; - } - - public function getRequestUrl() - { - return $this->requestUrl; - } - - public function setRequestUrl($requestUrl) - { - $this->requestUrl = $requestUrl; - } - - public function getLog() - { - return $this->log; - } - - public function setLog($log) - { - if (!method_exists($log, "info")) { - throw new InvalidArgumentException("logger need have method 'info(\$message)'"); - } - if (!method_exists($log, "error")) { - throw new InvalidArgumentException("logger need have method 'error(\$message)'"); - } - $this->log = $log; - } - -}