ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~ 获取window操作机的IP echo $_SERVER['REMOTE_ADDR']; ~~~ ~~~ > web.php $config['modules']['gii'] = [ 'class' => 'yii\gii\Module', // uncomment the following to add your IP if you are not connecting from localhost. 'allowedIPs' => ['112.96.188.198'],//, '::1' ]; ~~~ 如果创建失败则需要chmod 777 目录 ~~~ > 填写ip拥有权限后创建module app\modules\admin admin ~~~ ~~~ > 开启module: $config['modules']['gii'] = [ 'class' => 'yii\gii\Module', // uncomment the following to add your IP if you are not connecting from localhost. 'allowedIPs' => ['112.96.188.198'],//, '::1' ]; $config['modules']['admin'] = [ 'class' => 'app\modules\admin', ]; ~~~