admin_main.php 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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. 'platformDb'=>array(
  62. 'class' => 'CDbConnection',
  63. 'connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=platform',
  64. 'emulatePrepare' => true,
  65. 'username' => 'zhipuzi',
  66. 'password' => 'Zhipuzidev00',
  67. 'charset' => 'utf8',
  68. 'tablePrefix' => 'pf_',
  69. ),
  70. 'slaveDb'=>array(
  71. 'class' => 'CDbConnection',
  72. 'connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=weixin',
  73. 'emulatePrepare' => true,
  74. 'username' => 'zhipuzi',
  75. 'password' => 'Zhipuzidev00',
  76. 'charset' => 'utf8',
  77. 'tablePrefix' => 'wx_',
  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'=>'error, warning',
  116. ),
  117. // uncomment the following to show log messages on web pages
  118. /*
  119. array(
  120. 'class'=>'CWebLogRoute',
  121. ),
  122. */
  123. array( // configuration for the toolbar
  124. 'class'=>'CWebLogRoute',
  125. 'levels' => 'trace',
  126. 'categories' => 'system.db.*' #只是显示关于数据库信息
  127. ),
  128. ),
  129. ),
  130. 'urlManager'=>array(
  131. 'urlFormat'=>'path',
  132. 'showScriptName' => false,
  133. 'urlSuffix' => '',
  134. 'rules'=>array(
  135. '<action:\w+>'=>array('site/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
  136. 'help/<action:\w+>'=>array('help/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
  137. '<controller:\w+>/<id:\d+>'=>'<controller>/view',
  138. 'article/<action:\w+>/<id:\d+>'=>array('article/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
  139. 'article/<action:\w+>/<type:\d+>'=>array('article/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
  140. '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
  141. '<controller:\w+>/<action:\w+>'=>'<controller>/<action>'
  142. ),
  143. ),
  144. ),
  145. // application-level parameters that can be accessed
  146. // using Yii::app()->params['paramName']
  147. 'params'=>array(
  148. // this is used in contact page
  149. 'adminEmail'=>'2106microtech@gmail.com',
  150. //餐饮小程序版本号
  151. 'MiniVersioncy' => [
  152. "shop" =>"2.11.1.3",//单店
  153. "divpage" =>"2.11.1.2",//微页面
  154. "chainstore"=>"2.11.1.3",//连锁店
  155. ],
  156. //零售小程序版本号
  157. 'MiniVersionls' => [
  158. "shop" =>"2.11.1.3",//单店
  159. "divpage" =>"2.11.1.2",//微页面
  160. "chainstore"=>"2.11.1.3",//连锁店
  161. ],
  162. //餐饮共享小程序版本号
  163. 'MiniVersionShare' => [
  164. /********************************************上传代码参数*******************************************/
  165. //小程序版本号
  166. 'userVersion' => '3.2.3.2',
  167. //代码描述
  168. 'userDesc' => 'v3.2.3共享小程序',
  169. //套用的模板id
  170. 'templateId' => '13',
  171. /********************************************提交审核参数*******************************************/
  172. //小程序的页面
  173. "address" => "pages/index/index",
  174. //小程序的标签
  175. "tag" => "生活服务",
  176. //小程序页面的标题
  177. "title" => "首页",
  178. ],
  179. //平台地址
  180. 'platformUrl'=>'https://pf-dev.zhipuzi.com/',
  181. //平台api地址
  182. 'platformApiUrl' => 'https://pf-api-dev.zhipuzi.com',
  183. //平台派发的appid
  184. 'open_appid' => '84b19199fd221a78c491cd553cbb4ab7',
  185. //平台派发的secret
  186. 'open_secret' => '#repast!@#AfAS#@!',
  187. //微信开放平台配置s
  188. "wechatOpenPlatform" => [
  189. 'appid' => 'wx1e6803d25f7f5112',
  190. 'secret' => '4e39e7e109bea82359f92e81be66231f',
  191. //公众号消息校验Token
  192. 'token' => 'TPWTPbWvaDWYkoBMGgw3qEvC2XoKl46lQ6A6Np8wjqw',
  193. //公众号消息加解密Key
  194. 'encodingaeskey' => 'vh3aZMH16AXxo3hcmKZAy8rTLpEwIVLvgi3oBbZTnp1',
  195. ],
  196. ),
  197. );