Files
zyt/server/config/project.php

168 lines
7.8 KiB
PHP
Executable File
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
return [
// 系统版本号
'version' => '1.9.4',
// 官网
'website' => [
'name' => env('project.web_name', 'likeadmin'), // 网站名称
'url' => env('project.web_url', 'www.likeadmin.cn/'), // 网站地址
'login_image' => 'resource/image/adminapi/default/login_image.png',
'web_logo' => 'resource/image/adminapi/default/web_logo.jpg', // 网站logo
'web_favicon' => 'resource/image/adminapi/default/web_favicon.ico', // 网站图标
'shop_name' => 'likeadmin', // 商城名称
'shop_logo' => 'resource/image/adminapi/default/shop_logo.png', // 商城图标
'pc_logo' => 'resource/image/adminapi/default/pc_logo.png', // pc_logo
'pc_ico' => 'resource/image/adminapi/default/web_favicon.ico', // pc_ico
'pc_title' => 'likeadmin', // PC网站标题
'h5_favicon' => 'resource/image/adminapi/default/web_favicon.ico', // 网站图标
],
// 后台登录
'admin_login' => [
// 管理后台登录限制 0-不限制 1-需要限制
'login_restrictions' => 1,
// 限制密码错误次数
'password_error_times' => 5,
// 限制禁止多少分钟不能登录
'limit_login_time' => 30,
],
// 唯一标识,密码盐、路径加密等
'unique_identification' => env('project.unique_identification', 'likeadmin'),
// 后台管理员token(登录令牌)配置
'admin_token' => [
'expire_duration' => 3600 * 8,//管理后台token过期时长(单位秒)
'be_expire_duration' => 3600,//管理后台token临时过期前时长,自动续期
],
// 商城用户token(登录令牌)配置
'user_token' => [
'expire_duration' => 3600 * 8,//用户token过期时长(单位秒)
'be_expire_duration' => 3600,//用户token临时过期前时长,自动续期
],
// 列表页
'lists' => [
'page_size_max' => 25000,//列表页查询数量限制(列表页每页数量、导出每页数量)
'page_size' => 25, //默认每页数量
/** Excel 导出:接口内放宽 PHP 限制(JsonService::relaxLimitsForExcelExport */
'export_max_execution_time' => 600,
'export_memory_limit' => '512M',
],
// 各种默认图片
'default_image' => [
'admin_avatar' => 'resource/image/adminapi/default/avatar.png',
'user_avatar' => 'resource/image/adminapi/default/default_avatar.png',
'qq_group' => 'resource/image/adminapi/default/qq_group.png', // qq群
'customer_service' => 'resource/image/adminapi/default/customer_service.jpg', // 客服
'menu_admin' => 'resource/image/adminapi/default/menu_admin.png',// 首页快捷菜单-管理员
'menu_role' => 'resource/image/adminapi/default/menu_role.png', // 首页快捷菜单-角色
'menu_dept' => 'resource/image/adminapi/default/menu_dept.png',// 首页快捷菜单-部门
'menu_dict' => 'resource/image/adminapi/default/menu_dict.png',// 首页快捷菜单-字典
'menu_generator' => 'resource/image/adminapi/default/menu_generator.png',// 首页快捷菜单-代码生成器
'menu_auth' => 'resource/image/adminapi/default/menu_auth.png',// 首页快捷菜单-菜单权限
'menu_web' => 'resource/image/adminapi/default/menu_web.png',// 首页快捷菜单-网站信息
'menu_file' => 'resource/image/adminapi/default/menu_file.png',// 首页快捷菜单-素材中心
],
// 文件上传限制 (图片)
'file_image' => [
'jpg', 'png', 'gif', 'jpeg', 'webp', 'ico'
],
// 文件上传限制 (视频)
'file_video' => [
'wmv', 'avi', 'mpg', 'mpeg', '3gp', 'mov', 'mp4', 'flv', 'f4v', 'rmvb', 'mkv', 'webm'
],
//上传文件的格式 (文件)
'file_file' => [
'zip','rar','txt','pdf','doc','docx','xls','xlsx','ppt','pptx','csv','txt','ftr','7z','gz'
],
// 登录设置
'login' => [
// 登录方式:1-账号密码登录;2-手机短信验证码登录
'login_way' => ['1', '2'],
// 注册强制绑定手机 0-关闭 1-开启
'coerce_mobile' => 1,
// 第三方授权登录 0-关闭 1-开启
'third_auth' => 1,
// 微信授权登录 0-关闭 1-开启
'wechat_auth' => 1,
// qq授权登录 0-关闭 1-开启
'qq_auth' => 0,
// 登录政策协议 0-关闭 1-开启
'login_agreement' => 1,
],
// 后台装修
'decorate' => [
// 底部导航栏样式设置
'tabbar_style' => ['default_color' => '#999999', 'selected_color' => '#c455ff'],
],
// 医助创建订单权限:拥有以下角色ID的用户可修改任意订单,其他用户只能修改自己创建的订单
'order_edit_all_roles' => [0, 3, 4, 9, 6],
// 处方库:以下角色ID + 超级管理员(root) 可查看/编辑/删除全部;他人仅可管理自己创建的,公开处方对他人只读
'prescription_library_manage_all_roles' => [0, 3, 4, 9, 6],
// 消费者处方单:以下角色 + root 可对「待审核」处方进行通过/驳回(驳回即作废处方)
'prescription_audit_roles' => [0, 3, 4, 9, 6],
// 处方业务订单 internal_cost 等财务字段:以下角色 ID + root 可见
'prescription_order_finance_roles' => [0, 3, 4, 9, 6],
// 业务订单「关联支付单」审核:以下角色 ID + root 可操作(可与财务角色一致)
'prescription_order_payment_audit_roles' => [0, 3, 4, 9, 6],
// 订单管理列表(order/index):以下角色 ID + root 可查看全部订单,其余仅本人创建
'order_list_view_all_roles' => [0, 3, 4, 9, 6],
// 业务订单列表金额统计:医助角色 ID;非支付审核白名单的医助仅统计其诊单 assistant_id=本人 的业绩
'prescription_order_stats_assistant_role_id' => 2,
/*
* 数据隔离(按部门):全局可用,角色上的 data_scope 控制范围
* 1=全部 2=本部门及下级 3=仅本部门 4=仅本人
* root 管理员永远视为「全部」;多角色取最严格范围(数值最大,与 DataScopeService 一致)
*/
'data_scope' => [
// 顶层总开关:false 时所有列表不应用按部门的数据隔离(仍保留老的白名单规则)
'enabled' => true,
// 兜底:当用户未挂任何部门、且角色非「全部」时,只能看到自己(true=只看自己;false=返回空)
'no_dept_fallback_self' => true,
// 跳过 DataScope 的豁免角色 ID(冗余开关;一般优先用角色 data_scope=1 表达)
'exempt_roles' => [],
],
/*
* 提成结算 stats.commissionSettlementYejiStatsLogic
* require_system_auto_prescriptiontrue(默认)仅系统代开口径(is_system_auto=1),常与订单列表「全部已完成」条数不一致。
* false 时与列表一致纳入手动开方单(仍需履约完成、业绩归因等其它条件)。
* .env 可选:commission_settlement.require_system_auto = 1|0 ,未配置时读本项。
*/
'commission_settlement' => [
'require_system_auto_prescription' => (int) env('commission_settlement.require_system_auto', 1) === 1,
],
// 腾讯云实时音视频(TRTC)配置
'trtc' => [
'sdkAppId' => (int)env('trtc.sdk_app_id', 1600127710),
'secretKey' => env('trtc.secret_key', '8a6b3ce533b0e46b9d6e17d5c77bac240bc0ccdce4e3db93a0d6a1e55160c73d'),
'expireTime' => 86400,
'enable' => env('trtc.enable', false),
],
// 企业微信客户同步配置
// 从哪个部门开始同步(1=根部门,会递归获取所有子部门成员)
'qywx_sync_department_id' => 1,
// 使用「批量获取客户详情」batch/get_by_user,大幅减少 HTTP 次数(失败时自动回退逐条 get)
'qywx_sync_use_batch_detail' => true,
];