admin_main.php 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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.include.tools.*',
  20. 'application.include.taskcenter.*',
  21. 'application.lib.*',
  22. 'application.models.cy.*',
  23. 'application.models.ls.*',
  24. 'application.models.agent.*',
  25. 'application.models.platform.*',
  26. 'application.models.form.*',
  27. ),
  28. 'modules'=>array(
  29. // uncomment the following to enable the Gii tool
  30. 'gii'=>array(
  31. 'class'=>'system.gii.GiiModule',
  32. 'password'=>'hhyz122131',
  33. // If removed, Gii defaults to localhost only. Edit carefully to taste.
  34. 'ipFilters'=>array('127.0.0.1','::1'),
  35. ),
  36. ),
  37. // application components
  38. 'components'=>array(
  39. 'user'=>array(
  40. // enable cookie-based authentication
  41. 'allowAutoLogin'=>true,
  42. ),
  43. // uncomment the following to enable URLs in path-format
  44. /* 'urlManager'=>array(
  45. 'urlFormat'=>'path',
  46. 'showScriptName'=>false,
  47. 'rules'=>array(
  48. '<controller:\w+>/<id:\d+>'=>'<controller>/view',
  49. '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
  50. '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
  51. ),
  52. ), */
  53. 'db'=>array(
  54. 'connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=weixin',
  55. 'emulatePrepare' => true,
  56. 'username' => 'zhipuzi',
  57. 'password' => 'Zhipuzidev00',
  58. 'charset' => 'utf8',
  59. 'tablePrefix' => 'wx_',
  60. ),
  61. 'slaveDb'=>array(
  62. 'class' => 'CDbConnection',
  63. 'connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=weixin',
  64. 'emulatePrepare' => true,
  65. 'username' => 'zhipuzi',
  66. 'password' => 'Zhipuzidev00',
  67. 'charset' => 'utf8',
  68. 'tablePrefix' => 'wx_',
  69. ),
  70. 'platformDb'=>array(
  71. 'class' => 'CDbConnection',
  72. 'connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=platform',
  73. 'emulatePrepare' => true,
  74. 'username' => 'zhipuzi',
  75. 'password' => 'Zhipuzidev00',
  76. 'charset' => 'utf8',
  77. 'tablePrefix' => 'pf_',
  78. ),
  79. 'lsDb'=>array(
  80. 'class' => 'CDbConnection',
  81. 'connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=lssystem',
  82. 'emulatePrepare' => true,
  83. 'username' => 'zhipuzi',
  84. 'password' => 'Zhipuzidev00',
  85. 'charset' => 'utf8',
  86. 'tablePrefix' => 'wx_',
  87. ),
  88. 'lsSlaveDb'=>array(
  89. 'class' => 'CDbConnection',
  90. 'connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=lssystem',
  91. 'emulatePrepare' => true,
  92. 'username' => 'zhipuzi',
  93. 'password' => 'Zhipuzidev00',
  94. 'charset' => 'utf8',
  95. 'tablePrefix' => 'wx_',
  96. ),
  97. 'agentDb'=>array(
  98. 'class' => 'CDbConnection',
  99. 'connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=agent',
  100. 'emulatePrepare' => true,
  101. 'username' => 'zhipuzi',
  102. 'password' => 'Zhipuzidev00',
  103. 'charset' => 'utf8',
  104. 'tablePrefix' => 'ag_',
  105. ),
  106. 'errorHandler'=>array(
  107. // use 'site/error' action to display errors
  108. 'errorAction'=>'site/error',
  109. ),
  110. 'log'=>array(
  111. 'class'=>'CLogRouter',
  112. 'routes'=>array(
  113. array(
  114. 'class'=>'CFileLogRoute',
  115. 'levels'=>'info, error, warning',
  116. ),
  117. // uncomment the following to show log messages on web pages
  118. /*
  119. array(
  120. 'class'=>'CWebLogRoute',
  121. ),
  122. */
  123. ),
  124. ),
  125. 'urlManager'=>array(
  126. 'urlFormat'=>'path',
  127. 'showScriptName' => false,
  128. 'urlSuffix' => '',
  129. 'rules'=>array(
  130. '<action:\w+>'=>array('site/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
  131. 'help/<action:\w+>'=>array('help/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
  132. '<controller:\w+>/<id:\d+>'=>'<controller>/view',
  133. 'article/<action:\w+>/<id:\d+>'=>array('article/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
  134. 'article/<action:\w+>/<type:\d+>'=>array('article/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
  135. '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
  136. '<controller:\w+>/<action:\w+>'=>'<controller>/<action>'
  137. ),
  138. ),
  139. ),
  140. 'params'=>array(
  141. // this is used in contact page
  142. 'adminEmail'=>'2106microtech@gmail.com',
  143. //餐饮小程序版本号
  144. 'MiniVersioncy' => [
  145. "shop" =>"2.11.1.3",//单店
  146. "divpage" =>"2.11.1.2",//微页面
  147. "chainstore"=>"2.11.1.3",//连锁店
  148. ],
  149. //零售小程序版本号
  150. 'MiniVersionls' => [
  151. "shop"=>"2.9.0",//单店
  152. "divpage"=>"2.9.0",//微页面
  153. "chainstore"=>"2.9.0",//连锁店
  154. ],
  155. //餐饮共享小程序版本号
  156. 'MiniVersionShare' => [
  157. /********************************************上传代码参数*******************************************/
  158. //小程序版本号
  159. 'userVersion' => '3.2.3.1',
  160. //代码描述
  161. 'userDesc' => 'v3.2.3共享小程序',
  162. //套用的模板id
  163. 'templateId' => '12',
  164. /********************************************提交审核参数*******************************************/
  165. //小程序的页面
  166. "address" => "pages/index/index",
  167. //小程序的标签
  168. "tag" => "生活服务",
  169. //小程序页面的标题
  170. "title" => "首页",
  171. ],
  172. //平台地址
  173. 'platformUrl'=>'https://pf-dev2.zhipuzi.com/',
  174. //平台api地址
  175. 'platformApiUrl' => 'https://pf-api-dev2.zhipuzi.com',
  176. //平台派发的appid
  177. 'open_appid' => '84b19199fd221a78c491cd553cbb4ab7',
  178. //平台派发的secret
  179. 'open_secret' => '#repast!@#AfAS#@!',
  180. //微信开放平台配置s
  181. "wechatOpenPlatform" => [
  182. 'appid' => 'wx1e6803d25f7f5112',
  183. 'secret' => '4e39e7e109bea82359f92e81be66231f',
  184. //公众号消息校验Token
  185. 'token' => 'TPWTPbWvaDWYkoBMGgw3qEvC2XoKl46lQ6A6Np8wjqw',
  186. //公众号消息加解密Key
  187. 'encodingaeskey' => 'vh3aZMH16AXxo3hcmKZAy8rTLpEwIVLvgi3oBbZTnp1',
  188. ],
  189. ),
  190. );