Initial commit: queue workspace
Made-with: Cursor
This commit is contained in:
27
pro_v3.5.1/config/admin.php
Normal file
27
pro_v3.5.1/config/admin.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
return [
|
||||
//后台站点入口
|
||||
'admin_prefix' => 'admin',
|
||||
//客服后台入口
|
||||
'kefu_prefix' => 'kefu',
|
||||
//供应商后台入口
|
||||
'supplier_prefix' => 'supplier',
|
||||
//门店后台入口
|
||||
'store_prefix' => 'store',
|
||||
//收银台后台入口
|
||||
'cashier_prefix' => 'cashier',
|
||||
//商品默认评分
|
||||
'product_default_star' => '5.0'
|
||||
];
|
||||
57
pro_v3.5.1/config/ajcaptcha.php
Normal file
57
pro_v3.5.1/config/ajcaptcha.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
return [
|
||||
'font_file' => '', //自定义字体包路径, 不填使用默认值
|
||||
//文字验证码
|
||||
'click_world' => [
|
||||
'backgrounds' => []
|
||||
],
|
||||
//滑动验证码
|
||||
'block_puzzle' => [
|
||||
/*背景图片路径, 不填使用默认值, 支持string与array两种数据结构。string为默认图片的目录,array索引数组则为具体图片的地址*/
|
||||
'backgrounds' => [
|
||||
public_path() . 'statics/images/ajcaptcha1.jpg',
|
||||
public_path() . 'statics/images/ajcaptcha2.jpg',
|
||||
public_path() . 'statics/images/ajcaptcha3.jpg',
|
||||
public_path() . 'statics/images/ajcaptcha4.jpg',
|
||||
public_path() . 'statics/images/ajcaptcha5.jpg',
|
||||
public_path() . 'statics/images/ajcaptcha6.jpg',
|
||||
],
|
||||
|
||||
/*模板图,格式同上支持string与array*/
|
||||
'templates' => [],
|
||||
|
||||
'offset' => 10, //容错偏移量
|
||||
|
||||
'is_cache_pixel' => true, //是否开启缓存图片像素值,开启后能提升服务端响应性能(但要注意更换图片时,需要清除缓存)
|
||||
|
||||
'is_interfere' => true, //开启干扰图
|
||||
],
|
||||
//水印
|
||||
'watermark' => [
|
||||
'fontsize' => 12,
|
||||
'color' => '#000000',
|
||||
'text' => ''
|
||||
],
|
||||
'cache' => [
|
||||
//若您使用了框架,并且想使用类似于redis这样的缓存驱动,则应换成框架的中的缓存驱动
|
||||
'constructor' => app()->make(\think\Cache::class),
|
||||
'method' => [
|
||||
//遵守PSR-16规范不需要设置此项(tp6, laravel,hyperf)。如tp5就不支持(tp5缓存方法是rm,所以要配置为"delete" => "rm")
|
||||
/**
|
||||
* 'get' => 'get', //获取
|
||||
* 'set' => 'set', //设置
|
||||
* 'delete' => 'delete',//删除
|
||||
* 'has' => 'has' //key是否存在
|
||||
*/
|
||||
],
|
||||
'options' => [
|
||||
//如果您依然使用\Fastknife\Utils\CacheUtils做为您的缓存驱动,那么您可以自定义缓存配置。
|
||||
'expire' => 300,//缓存有效期 (默认为0 表示永久缓存)
|
||||
'prefix' => '', //缓存前缀
|
||||
'path' => '', //缓存目录
|
||||
'serialize' => [], //缓存序列化和反序列化方法
|
||||
]
|
||||
]
|
||||
];
|
||||
19
pro_v3.5.1/config/annotation.php
Normal file
19
pro_v3.5.1/config/annotation.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'inject' => [
|
||||
'enable' => true,
|
||||
'namespaces' => [
|
||||
'app\\',
|
||||
'crmeb\\'
|
||||
],
|
||||
],
|
||||
'route' => [
|
||||
'enable' => true,
|
||||
'controllers' => [],
|
||||
],
|
||||
'model' => [
|
||||
'enable' => true,
|
||||
],
|
||||
'ignore' => [],
|
||||
];
|
||||
47
pro_v3.5.1/config/app.php
Normal file
47
pro_v3.5.1/config/app.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | 应用设置
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
use crmeb\basic\BaseAuth;
|
||||
|
||||
return [
|
||||
// 应用地址
|
||||
'app_host' => env('HOST', ''),
|
||||
// 应用的命名空间
|
||||
'app_namespace' => '',
|
||||
// 是否启用路由
|
||||
'with_route' => true,
|
||||
// 是否启用事件
|
||||
'with_event' => true,
|
||||
// 应用映射(自动多应用模式有效)
|
||||
'app_map' => [],
|
||||
// 域名绑定(自动多应用模式有效)
|
||||
'domain_bind' => [],
|
||||
// 禁止URL访问的应用列表(自动多应用模式有效)
|
||||
'deny_app_list' => [],
|
||||
// 默认应用
|
||||
'default_app' => '',
|
||||
|
||||
'app_express' => true,
|
||||
// 默认时区
|
||||
'default_timezone' => 'Asia/Shanghai',
|
||||
// 异常页面的模板文件
|
||||
'exception_tmpl' => app()->getRootPath() . 'public/statics/exception.tpl',
|
||||
// 错误显示信息,非调试模式有效
|
||||
'error_message' => '页面错误!请稍后再试~',
|
||||
// 显示错误信息
|
||||
'show_error_msg' => false,
|
||||
// 授权密钥
|
||||
'auth_crmeb' => BaseAuth::AUTH_CRMEB
|
||||
];
|
||||
BIN
pro_v3.5.1/config/auth.php
Executable file
BIN
pro_v3.5.1/config/auth.php
Executable file
Binary file not shown.
65
pro_v3.5.1/config/cache.php
Normal file
65
pro_v3.5.1/config/cache.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | 缓存设置
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
// 默认缓存驱动
|
||||
'default' => env('CACHE_DRIVER', 'redis'),
|
||||
|
||||
// 缓存连接方式配置
|
||||
'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_HOSTNAME', '127.0.0.1'),
|
||||
// 端口
|
||||
'port' => env('REDIS_PORT', '6379'),
|
||||
// 密码
|
||||
'password' => env('REDIS_PASSWORD', ''),
|
||||
// 缓存有效期 0表示永久缓存
|
||||
'expire' => 3600 ,
|
||||
// 缓存前缀
|
||||
'prefix' => env('REDIS_PREFIX', ''),
|
||||
// 缓存标签前缀
|
||||
'tag_prefix' => env('CACHE_TAG_PREFIX', '').'CRMEB:',
|
||||
// 数据库 0号数据库
|
||||
'select' => intval(env('REDIS_SELECT', 0)),
|
||||
// 序列化机制 例如 ['serialize', 'unserialize']
|
||||
'serialize' => [],
|
||||
// 服务端主动关闭
|
||||
'timeout' => 0
|
||||
],
|
||||
],
|
||||
// gzde数据压缩
|
||||
'is_gzde' => false,
|
||||
// 所有数据缓存
|
||||
'is_data' => true,
|
||||
];
|
||||
6
pro_v3.5.1/config/captcha.php
Normal file
6
pro_v3.5.1/config/captcha.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'codeSet' => '1234567890',
|
||||
'length' => 4,
|
||||
];
|
||||
28
pro_v3.5.1/config/console.php
Normal file
28
pro_v3.5.1/config/console.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | 控制台配置
|
||||
// +----------------------------------------------------------------------
|
||||
return [
|
||||
// 执行用户(Windows下无效)
|
||||
'user' => null,
|
||||
// 指令定义
|
||||
'commands' => [
|
||||
'make:dao' => \crmeb\command\Dao::class,
|
||||
'make:service' => \crmeb\command\Service::class,
|
||||
'install' => \crmeb\command\Install::class,
|
||||
'clear:cache' => \app\command\ClearCache::class,
|
||||
'reset:password' => \app\command\ResetAdminPwd::class,
|
||||
'holiday_gift_push_task' => \app\command\HolidayGiftPushTask::class,
|
||||
'hjf:release-points' => \app\command\HjfReleasePoints::class,
|
||||
],
|
||||
];
|
||||
39
pro_v3.5.1/config/cookie.php
Normal file
39
pro_v3.5.1/config/cookie.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | Cookie设置
|
||||
// +----------------------------------------------------------------------
|
||||
return [
|
||||
// cookie 保存时间
|
||||
'expire' => 0,
|
||||
// cookie 保存路径
|
||||
'path' => '/',
|
||||
// cookie 有效域名
|
||||
'domain' => '',
|
||||
// cookie 启用安全传输
|
||||
'secure' => false,
|
||||
// httponly设置
|
||||
'httponly' => false,
|
||||
// 是否使用 setcookie
|
||||
'setcookie' => true,
|
||||
// 跨域header
|
||||
'header' => [
|
||||
'Access-Control-Allow-Origin' => '*',
|
||||
'Access-Control-Allow-Headers' => 'Client-Userid,Authori-zation,Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-Requested-With, Form-type, X-Source',
|
||||
'Access-Control-Allow-Methods' => 'GET,POST,PATCH,PUT,DELETE,OPTIONS,DELETE',
|
||||
'Access-Control-Max-Age' => '1728000',
|
||||
'Access-Control-Allow-Credentials' => 'true',
|
||||
'Access-Control-Expose-Headers' => 'Server'
|
||||
],
|
||||
// token名称
|
||||
'token_name' => 'Authori-zation',
|
||||
];
|
||||
84
pro_v3.5.1/config/database.php
Normal file
84
pro_v3.5.1/config/database.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
// 默认使用的数据库连接配置
|
||||
'default' => env('DATABASE_DRIVER', 'mysql'),
|
||||
// 自定义时间查询规则
|
||||
'time_query_rule' => [],
|
||||
// 自动写入时间戳字段
|
||||
// true为自动识别类型 false关闭
|
||||
// 字符串则明确指定时间字段类型 支持 int timestamp datetime date
|
||||
'auto_timestamp' => 'timestamp',
|
||||
// 时间字段取出后的默认时间格式
|
||||
'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'),
|
||||
// 连接dsn
|
||||
'dsn' => '',
|
||||
// 数据库连接参数
|
||||
'params' => [],
|
||||
// 数据库编码默认采用utf8
|
||||
'charset' => env('DATABASE_CHARSET', 'utf8mb4'),
|
||||
// 数据库表前缀
|
||||
'prefix' => env('DATABASE_PREFIX', 'eb_'),
|
||||
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
|
||||
'deploy' => 0,
|
||||
// 数据库读写是否分离 主从式有效
|
||||
'rw_separate' => false,
|
||||
// 读写分离后 主服务器数量
|
||||
'master_num' => 1,
|
||||
// 指定从服务器序号
|
||||
'slave_no' => '',
|
||||
// 是否严格检查字段是否存在
|
||||
'fields_strict' => true,
|
||||
// 字段缓存
|
||||
'fields_cache' => !env('APP_DEBUG', false),
|
||||
// 监听SQL
|
||||
'trigger_sql' => env('APP_DEBUG', true),
|
||||
// 是否需要进行SQL性能分析
|
||||
'sql_explain' => false,
|
||||
// Builder类
|
||||
'builder' => '',
|
||||
// Query类
|
||||
'query' => '',
|
||||
// 是否需要断线重连
|
||||
'break_reconnect' => true,
|
||||
],
|
||||
// 更多的数据库配置信息
|
||||
],
|
||||
//数据分页配置
|
||||
'page' => [
|
||||
//页码key
|
||||
'pageKey' => 'page',
|
||||
//每页截取key
|
||||
'limitKey' => 'limit',
|
||||
//每页截取最大值
|
||||
'limitMax' => 200,
|
||||
//默认条数
|
||||
'defaultLimit' => 10,
|
||||
]
|
||||
];
|
||||
24
pro_v3.5.1/config/delivery.php
Normal file
24
pro_v3.5.1/config/delivery.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | 同城配送
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
'default' => 'uupt',
|
||||
'stores' => [
|
||||
//达达
|
||||
'dada' => [],
|
||||
//uu跑腿
|
||||
'uupt' => [],
|
||||
]
|
||||
];
|
||||
20
pro_v3.5.1/config/filesystem.php
Normal file
20
pro_v3.5.1/config/filesystem.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
use think\facade\Env;
|
||||
|
||||
return [
|
||||
'default' => env('FILESYSTEM_DRIVER', 'public'),
|
||||
'disks' => [
|
||||
'local' => [
|
||||
'type' => 'local',
|
||||
'root' => app()->getRuntimePath() . 'storage',
|
||||
],
|
||||
'public' => [
|
||||
'type' => 'local',
|
||||
'root' => app()->getRootPath() . 'public/uploads',
|
||||
'url' => '/uploads',
|
||||
'visibility' => 'public',
|
||||
],
|
||||
// 更多的磁盘配置信息
|
||||
],
|
||||
];
|
||||
37
pro_v3.5.1/config/lang.php
Normal file
37
pro_v3.5.1/config/lang.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | 多语言设置
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
use think\facade\Env;
|
||||
|
||||
return [
|
||||
// 默认语言
|
||||
'default_lang' => env('DEFAULT_LANG', 'zh-cn'),
|
||||
// 允许的语言列表
|
||||
'allow_lang_list' => [],
|
||||
// 多语言自动侦测变量名
|
||||
'detect_var' => 'lang',
|
||||
// 是否使用Cookie记录
|
||||
'use_cookie' => true,
|
||||
// 多语言cookie变量
|
||||
'cookie_var' => 'think_lang',
|
||||
// 扩展语言包
|
||||
'extend_list' => [],
|
||||
// Accept-Language转义为对应语言包名称
|
||||
'accept_language' => [
|
||||
'zh-hans-cn' => 'zh-cn',
|
||||
],
|
||||
// 是否支持语言分组
|
||||
'allow_group' => false,
|
||||
];
|
||||
45
pro_v3.5.1/config/log.php
Normal file
45
pro_v3.5.1/config/log.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
use think\facade\Env;
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | 日志设置
|
||||
// +----------------------------------------------------------------------
|
||||
return [
|
||||
// 默认日志记录通道
|
||||
'default' => env('LOG_CHANNEL', 'file'),
|
||||
// 日志记录级别
|
||||
'level' => ['error', 'warning', 'info', 'fail', 'success'],
|
||||
// 日志类型记录的通道 ['error'=>'email',...]
|
||||
'type_channel' => [],
|
||||
// 是否关闭日志写入
|
||||
'close' => false,
|
||||
//是否开启业务成功日志
|
||||
'success_log' => false,
|
||||
//是否开启业务失败日志
|
||||
'fail_log' => false,
|
||||
// 日志通道列表
|
||||
'channels' => [
|
||||
'file' => [
|
||||
// 日志记录方式
|
||||
'type' => 'File',
|
||||
// 日志保存目录
|
||||
'path' => app()->getRuntimePath() . 'log' . DIRECTORY_SEPARATOR,
|
||||
// 单文件日志写入
|
||||
'single' => false,
|
||||
// 独立日志级别
|
||||
'apart_level' => ['error','info','warning','sql', 'fail', 'success'],
|
||||
// 最大日志文件数量
|
||||
'max_files' => 1000,
|
||||
],
|
||||
// 其它日志通道配置
|
||||
],
|
||||
];
|
||||
34
pro_v3.5.1/config/pay.php
Normal file
34
pro_v3.5.1/config/pay.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
//默认支付模式
|
||||
'default' => 'wechat',
|
||||
//支付方式
|
||||
'payType' => ['weixin' => '微信支付', 'yue' => '余额支付', 'offline' => '线下支付'],
|
||||
//提现方式
|
||||
'extractType' => ['alipay', 'bank', 'weixin', 'balance'],
|
||||
//配送方式
|
||||
'deliveryType' => ['send' => '商家配送', 'express' => '快递配送'],
|
||||
//驱动模式
|
||||
'stores' => [
|
||||
//微信支付
|
||||
'wechat' => [],
|
||||
//小程序支付
|
||||
'routine' => [],
|
||||
//微信h5支付
|
||||
'wechath5' => [],
|
||||
//支付宝支付
|
||||
'alipay' => [],
|
||||
//余额支付
|
||||
'yue' => [],
|
||||
]
|
||||
];
|
||||
47
pro_v3.5.1/config/plat.php
Normal file
47
pro_v3.5.1/config/plat.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 短信配置
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
//平台账号
|
||||
'account' => '',
|
||||
//平台秘钥
|
||||
'secret' => '',
|
||||
//驱动模式
|
||||
'stores' => [
|
||||
'sms' => [
|
||||
//单个手机每日发送上限
|
||||
'maxPhoneCount' => 10,
|
||||
//验证码每分钟发送上线
|
||||
'maxMinuteCount' => 20,
|
||||
//单个IP每日发送上限
|
||||
'maxIpCount' => 50,
|
||||
//短信模板id
|
||||
'template_id' => [
|
||||
//验证码自定义时效
|
||||
'VERIFICATION_CODE_TIME' => 538393,
|
||||
//验证码
|
||||
'VERIFICATION_CODE' => 518076,
|
||||
//支付成功
|
||||
'PAY_SUCCESS_CODE' => 520268,
|
||||
//发货提醒
|
||||
'DELIVER_GOODS_CODE' => 520269,
|
||||
//确认收货提醒
|
||||
'TAKE_DELIVERY_CODE' => 520271,
|
||||
//管理员下单提醒
|
||||
'ADMIN_PLACE_ORDER_CODE' => 520272,
|
||||
//管理员退货提醒
|
||||
'ADMIN_RETURN_GOODS_CODE' => 520274,
|
||||
//管理员支付成功提醒
|
||||
'ADMIN_PAY_SUCCESS_CODE' => 520273,
|
||||
//管理员确认收货
|
||||
'ADMIN_TAKE_DELIVERY_CODE' => 520422,
|
||||
//改价提醒
|
||||
'PRICE_REVISION_CODE' => 528288,
|
||||
//订单未支付
|
||||
'ORDER_PAY_FALSE' => 528116,
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
18
pro_v3.5.1/config/printer.php
Normal file
18
pro_v3.5.1/config/printer.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 打印机配置
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
//默认打印机模式
|
||||
'default' => 'yi_lian_yun',
|
||||
//驱动模式
|
||||
'stores' => [
|
||||
//易联云
|
||||
'yi_lian_yun' => [
|
||||
'apiUrl' => 'https://open-api.10ss.net/'
|
||||
],
|
||||
//飞鹅云
|
||||
'fei_e_yun' => [],
|
||||
]
|
||||
];
|
||||
5
pro_v3.5.1/config/qrcode.php
Normal file
5
pro_v3.5.1/config/qrcode.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
return [
|
||||
'cache_dir' => 'uploads/qrcode', //本地缓存地址
|
||||
'background'=> 'statics/qrcode/background.png' //背景图
|
||||
];
|
||||
31
pro_v3.5.1/config/queue.php
Normal file
31
pro_v3.5.1/config/queue.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
|
||||
return [
|
||||
'default' => 'redis',
|
||||
'connections' => [
|
||||
'sync' => [
|
||||
'type' => 'sync',
|
||||
],
|
||||
'database' => [
|
||||
'type' => 'database',
|
||||
'queue' => 'default',
|
||||
'table' => 'jobs',
|
||||
],
|
||||
'redis' => [
|
||||
'type' => 'redis',
|
||||
'queue' => env('QUEUE_LISTEN_NAME', 'CRMEB_PRO'),
|
||||
'batch_queue' => env('QUEUE_BATCH_LISTEN_NAME', 'CRMEB_PRO_BATCH'),
|
||||
'host' => env('REDIS_HOSTNAME', '127.0.0.1'),
|
||||
'port' => env('REDIS_PORT', 6379),
|
||||
'password' => env('REDIS_PASSWORD', ''),
|
||||
'select' => env('REDIS_SELECT', 0),
|
||||
'timeout' => 0,
|
||||
'persistent' => true,
|
||||
],
|
||||
],
|
||||
'failed' => [
|
||||
'type' => 'none',
|
||||
'table' => 'failed_jobs',
|
||||
],
|
||||
];
|
||||
65
pro_v3.5.1/config/route.php
Normal file
65
pro_v3.5.1/config/route.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | 应用设置
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
// pathinfo分隔符
|
||||
'pathinfo_depr' => '/',
|
||||
// URL伪静态后缀
|
||||
'url_html_suffix' => 'html',
|
||||
// URL普通方式参数 用于自动生成
|
||||
'url_common_param' => true,
|
||||
// 是否开启路由延迟解析
|
||||
'url_lazy_route' => false,
|
||||
// 是否强制使用路由
|
||||
'url_route_must' => true,
|
||||
// 合并路由规则
|
||||
'route_rule_merge' => false,
|
||||
// 路由是否完全匹配
|
||||
'route_complete_match' => true,
|
||||
// 使用注解路由
|
||||
'route_annotation' => false,
|
||||
// 是否开启路由缓存
|
||||
'route_check_cache' => false,
|
||||
// 路由缓存连接参数
|
||||
'route_cache_option' => [],
|
||||
// 路由缓存Key
|
||||
'route_check_cache_key' => '',
|
||||
// 访问控制器层名称
|
||||
'controller_layer' => 'controller',
|
||||
// 空控制器名
|
||||
'empty_controller' => 'Error',
|
||||
// 是否使用控制器后缀
|
||||
'controller_suffix' => false,
|
||||
// 默认的路由变量规则
|
||||
'default_route_pattern' => '[\w\.]+',
|
||||
// 是否自动转换URL中的控制器和操作名
|
||||
'url_convert' => true,
|
||||
// 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
|
||||
'request_cache' => 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',
|
||||
];
|
||||
27
pro_v3.5.1/config/session.php
Normal file
27
pro_v3.5.1/config/session.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | 会话设置
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
// session name
|
||||
'name' => '',
|
||||
// SESSION_ID的提交变量,解决flash上传跨域
|
||||
'var_session_id' => '',
|
||||
// 驱动方式 支持file redis memcache memcached
|
||||
'type' => 'file',
|
||||
// 过期时间
|
||||
'expire' => 10800,
|
||||
// 前缀
|
||||
'prefix' => '',
|
||||
];
|
||||
36
pro_v3.5.1/config/sms.php
Normal file
36
pro_v3.5.1/config/sms.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
//默认短信发送模式
|
||||
'default' => 'yihaotong',
|
||||
//单个手机每日发送上限
|
||||
'maxPhoneCount' => 10,
|
||||
//验证码每分钟发送上线
|
||||
'maxMinuteCount' => 20,
|
||||
//单个IP每日发送上限
|
||||
'maxIpCount' => 50,
|
||||
//驱动模式
|
||||
'stores' => [
|
||||
//一号通
|
||||
'yihaotong' => [
|
||||
'sms_account' => '',
|
||||
'sms_token' => ''
|
||||
],
|
||||
//阿里云
|
||||
'aliyun' => [
|
||||
'aliyun_SignName' => '',
|
||||
'aliyun_AccessKeyId' => '',
|
||||
'aliyun_AccessKeySecret' => '',
|
||||
'aliyun_RegionId' => '',
|
||||
],
|
||||
]
|
||||
];
|
||||
105
pro_v3.5.1/config/swoole.php
Normal file
105
pro_v3.5.1/config/swoole.php
Normal file
@@ -0,0 +1,105 @@
|
||||
<?php
|
||||
|
||||
use app\webscoket\Manager;
|
||||
use Swoole\Table;
|
||||
|
||||
|
||||
return [
|
||||
'http' => [
|
||||
'enable' => true,
|
||||
'host' => '0.0.0.0',
|
||||
'port' => 20199,
|
||||
'worker_num' => swoole_cpu_num(),
|
||||
'options' => [
|
||||
'package_max_length' => 50 * 1024 * 1024
|
||||
],
|
||||
],
|
||||
'websocket' => [
|
||||
'enable' => true,
|
||||
'handler' => Manager::class,
|
||||
'ping_interval' => 25000,
|
||||
'ping_timeout' => 60000,
|
||||
'room' => [
|
||||
'type' => 'table',
|
||||
'table' => [
|
||||
'room_rows' => 4096,
|
||||
'room_size' => 2048,
|
||||
'client_rows' => 8192,
|
||||
'client_size' => 2048,
|
||||
],
|
||||
'redis' => [
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 6379,
|
||||
'max_active' => 3,
|
||||
'max_wait_time' => 5,
|
||||
],
|
||||
],
|
||||
'listen' => [],
|
||||
'subscribe' => [],
|
||||
],
|
||||
'rpc' => [
|
||||
'server' => [
|
||||
'enable' => false,
|
||||
'host' => '0.0.0.0',
|
||||
'port' => 9000,
|
||||
'worker_num' => swoole_cpu_num(),
|
||||
'services' => [
|
||||
],
|
||||
],
|
||||
'client' => [
|
||||
],
|
||||
],
|
||||
//队列
|
||||
'queue' => [
|
||||
'enable' => env('QUEUE_ENABLE', true),
|
||||
'workers' => [
|
||||
'CRMEB_PRO' => [],
|
||||
'CRMEB_PRO_BATCH' => [],
|
||||
'CRMEB_PRO_TASK' => [],
|
||||
// 'CRMEB_PRO_ERP' => [],
|
||||
'CRMEB_PRO_LOG' => [],
|
||||
'CRMEB_PRO_SOCKET' => []
|
||||
],
|
||||
],
|
||||
//热更新
|
||||
'hot_update' => [
|
||||
'enable' => env('APP_DEBUG', false),
|
||||
'name' => ['*.php'],
|
||||
'include' => [app_path(), root_path('crmeb')],
|
||||
'exclude' => [],
|
||||
],
|
||||
//连接池
|
||||
'pool' => [
|
||||
'db' => [
|
||||
'enable' => true,
|
||||
'max_active' => swoole_cpu_num() * 4,
|
||||
'max_wait_time' => 5,
|
||||
],
|
||||
'cache' => [
|
||||
'enable' => true,
|
||||
'max_active' => swoole_cpu_num() * 4,
|
||||
'max_wait_time' => 5,
|
||||
],
|
||||
//自定义连接池
|
||||
],
|
||||
'tables' => [//高性能内存数据库
|
||||
'user' => [
|
||||
'size' => 20480,
|
||||
'columns' => [
|
||||
['name' => 'fd', 'type' => Table::TYPE_STRING, 'size' => 50],
|
||||
['name' => 'type', 'type' => Table::TYPE_INT],
|
||||
['name' => 'uid', 'type' => Table::TYPE_INT],
|
||||
['name' => 'to_uid', 'type' => Table::TYPE_STRING, 'size' => 50],
|
||||
['name' => 'tourist', 'type' => Table::TYPE_INT]
|
||||
]
|
||||
]
|
||||
],
|
||||
//每个worker里需要预加载以共用的实例
|
||||
'concretes' => [],
|
||||
//重置器
|
||||
'resetters' => [],
|
||||
//每次请求前需要清空的实例
|
||||
'instances' => [],
|
||||
//每次请求前需要重新执行的服务
|
||||
'services' => [],
|
||||
];
|
||||
114
pro_v3.5.1/config/template.php
Normal file
114
pro_v3.5.1/config/template.php
Normal file
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
//收益金额{{amount3.DATA}}
|
||||
//温馨提醒:'待收款金额'
|
||||
//时间{{time9.DATA}}
|
||||
//默认驱动模式
|
||||
'default' => 'wechat',
|
||||
//记录发送日志
|
||||
'isLog' => true,
|
||||
//驱动模式
|
||||
'stores' => [
|
||||
//微信
|
||||
'wechat' => [
|
||||
//微信模板id
|
||||
'template_id' => [
|
||||
//绑定推广关系
|
||||
// 'BIND_SPREAD_UID' => 'OPENTM409880752',
|
||||
//支付成功
|
||||
'ORDER_PAY_SUCCESS' => 43216,
|
||||
// 'ORDER_PAY_SUCCESS' => 'OPENTM418062102',
|
||||
//订单发货提醒(送货)
|
||||
// 'ORDER_DELIVER_SUCCESS' => 'OPENTM416122303',
|
||||
//订单发货提醒(快递)
|
||||
'ORDER_POSTAGE_SUCCESS' => 42984,
|
||||
// 'ORDER_POSTAGE_SUCCESS' => 'OPENTM415939287',
|
||||
//订单收货通知
|
||||
'ORDER_TAKE_SUCCESS' => 50439,
|
||||
// 'ORDER_TAKE_SUCCESS' => 'OPENTM418528119',
|
||||
//改价成功通知
|
||||
// 'PRICE_REVISION' => 'OPENTM401202515',
|
||||
//退款成功通知
|
||||
'ORDER_REFUND_STATUS'=> 48058,
|
||||
// 'ORDER_REFUND_STATUS'=>'OPENTM207284059',
|
||||
//拒绝退款通知
|
||||
'ORDER_REFUND_FAIL'=> 46232,
|
||||
//充值成功通知
|
||||
'RECHARGE_SUCCESS' => 42934,
|
||||
// 'RECHARGE_SUCCESS' => 'OPENTM414089457',
|
||||
//积分到账通知
|
||||
// 'INTEGRAL_ACCOUT' => 'OPENTM201661503',
|
||||
//佣金到账
|
||||
// 'ORDER_BROKERAGE' => 'OPENTM400590844',
|
||||
//砍价成功
|
||||
// 'BARGAIN_SUCCESS' => 'OPENTM418554923',
|
||||
//拼团成功通知,参团成功
|
||||
// 'ORDER_USER_GROUPS_SUCCESS' => 'OPENTM409367318',
|
||||
//取消拼团,拼团失败
|
||||
// 'ORDER_USER_GROUPS_LOSE'=>'OPENTM418350969',
|
||||
//开团成功
|
||||
// 'OPEN_PINK_SUCCESS' => 'OPENTM410867947',
|
||||
//提现成功通知
|
||||
'USER_EXTRACT' => 51729,
|
||||
// 'USER_EXTRACT' => 'OPENTM405876306',
|
||||
//提现失败通知
|
||||
// 'USER_EXTRACT_FAIL' => 'OPENTM403167119',
|
||||
//提醒付款通知
|
||||
// 'ORDER_PAY_FALSE' => 'OPENTM408199008',
|
||||
//服务进度提醒
|
||||
// 'ADMIN_NOTICE' => 'OPENTM415269411',
|
||||
//卡密发货提醒
|
||||
// 'KAMI_DELIVER_GOODS_CODE' => 'OPENTM414876266',
|
||||
//收益到账通知
|
||||
'REVENUE_RECEIVED' => 54531,
|
||||
|
||||
'ADMIN_ORDER_UID' => 176571,
|
||||
],
|
||||
],
|
||||
//订阅消息
|
||||
'subscribe' => [
|
||||
'template_id' => [
|
||||
//绑定推广关系
|
||||
'BIND_SPREAD_UID' => 3801,
|
||||
//订单支付成功
|
||||
'ORDER_PAY_SUCCESS' => 1927,
|
||||
//订单发货提醒(快递)
|
||||
'ORDER_DELIVER_SUCCESS' => 1458,
|
||||
//订单发货提醒(送货)
|
||||
'ORDER_POSTAGE_SUCCESS' => 1128,
|
||||
//确认收货通知
|
||||
'ORDER_TAKE' => 1481,
|
||||
//退款通知
|
||||
'ORDER_REFUND' => 1451,
|
||||
//充值成功
|
||||
'RECHARGE_SUCCESS' => 755,
|
||||
//积分到账提醒
|
||||
'INTEGRAL_ACCOUT' => 335,
|
||||
//佣金到账
|
||||
'ORDER_BROKERAGE' => 14403,
|
||||
//砍价成功
|
||||
'BARGAIN_SUCCESS' => 2727,
|
||||
//拼团成功
|
||||
'PINK_TRUE' => 3098,
|
||||
//拼团状态通知
|
||||
'PINK_STATUS' => 3353,
|
||||
//提现成功通知
|
||||
'USER_EXTRACT' => 1470,
|
||||
//签到提醒通知
|
||||
'SIGN_REMIND_TIME' => 25599,
|
||||
//收益到账通知
|
||||
'REVENUE_RECEIVED' => 1493,
|
||||
],
|
||||
],
|
||||
]
|
||||
];
|
||||
33
pro_v3.5.1/config/throttle.php
Normal file
33
pro_v3.5.1/config/throttle.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 节流设置
|
||||
// +----------------------------------------------------------------------
|
||||
use think\middleware\Throttle;
|
||||
use think\middleware\throttle\TokenBucket;
|
||||
use think\Request;
|
||||
use think\Response;
|
||||
|
||||
return [
|
||||
// 缓存键前缀,防止键值与其他应用冲突
|
||||
'prefix' => 'throttle_',
|
||||
// 缓存的键,true 表示使用来源ip
|
||||
'key' => true,
|
||||
// 要被限制的请求类型, eg: GET POST PUT DELETE HEAD 等
|
||||
'visit_method' => ['GET', 'HEAD', 'POST'],
|
||||
// 设置访问频率,例如 '10/m' 指的是允许每分钟请求10次;'10/60'指允许每60秒请求10次。值 null 表示不限制, eg: null 10/m 20/h 300/d 200/300
|
||||
'visit_rate' => '100/60',
|
||||
/*
|
||||
* 设置节流算法,组件提供了四种算法:
|
||||
* - CounterFixed :计数固定窗口
|
||||
* - CounterSlider: 滑动窗口
|
||||
* - TokenBucket : 令牌桶算法
|
||||
* - LeakyBucket : 漏桶限流算法
|
||||
*/
|
||||
'driver_name' => TokenBucket::class,
|
||||
// 响应体中设置速率限制的头部信息
|
||||
'visit_enable_show_rate_limit' => true,
|
||||
// 访问受限时返回的响应
|
||||
'visit_fail_response' => function (Throttle $throttle, Request $request, int $wait_seconds) {
|
||||
return Response::create('Too many requests, try again after ' . $wait_seconds . ' seconds.')->code(429);
|
||||
},
|
||||
];
|
||||
20
pro_v3.5.1/config/trace.php
Normal file
20
pro_v3.5.1/config/trace.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | Trace设置 开启调试模式后有效
|
||||
// +----------------------------------------------------------------------
|
||||
return [
|
||||
// 开关,不再由debug控制
|
||||
'enable' => false,
|
||||
// 内置Html 支持扩展
|
||||
'type' => 'Console',
|
||||
];
|
||||
61
pro_v3.5.1/config/upload.php
Normal file
61
pro_v3.5.1/config/upload.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
return [
|
||||
//默认上传模式
|
||||
'default' => 'local',
|
||||
//上传文件大小
|
||||
'filesize' => 52428800,
|
||||
//上传文件后缀类型
|
||||
'fileExt' =>
|
||||
['jpg', 'jpeg', 'png', 'gif', 'ico', 'pem', 'mp3', 'wma', 'wav', 'amr', 'mp4', 'key', 'xlsx', 'xls', 'video/mp4','mov'],
|
||||
//上传文件类型
|
||||
'fileMime' => [
|
||||
'video/mp4',
|
||||
'image/jpg',
|
||||
'image/jpeg',
|
||||
'image/gif',
|
||||
'image/png',
|
||||
'text/plain',
|
||||
'audio/mpeg',
|
||||
'video/mp4',
|
||||
'application/octet-stream',
|
||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||
'application/vnd.ms-works',
|
||||
'application/vnd.ms-excel',
|
||||
'application/zip',
|
||||
'application/vnd.ms-excel',
|
||||
'application/vnd.ms-excel',
|
||||
'text/xml',
|
||||
'video/quicktime',
|
||||
'image/x-icon',
|
||||
'image/vnd.microsoft.icon',
|
||||
],
|
||||
//驱动模式
|
||||
'stores' => [
|
||||
//本地上传配置
|
||||
'local' => [],
|
||||
//七牛云上传配置
|
||||
'qiniu' => [],
|
||||
//oss上传配置
|
||||
'oss' => [],
|
||||
//cos上传配置
|
||||
'cos' => [],
|
||||
//oss 京东云
|
||||
'jdoss' => [
|
||||
],
|
||||
//oss 华为云
|
||||
'obs' => [
|
||||
],
|
||||
//oss 天翼云
|
||||
'tyoss' => [
|
||||
],
|
||||
]
|
||||
];
|
||||
27
pro_v3.5.1/config/view.php
Normal file
27
pro_v3.5.1/config/view.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 模板设置
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
// 模板引擎类型使用Think
|
||||
'type' => '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' => '}',
|
||||
//模板文件路径
|
||||
'view_path' => public_path(),
|
||||
];
|
||||
163
pro_v3.5.1/config/wechat.php
Normal file
163
pro_v3.5.1/config/wechat.php
Normal file
@@ -0,0 +1,163 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 微信服务相关配置
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
return [
|
||||
//请求响应日志
|
||||
'logger' => env('APP_DEBUG', false),
|
||||
//公用
|
||||
'comment' => [
|
||||
'url' => [
|
||||
'key' => 'site_url'
|
||||
],
|
||||
],
|
||||
//小程序配置
|
||||
'mini' => [
|
||||
'appid' => [
|
||||
'key' => 'routine_appId'
|
||||
],
|
||||
'secret' => [
|
||||
'key' => 'routine_appsecret'
|
||||
],
|
||||
'token' => [
|
||||
'key' => 'wechat_token'
|
||||
],
|
||||
'key' => [
|
||||
'key' => 'wechat_encodingaeskey'
|
||||
],
|
||||
'notifyUrl' => [
|
||||
//必须携带斜杠开头
|
||||
'value' => '/api/pay/notify/routine'
|
||||
],
|
||||
],
|
||||
//公众号配置
|
||||
'official' => [
|
||||
'appid' => [
|
||||
'key' => 'wechat_appid'
|
||||
],
|
||||
'secret' => [
|
||||
'key' => 'wechat_appsecret'
|
||||
],
|
||||
'token' => [
|
||||
'key' => 'wechat_token'
|
||||
],
|
||||
'key' => [
|
||||
'key' => 'wechat_encodingaeskey'
|
||||
],
|
||||
'encode' => [
|
||||
'key' => 'wechat_encode'
|
||||
],
|
||||
],
|
||||
//开放平台APP
|
||||
'app' => [
|
||||
'appid' => [
|
||||
'key' => 'wechat_app_appid'
|
||||
],
|
||||
'secret' => [
|
||||
'key' => 'wechat_app_appsecret'
|
||||
],
|
||||
'token' => [
|
||||
'key' => 'wechat_openapp_app_token'
|
||||
],
|
||||
'key' => [
|
||||
'key' => 'wechat_openapp_app_aes_key'
|
||||
],
|
||||
'notifyUrl' => [
|
||||
//必须携带斜杠开头
|
||||
'value' => '/api/pay/notify/app'
|
||||
],
|
||||
],
|
||||
//开放平台网页应用
|
||||
'web' => [
|
||||
'appid' => [
|
||||
'key' => 'wechat_open_app_id'
|
||||
],
|
||||
'secret' => [
|
||||
'key' => 'wechat_open_app_secret'
|
||||
],
|
||||
'token' => [
|
||||
'key' => 'wechat_open_app_token'
|
||||
],
|
||||
'key' => [
|
||||
'key' => 'wechat_open_app_aes_key'
|
||||
],
|
||||
],
|
||||
//企业微信
|
||||
'work' => [
|
||||
'corp_id' => [
|
||||
'key' => 'wechat_work_corpid'
|
||||
],
|
||||
'token' => [
|
||||
'key' => 'wechat_work_token'
|
||||
],
|
||||
'key' => [
|
||||
'key' => 'wechat_work_aes_key'
|
||||
],
|
||||
],
|
||||
//支付
|
||||
'pay' => [
|
||||
//商户号
|
||||
'mchid' => [
|
||||
'key' => 'pay_weixin_mchid'
|
||||
],
|
||||
//小程序商户号
|
||||
'routine_mchid' => [
|
||||
'key' => 'pay_routine_mchid'
|
||||
],
|
||||
//支付key
|
||||
'key' => [
|
||||
'key' => 'pay_weixin_key'
|
||||
],
|
||||
//证书
|
||||
'client_cert' => [
|
||||
'key' => 'pay_weixin_client_cert'
|
||||
],
|
||||
//证书
|
||||
'client_key' => [
|
||||
'key' => 'pay_weixin_client_key'
|
||||
],
|
||||
'notifyUrl' => [
|
||||
//支付回调,必须携带斜杠开头
|
||||
'value' => '/api/pay/notify/wechat'
|
||||
],
|
||||
'refundUrl' => [
|
||||
//退款回调,必须携带斜杠开头
|
||||
'value' => '/api/pay/refund/wechat'
|
||||
],
|
||||
],
|
||||
//v3支付新增配置,证书和商户号使用v2支付配置的证书
|
||||
'v3_pay' => [
|
||||
'key' => [
|
||||
//默认使用value值,没有值使用eb_system_config配置中的key的值
|
||||
'key' => 'v3_pay_weixin_key',
|
||||
//配置值
|
||||
'value' => '',
|
||||
],
|
||||
'serial_no' => [
|
||||
//默认使用value值,没有值使用eb_system_config配置中的key的值
|
||||
'key' => 'pay_weixin_serial_no',
|
||||
//配置值
|
||||
'value' => '',
|
||||
],
|
||||
'pay_type' => [
|
||||
//默认使用value值,没有值使用eb_system_config配置中的key的值
|
||||
'key' => 'pay_wechat_type',
|
||||
//配置值
|
||||
'value' => '',
|
||||
],
|
||||
'public_key'=>[
|
||||
//默认使用value值,没有值使用eb_system_config配置中的key的值
|
||||
'key' => 'v3_pay_public_key',
|
||||
//配置值
|
||||
'value' => '',
|
||||
],
|
||||
'public_pem'=>[
|
||||
//默认使用value值,没有值使用eb_system_config配置中的key的值
|
||||
'key' => 'v3_pay_public_pem',
|
||||
//配置值
|
||||
'value' => '',
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user