base.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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. 'table' => array
  12. (
  13. 1 => '合集',
  14. 2 => '合集章节',
  15. 3 => '合集内容',
  16. 20 => '信息',
  17. ),
  18. # 功能类型
  19. 'table_name' => array
  20. (
  21. 1 => 'collection/info',
  22. 2 => 'collection/page',
  23. 3 => 'collection/content',
  24. 20 => 'community/info',
  25. 30 => 'community/moment',
  26. ),
  27. 'audit' => array
  28. (
  29. 1 => '已审核',
  30. 2 => '未审核',
  31. 3 => '审核未通过',
  32. ),
  33. # 上线状态
  34. 'status' => array
  35. (
  36. 1 => '上线发布',
  37. 2 => '下架',
  38. ),
  39. # 小程序配置
  40. 'applet' => array
  41. (
  42. 'project' => 'passport/system',
  43. 'url' => 'https://api.weixin.qq.com/sns/jscode2session',
  44. # 首页
  45. 'index' => 'pages/index/index',
  46. ),
  47. # 加密key
  48. 'encode_key' => 'dreamland1985',
  49. # 站点使用邮箱还是手机作为主账号
  50. 'account' => 'mobile',
  51. # 性别转换 passport里1为男、2为女 3为未知,如果前端定义与这个不同,请做好转换
  52. 'sex' => array
  53. (
  54. # 前面的索引为前端传过来的值
  55. 2 => 2,
  56. 1 => 1,
  57. 3 => 3,
  58. ),
  59. 'mobileCode' => array
  60. (
  61. # debug模式
  62. 'debug' => true,
  63. # 发送短信的接口
  64. 'url' => 'https://feginesms.market.alicloudapi.com/codeNotice',
  65. 'url' => '',
  66. # 保存方式 cookie、session、db 三种可选 默认为session
  67. 'save' => 'db',
  68. # 发送方法 get、post
  69. 'method' => 'get',
  70. # 是否json编码
  71. 'json' => false,
  72. # header信息
  73. 'header' => 'Authorization:APPCODE ca584ae21ce54c999067e77b5995a27b',
  74. # body信息
  75. 'body' => 'param={code}&phone={mobile}&sign={sign}&skin={skin}',
  76. # 短信模板 发送短信时,请加上参数skin=1
  77. 'skin' => array
  78. (
  79. 'reg' => 35247,
  80. 'order' => 35246,
  81. 'code' => 35245,
  82. # 需要增加一个notice
  83. 'notice' => 38099,
  84. # order的反馈方案修改后
  85. 'feedback' => 38747,
  86. ),
  87. # 短信签名
  88. 'sign' => 47159,
  89. # 验证码有效期 默认10分钟
  90. 'timeout' => 600,
  91. # 一天之内的最大发送次数,默认为10次
  92. 'total' => 10,
  93. # 不允许多久之内重复发送,默认为60秒
  94. 'time' => 60,
  95. # 验证码长度
  96. 'length' => 6,
  97. ),
  98. # 注册成功后,调取的接口
  99. 'regAction' => '',
  100. # 注册成功后,是否发送短信,直接使用skin的key即可
  101. //'regSendSms' => 'reg',
  102. # 用户中心的列表中显示的项目
  103. 'passport_list_button' => array
  104. (
  105. /*
  106. 'list1' => array('订单', '"order&project=act&search_option_uid={id}&oper_parent=user&oper_project=passport"'),
  107. 'list2' => array('兑换码', '"info&project=code&search_option_create_uid={id}&oper_parent=user&oper_project=passport"'),
  108. 'list3' => array('积分', '"user&project=score&search_option_uid={id}&oper_parent=user&oper_project=passport"'),
  109. */
  110. ),
  111. # 支付成功后,调用的接口
  112. //'pay_notify' => 'service/lib/pay.act',
  113. # 日志系统
  114. 'log' => array
  115. (
  116. 'cron' => array
  117. (
  118. 'ad/lib/cron.run'
  119. ),
  120. ),
  121. # 积分配置
  122. 'score' => array
  123. (
  124. # 实时增加积分开启,关闭则需要把lib/core.cron放到计划任务中
  125. 'sync' => true,
  126. ),
  127. # 启用全站图片压缩
  128. 'pic' => 'yun_t1',
  129. );
  130. # 前台通用配置
  131. $config['template'] = array
  132. (
  133. # 静态页面目录
  134. //'assets' => array('pc', 'mobile'),
  135. 'assets' => 'mobile',
  136. # 模板编译器目录
  137. 'template' => 'mobile',
  138. # 模板html文件的所在目录,默认为html
  139. 'path' => '',
  140. 'replace' => array
  141. (
  142. 'css' => 'css/',
  143. 'js' => 'js/',
  144. 'images' => 'images/',
  145. 'script' => 'script/',
  146. 'static' => './static/',
  147. ),
  148. # 编译器与模板对应关系目录,定义之后,代表可以完全不改动前端的代码,可以为空,为空则一一对应,参考manage
  149. 'relation' => array
  150. (
  151. # 首页启动屏幕
  152. 'home' => 'page',
  153. ),
  154. );
  155. return $config;