base.php 4.4 KB

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