base.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?php
  2. $config['base'] = array
  3. (
  4. 'name' => '中食民安管理系统',
  5. 'name' => '橙猫供应链平台',
  6. 'version' => '1.0.0 Beta',
  7. # 设置分类组件中的栏目下的分类为系统使用的主分类
  8. 'category' => 1,
  9. # 后台头部菜单
  10. 'top' => 'passport/system_id',
  11. # 上线状态
  12. 'status' => array
  13. (
  14. 1 => '上架',
  15. 2 => '下架',
  16. ),
  17. # 小程序配置
  18. 'applet' => array
  19. (
  20. 'project' => 'passport/system',
  21. 'url' => 'https://api.weixin.qq.com/sns/jscode2session',
  22. # 首页
  23. 'index' => 'pages/index/index',
  24. ),
  25. # 加密key
  26. 'encode_key' => 'dreamland1985',
  27. # 站点使用邮箱还是手机作为主账号
  28. 'account' => 'mobile',
  29. 'mobileCode' => array
  30. (
  31. # debug模式
  32. 'debug' => true,
  33. # 发送短信的接口
  34. 'url' => 'https://feginesms.market.alicloudapi.com/codeNotice',
  35. 'url' => '',
  36. # 保存方式 cookie、session、db 三种可选 默认为session
  37. 'save' => 'db',
  38. # 发送方法 get、post
  39. 'method' => 'get',
  40. # 是否json编码
  41. 'json' => false,
  42. # header信息
  43. 'header' => 'Authorization:APPCODE ca584ae21ce54c999067e77b5995a27b',
  44. # body信息
  45. 'body' => 'param={code}&phone={mobile}&sign={sign}&skin={skin}',
  46. # 短信模板 发送短信时,请加上参数skin=1
  47. 'skin' => array
  48. (
  49. 'reg' => 35247,
  50. 'order' => 35246,
  51. 'code' => 35245,
  52. # 需要增加一个notice
  53. 'notice' => 38099,
  54. # order的反馈方案修改后
  55. 'feedback' => 38747,
  56. ),
  57. # 短信签名
  58. 'sign' => 47159,
  59. # 验证码有效期 默认10分钟
  60. 'timeout' => 600,
  61. # 一天之内的最大发送次数,默认为10次
  62. 'total' => 10,
  63. # 不允许多久之内重复发送,默认为60秒
  64. 'time' => 60,
  65. # 验证码长度
  66. 'length' => 6,
  67. ),
  68. # 注册成功后,调取的接口
  69. 'regAction' => '',
  70. # 注册成功后,是否发送短信,直接使用skin的key即可
  71. //'regSendSms' => 'reg',
  72. # 用户中心的列表中显示的项目
  73. 'passport_list_button' => array
  74. (
  75. /*
  76. 'list1' => array('订单', '"order&project=act&search_option_uid={id}&oper_parent=user&oper_project=passport"'),
  77. 'list2' => array('兑换码', '"info&project=code&search_option_create_uid={id}&oper_parent=user&oper_project=passport"'),
  78. 'list3' => array('积分', '"user&project=score&search_option_uid={id}&oper_parent=user&oper_project=passport"'),
  79. */
  80. ),
  81. # 日志系统
  82. 'log' => array
  83. (
  84. 'cron' => array
  85. (
  86. 'ad/lib/cron.run'
  87. ),
  88. ),
  89. # 积分配置
  90. 'score' => array
  91. (
  92. # 实时增加积分开启,关闭则需要把lib/core.cron放到计划任务中
  93. 'sync' => true,
  94. ),
  95. # 启用全站图片压缩
  96. //'pic' => 'yun_t1',
  97. # 队列
  98. 'queue' => array
  99. (
  100. 'method' => 'redis',
  101. 'host' => 'server-redis',
  102. 'port' => '6379',
  103. 'password' => 'dm_redis_123',
  104. ),
  105. );
  106. # 前台通用配置
  107. $config['template'] = array
  108. (
  109. # 静态页面目录
  110. //'assets' => array('pc', 'mobile'),
  111. 'assets' => 'pc',
  112. # 模板编译器目录
  113. 'template' => 'pc',
  114. # 模板html文件的所在目录,默认为html
  115. 'path' => 'html',
  116. 'replace' => array
  117. (
  118. 'css' => 'css/',
  119. 'js' => 'js/',
  120. 'images' => 'images/',
  121. 'script' => '../script/',
  122. 'static' => './static/',
  123. ),
  124. # 编译器与模板对应关系目录,定义之后,代表可以完全不改动前端的代码,可以为空,为空则一一对应,参考manage
  125. 'relation' => array
  126. (
  127. # 首页启动屏幕
  128. 'home' => 'page',
  129. ),
  130. );
  131. return $config;