wxapp2.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. // 应用入口文件
  3. // 检测PHP环境
  4. if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
  5. // 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
  6. define('APP_DEBUG',true);
  7. //define('APP_DEBUG',false);
  8. // 定义应用目录
  9. define('APP_PATH','./wxapp2/');
  10. //自定义
  11. // 引入ThinkPHP入口文件
  12. require './ThinkPHP/ThinkPHP.php';
  13. /*
  14. {
  15. "button": [
  16. {
  17. "name": "软件平台",
  18. "sub_button": [
  19. {
  20. "type": "view",
  21. "name": "巡检",
  22. "url": "http://www.jd-ioe.com/jdxf/weixin.php/home/xunj/"
  23. },
  24. {
  25. "type": "view",
  26. "name": "建筑物安全评估",
  27. "url": "http://www.jd-ioe.com/jdxf/wxapp.php/Home/Fireinsur"
  28. }
  29. ]
  30. },
  31. {
  32. "name": "消防系统",
  33. "sub_button": [
  34. {
  35. "type": "view",
  36. "name": "消防综合信息",
  37. "url": "http://www.jd-ioe.com/jdxf/wxapp.php"
  38. },
  39. {
  40. "type": "view",
  41. "name": "设置",
  42. "url": "http://www.jd-ioe.com/jdxf/weixin.php/Home/Fire/setperm"
  43. }
  44. ]
  45. },
  46. {
  47. "name": "关于觉大",
  48. "sub_button": [
  49. {
  50. "type": "view",
  51. "name": "成功案例",
  52. "url": "http://www.jd-ioe.com/jdxf/wxapp.php/Home/Public/Vexample"
  53. },
  54. {
  55. "type": "click",
  56. "name": "联系我们",
  57. "key": "V1001_EVET_ADDRESS",
  58. "sub_button": [ ]
  59. },
  60. {
  61. "type": "view",
  62. "name": "客户建议",
  63. "url": "http://www.jd-ioe.com/jdxf/wxapp.php/Home/Public/Mainfback"
  64. },
  65. {
  66. "type": "view",
  67. "name": "客户投诉",
  68. "url": "http://www.jd-ioe.com/jdxf/wxapp.php/Home/Public/Profback"
  69. }
  70. ]
  71. }
  72. ]
  73. }
  74. */