base.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. $config['base'] = array
  3. (
  4. 'name' => '赛课',
  5. 'version' => '1.0.0 Beta',
  6. 'account' => 'mobile',
  7. 'audit' => array
  8. (
  9. 1 => '未审核',
  10. 2 => '已审核',
  11. 3 => '审核未通过',
  12. ),
  13. 'applet' => array
  14. (
  15. 'project' => 'passport/system',
  16. 'appid' => 'wxd0590664d0004f23',
  17. 'secret' => '009bf48ffd5a3ceecb6a933492d641d2',
  18. 'url' => 'https://api.weixin.qq.com/sns/jscode2session',
  19. ),
  20. 'passport_list_button' => array
  21. (
  22. 'list1' => array('订单', '"order&project=act&search_option_uid={id}&oper_parent=user&oper_project=passport"'),
  23. 'list2' => array('兑换码', '"info&project=code&search_option_create_uid={id}&oper_parent=user&oper_project=passport"'),
  24. 'list3' => array('积分', '"user&project=score&search_option_uid={id}&oper_parent=user&oper_project=passport"'),
  25. ),
  26. );
  27. # 前台通用配置
  28. $config['template'] = array
  29. (
  30. # 静态页面目录
  31. 'assets' => array('pc', 'mobile'),
  32. # 模板编译器目录
  33. 'template' => 'pc',
  34. # 模板html文件的所在目录,默认为html
  35. 'path' => '',
  36. 'replace' => array
  37. (
  38. 'css' => 'css/',
  39. 'js' => 'js/',
  40. 'images' => 'images/',
  41. 'script' => 'script/',
  42. 'static' => './static/',
  43. ),
  44. # 编译器与模板对应关系目录,定义之后,代表可以完全不改动前端的代码,可以为空,为空则一一对应,参考manage
  45. 'relation' => array
  46. (
  47. # 首页启动屏幕
  48. 'home' => 'index',
  49. 'list_text' => 'list1',
  50. 'page' => 'intro',
  51. 'view' => 'article',
  52. 'magazine' => 'magzine',
  53. ),
  54. );
  55. return $config;