params.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. return [
  3. 'timeZone' => 'Asia/Shanghai',
  4. 'language'=>'zh-CN',
  5. 'charSet'=>'utf-8',//页面编码
  6. 'systemName'=>'Kiivo KMS',
  7. 'copyRight'=>'&copy;2022-2030 KiivoKMS.',
  8. 'cookieValidationKey'=>'ZHWMOkahdqpv90NM',
  9. 'retryTimes'=>3,
  10. 'capcha'=>'capcha',//验证码session 存储名
  11. 'capchaTime'=>'capchaTime',//SESSION 存储的验证码生成时间
  12. 'capchaTimeout'=>'60',//默认验证码有效时间60s
  13. 'authKey'=>'vHI8x4tY4HOR2bAunEVg',//加密因子
  14. 'adminCookieName'=>'backcookie',//后台COOKIE名称
  15. 'userCookieName'=>'frontcookie',//前台COOKIE名称
  16. 'authHashName'=>'authhash',//三方登录hash名称
  17. 'referPageName'=>'referpage',//上一页名称
  18. 'shareArgName'=>'shareno',//分享参数名
  19. 'baidukwName'=>'baidukw',//百度竞价跟踪
  20. 'apiTokenExpire' => 7200,
  21. 'remberExpire' => 24*3600*7,//记住登录状态
  22. 'qrcodeExpire' => 120,//二维码有效期
  23. 'defaultNickName'=>'普通用户',
  24. 'htmlrule' => 0,//HTML后缀
  25. 'wxPath'=> BASE_PATH.'web'.DIRECTORY_SEPARATOR.'upload'.DIRECTORY_SEPARATOR.'weixin'.DIRECTORY_SEPARATOR,//微信通信文件目录
  26. 'wxPayCertPath'=> BASE_PATH.'web'.DIRECTORY_SEPARATOR.'upload'.DIRECTORY_SEPARATOR.'paycert'.DIRECTORY_SEPARATOR.'weixin'.DIRECTORY_SEPARATOR,//微信支付证书上传根目录路径
  27. 'wxappPayCertPath'=> BASE_PATH.'web'.DIRECTORY_SEPARATOR.'upload'.DIRECTORY_SEPARATOR.'paycert'.DIRECTORY_SEPARATOR.'wxapp'.DIRECTORY_SEPARATOR,//微信支付证书上传根目录路径
  28. 'aliPayCertPath'=> BASE_PATH.'web'.DIRECTORY_SEPARATOR.'upload'.DIRECTORY_SEPARATOR.'paycert'.DIRECTORY_SEPARATOR.'alipay'.DIRECTORY_SEPARATOR,//支付宝支付证书上传根目录路径
  29. 'uploadPath'=> BASE_PATH.'web'.DIRECTORY_SEPARATOR.'upload'.DIRECTORY_SEPARATOR,//附件上传根目录路径
  30. 'thumbPath'=> BASE_PATH.'web'.DIRECTORY_SEPARATOR.'thumb'.DIRECTORY_SEPARATOR,//附件缩略图根目录路径
  31. 'uploadUrl' => UPLOAD_DOMAIN.'upload/',//本地附件访问URL
  32. 'themePath'=> BASE_PATH.'themes'.DIRECTORY_SEPARATOR,//模板路径
  33. //静态化和缓存配置
  34. 'htmlPath'=> BASE_PATH.'web'.DIRECTORY_SEPARATOR,//静态化HTML根目录路径
  35. 'cachePath'=>BASE_PATH.'runtime'.DIRECTORY_SEPARATOR.'cache'.DIRECTORY_SEPARATOR,//缓存文件根路径
  36. 'lockEx'=>1,
  37. 'access_token_name'=>'access_token',//用于接口通信的凭证名称
  38. /* 图片上传插件webuploader + */
  39. 'webuploader' => [
  40. // 后端处理图片的action,value是相对的地址
  41. 'uploadUrl' => '/site/upload',
  42. 'md5checkUrl' => 'upload/docmd5check',
  43. // 多文件分隔符
  44. 'delimiter' => ',',
  45. // 基本配置
  46. 'baseConfig' => [
  47. 'defaultImage' => '',
  48. 'disableGlobalDnd' => true,
  49. 'accept' => [
  50. 'title' => 'Files',
  51. 'extensions' => 'pdf,doc,docx,wps,ppt,pptx,dps,xls,xlsx,et,jpg,jpeg,png,gif,ico,mp3,mp4,zip,rar',
  52. 'mimeTypes' => '*',
  53. ],
  54. 'pick' => [
  55. 'multiple' => false,
  56. ],
  57. 'buttonTxt'=>'',
  58. 'buttonDivClass'=>'',
  59. 'uploadType'=>2,//1:图片 2:文件
  60. 'fileNumLimit' => 200,//单次选择文件数量
  61. 'fileSingleSizeLimit' => 314572800,//限制单文件大小,
  62. 'fileSizeLimit' => 314572800,//限制单次文件总大小,
  63. 'formData'=>[],
  64. 'absoluteUrl'=>0,
  65. ],
  66. ],
  67. ];