| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <?php
- // uncomment the following to define a path alias
- // Yii::setPathOfAlias('local','path/to/local-folder');
- // This is the main Web application configuration. Any writable
- // CWebApplication properties can be configured here.
- return array(
- 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
- 'name'=>'智铺子运营管理系统',
- 'language'=>'zh_cn',
- 'timeZone'=>'Asia/Chongqing',
- // preloading 'log' component
- 'preload'=>array('log'),
- // autoloading model and component classes
- 'import'=>array(
- 'application.models.*',
- 'application.components.*',
- 'application.include.*',
- 'application.include.Lewaimai.*',
- 'application.include.tools.*',
- 'application.include.taskcenter.*',
- 'application.lib.*',
- 'application.models.cy.*',
- 'application.models.ls.*',
- 'application.models.agent.*',
- 'application.models.platform.*',
- 'application.models.form.*',
- ),
- 'modules'=>array(
- // uncomment the following to enable the Gii tool
- 'gii'=>array(
- 'class'=>'system.gii.GiiModule',
- 'password'=>'hhyz122131',
- // If removed, Gii defaults to localhost only. Edit carefully to taste.
- 'ipFilters'=>array('127.0.0.1','::1'),
- ),
- ),
- // application components
- 'components'=>array(
- 'user'=>array(
- // enable cookie-based authentication
- 'allowAutoLogin'=>true,
- ),
- // uncomment the following to enable URLs in path-format
-
- /* 'urlManager'=>array(
- 'urlFormat'=>'path',
- 'showScriptName'=>false,
- 'rules'=>array(
- '<controller:\w+>/<id:\d+>'=>'<controller>/view',
- '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
- '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
- ),
- ), */
- 'db'=>array(
- 'connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=weixin',
- 'emulatePrepare' => true,
- 'username' => 'zhipuzi',
- 'password' => 'Zhipuzitest00',
- 'charset' => 'utf8',
- 'tablePrefix' => 'wx_',
- ),
- 'slaveDb'=>array(
- 'class' => 'CDbConnection',
- 'connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=weixin',
- 'emulatePrepare' => true,
- 'username' => 'zhipuzi',
- 'password' => 'Zhipuzitest00',
- 'charset' => 'utf8',
- 'tablePrefix' => 'wx_',
- ),
- 'platformDb'=>array(
- 'class' => 'CDbConnection',
- 'connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=platform',
- 'emulatePrepare' => true,
- 'username' => 'zhipuzi',
- 'password' => 'Zhipuzitest00',
- 'charset' => 'utf8',
- 'tablePrefix' => 'pf_',
- ),
- 'lsDb'=>array(
- 'class' => 'CDbConnection',
- 'connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=lssystem',
- 'emulatePrepare' => true,
- 'username' => 'zhipuzi',
- 'password' => 'Zhipuzitest00',
- 'charset' => 'utf8',
- 'tablePrefix' => 'wx_',
- ),
- 'lsSlaveDb'=>array(
- 'class' => 'CDbConnection',
- 'connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=lssystem',
- 'emulatePrepare' => true,
- 'username' => 'zhipuzi',
- 'password' => 'Zhipuzitest00',
- 'charset' => 'utf8',
- 'tablePrefix' => 'wx_',
- ),
- 'agentDb'=>array(
- 'class' => 'CDbConnection',
- 'connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=agent',
- 'emulatePrepare' => true,
- 'username' => 'zhipuzi',
- 'password' => 'Zhipuzitest00',
- 'charset' => 'utf8',
- 'tablePrefix' => 'ag_',
- ),
- 'errorHandler'=>array(
- // use 'site/error' action to display errors
- 'errorAction'=>'site/error',
- ),
- 'log'=>array(
- 'class'=>'CLogRouter',
- 'routes'=>array(
- array(
- 'class'=>'CFileLogRoute',
- 'levels'=>'info, error, warning',
- ),
- // uncomment the following to show log messages on web pages
- /*
- array(
- 'class'=>'CWebLogRoute',
- ),
- */
- ),
- ),
- 'urlManager'=>array(
- 'urlFormat'=>'path',
- 'showScriptName' => false,
- 'urlSuffix' => '',
- 'rules'=>array(
- '<action:\w+>'=>array('site/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
- 'help/<action:\w+>'=>array('help/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
- '<controller:\w+>/<id:\d+>'=>'<controller>/view',
- 'article/<action:\w+>/<id:\d+>'=>array('article/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
- 'article/<action:\w+>/<type:\d+>'=>array('article/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
- '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
- '<controller:\w+>/<action:\w+>'=>'<controller>/<action>'
- ),
- ),
- ),
- // application-level parameters that can be accessed
- // using Yii::app()->params['paramName']
- 'params'=>array(
- // this is used in contact page
- 'adminEmail'=>'2106microtech@gmail.com',
- //餐饮小程序版本号
- 'MiniVersioncy' => [
- "shop" =>"3.2.1.12",//单店
- "divpage" =>"3.2.1.12",//微页面
- "chainstore"=>"3.2.1.12",//连锁店
- ],
- //零售小程序版本号
- 'MiniVersionls' => [
- "shop" =>"3.2.2.12",//单店
- "divpage" =>"3.2.2.12",//微页面
- "chainstore"=>"3.2.2.12",//连锁店
- ],
- //餐饮共享小程序版本号
- 'MiniVersionShare' => [
- /********************************************上传代码参数*******************************************/
- //小程序版本号
- 'userVersion' => '3.2.3.10',
- //代码描述
- 'userDesc' => '3.2.3共享小程序',
- //套用的模板id
- 'templateId' => '23',
- /********************************************提交审核参数*******************************************/
- //小程序的页面
- "address" => "pages/index/index",
- //小程序的标签
- "tag" => "生活服务",
- //小程序页面的标题
- "title" => "首页",
- ],
- //平台地址
- 'platformUrl'=>'https://pf-test3.zhipuzi.com/',
- //平台api地址
- 'platformApiUrl' => 'https://pf-api-test3.zhipuzi.com',
- //平台派发的appid
- 'open_appid' => '84b19199fd221a78c491cd553cbb4ab7',
- //平台派发的secret
- 'open_secret' => '#repast!@#AfAS#@!',
- //微信开放平台配置s
- "wechatOpenPlatform" => [
- 'appid' => 'wxe66e8394b58176b3',
- 'secret' => '9018b791d2be2067e11da984d6a94df1',
- //公众号消息校验Token
- 'token' => 'TPWTPbWvaDWYkoBMGgw3qEvC2XoKl46lQ6A6Np8wjqw',
- //公众号消息加解密Key
- 'encodingaeskey' => 'vh3aZMH16AXxo3hcmKZAy8rTLpEwIVLvgi3oBbZTnp1',
- ],
- ),
- );
|