agent_main.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php
  2. // uncomment the following to define a path alias
  3. // Yii::setPathOfAlias('local','path/to/local-folder');
  4. // This is the main Web application configuration. Any writable
  5. // CWebApplication properties can be configured here.
  6. return array(
  7. 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
  8. 'name'=>'智铺子代理商管理系统',
  9. 'language'=>'zh_cn',
  10. 'timeZone'=>'Asia/Chongqing',
  11. // preloading 'log' component
  12. 'preload'=>array('log'),
  13. // autoloading model and component classes
  14. 'import'=>array(
  15. 'application.models.*',
  16. 'application.components.*',
  17. 'application.include.*',
  18. 'application.include.Lewaimai.*',
  19. 'application.lib.*',
  20. ),
  21. 'modules'=>array(
  22. // uncomment the following to enable the Gii tool
  23. 'gii'=>array(
  24. 'class'=>'system.gii.GiiModule',
  25. 'password'=>'hhyz122131',
  26. // If removed, Gii defaults to localhost only. Edit carefully to taste.
  27. 'ipFilters'=>array('127.0.0.1','::1'),
  28. ),
  29. ),
  30. // application components
  31. 'components'=>array(
  32. 'user'=>array(
  33. // enable cookie-based authentication
  34. 'allowAutoLogin'=>true,
  35. ),
  36. // uncomment the following to enable URLs in path-format
  37. // uncomment the following to enable URLs in path-format
  38. 'urlManager'=>array(
  39. 'urlFormat'=>'path',
  40. 'showScriptName' => false,
  41. 'urlSuffix' => '',
  42. 'rules'=>array(
  43. '<action:\w+>'=>array('site/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
  44. 'help/<action:\w+>'=>array('help/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
  45. '<controller:\w+>/<id:\d+>'=>'<controller>/view',
  46. '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
  47. '<controller:\w+>/<action:\w+>'=>'<controller>/<action>'
  48. ),
  49. ),
  50. 'db'=>array(
  51. 'connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=agent',
  52. 'emulatePrepare' => true,
  53. 'username' => 'zhipuzi',
  54. 'password' => 'Zhipuzitest00',
  55. 'charset' => 'utf8',
  56. 'tablePrefix' => 'ag_',
  57. ),
  58. 'platformDb'=>array(
  59. 'class' => 'CDbConnection',
  60. 'connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=platform',
  61. 'emulatePrepare' => true,
  62. 'username' => 'zhipuzi',
  63. 'password' => 'Zhipuzitest00',
  64. 'charset' => 'utf8',
  65. 'tablePrefix' => 'pf_',
  66. ),
  67. 'cyDb'=>array(
  68. 'class' => 'CDbConnection',
  69. 'connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=weixin',
  70. 'emulatePrepare' => true,
  71. 'username' => 'zhipuzi',
  72. 'password' => 'Zhipuzitest00',
  73. 'charset' => 'utf8',
  74. 'tablePrefix' => 'wx_',
  75. ),
  76. 'lsDb'=>array(
  77. 'class' => 'CDbConnection',
  78. 'connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=lssystem',
  79. 'emulatePrepare' => true,
  80. 'username' => 'zhipuzi',
  81. 'password' => 'Zhipuzitest00',
  82. 'charset' => 'utf8',
  83. 'tablePrefix' => 'wx_',
  84. ),
  85. 'errorHandler'=>array(
  86. // use 'site/error' action to display errors
  87. 'errorAction'=>'site/error',
  88. ),
  89. 'log'=>array(
  90. 'class'=>'CLogRouter',
  91. 'routes'=>array(
  92. array(
  93. 'class'=>'CFileLogRoute',
  94. 'levels'=>'info, error, warning',
  95. ),
  96. // uncomment the following to show log messages on web pages
  97. /*
  98. array(
  99. 'class'=>'CWebLogRoute',
  100. ),
  101. */
  102. ),
  103. ),
  104. ),
  105. // application-level parameters that can be accessed
  106. // using Yii::app()->params['paramName']
  107. 'params'=>array(
  108. // this is used in contact page
  109. 'adminEmail'=>'2106microtech@gmail.com',
  110. 'agnet_appid' => '84b19199fd221a78c491cd553cbb4ab7',
  111. 'agent_secret' => '#repast!@#AfAS#@!',
  112. 'sign_timeout' => 1800,
  113. ),
  114. );