base.php 3.8 KB

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