一粒坏汤屎
- 一粒坏汤屎 2018-10-29 已签到连续签到1天,获得了5个金钱
你得把common和frontend的mian.php配置贴出来才好排查,还有backend和frontend一般不同域名,backend登录在frontend是无效的
'id' => 'app-frontend', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'controllerNamespace' => 'frontend\controllers', 'defaultRoute' => 'site', 'modules' => [ 'wap'=>[ 'class'=>'app\modules\wap\WapModule', ], 'agent'=>[ 'class'=>'app\modules\agent\AgentModule', ], 'salesClerk'=>[ 'class'=>'app\modules\salesClerk\SalesClerkModule' ] ], 'components' => [ 'user' => [ 'identityClass' => 'common\models\PayUser', 'enableAutoLogin' => true, ], 'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'levels' => ['error','warning','info'], 'categories' => ['pay'], 'logFile' => '@app/runtime/logs/pay.log', ], ], ], 'errorHandler' => [ 'errorAction' => 'site/error', ], 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => [ ], ], 'request' => [ 'cookieValidationKey' => 'fill in a secret key here', ], ],
你得把common和frontend的mian.php配置贴出来才好排查,还有backend和frontend一般不同域名,backend登录在frontend是无效的
'vendorPath' => dirname(dirname(DIR)) . '/vendor',
'timeZone' => 'Asia/Shanghai', 'components' => [ 'db' => [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=kf_cem', 'username' => 'cem', 'password' => 'cem!@SY2018', 'charset' => 'utf8' ], 'cache' => [ 'class' => 'yii\caching\FileCache', ], 'image' => [ 'class' => 'yii\image\ImageDriver', 'driver' => 'GD', //GD or Imagick ], 'session' => [ 'timeout' => 3600, ], 'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'levels' => ['error','warning','info'], ], ], ],
没什么特别的阿,backend和frontend登录是分开的
这个问题本地没发生,只发生在测试和生产环境,backend没问题,frontend有问题,
- 一粒坏汤屎 2018-10-26 已签到连续签到3天,获得了15个金钱
- 一粒坏汤屎 2018-10-25 已签到连续签到2天,获得了10个金钱
- 一粒坏汤屎 发表了说说1024