Initial commit,修正

This commit is contained in:
2025-07-13 19:37:38 +08:00
parent 38ce288e27
commit 65bbd06981
12384 changed files with 3985464 additions and 8 deletions
+4
View File
@@ -0,0 +1,4 @@
codeception-local.php
main-local.php
params-local.php
test-local.php
+3
View File
@@ -0,0 +1,3 @@
<?php
Yii::setAlias('@common', dirname(__DIR__));
Yii::setAlias('@console', dirname(dirname(__DIR__)) . '/console');
+61
View File
@@ -0,0 +1,61 @@
<?php
# @Author: fm453
# @Date: 1970-01-01T08:00:00+08:00
# @Email: fm453@hiluker.com
# @Last modified by: fm453
# @Last modified time: 2021-09-14T23:27:42+08:00
return [
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset',
],
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'components' => [
'cache' => [
'class' => 'yii\caching\FileCache',
],
'mailer' => [
'class' => 'yii\symfonymailer\Mailer',
'viewPath' => '@common/mail',
// send all mails to a file by default. You have to set
// 'useFileTransport' to false and configure a transport
// for the mailer to send real emails.
'useFileTransport' => false,
'transport' => [
// 'class' => 'Swift_SmtpTransport', //使用的类
'scheme' => 'smtps',
'host' => 'smtp.qq.com', //邮箱服务一地址
'username' => '393213759@qq.com',//邮箱地址,发送的邮箱
'password' => 'oqqkcnstydagbigd', //QQ邮箱授权码
'port' => '465', //服务器端口
'encryption' => 'ssl', //加密方式
],
'messageConfig'=>[
'charset'=>'UTF-8',
'from'=>['393213759@qq.com'=>'admin']
],
],
/**
* 语言包配置(归于components下),
* 将"源语言"翻译成"目标语言". 注意"源语言"默认配置为 'sourceLanguage' => 'en-US'
* 使用: \Yii::t('common', 'title'); 将common/messages下的common.php中的title转为对应的中文
*/
'i18n' => [
'translations' => [
'*' => [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@common/messages',
//'sourceLanguage' => 'en-US',
'fileMap' => [
'common' => 'common.php',
'frontend' => 'frontend.php',
'backend' => 'backend.php',
'errorcode' => 'errorcode.php',
],
],
],
],
],
];
+23
View File
@@ -0,0 +1,23 @@
<?php
return [
//目前已经添加的一些数据模型
'dataModules' => [
'realty' => '房地产',
'page' => '页面',
'goods' => '商品',
'price' => '价格',
'stock' => '库存',
'order' => '订单',
'shopcart' => '购物车',
'article' => '文章',
'users' => '用户',
'comment' => '评论',
'emarketing' => '营销',
'attachment' => '附件',
'ads' => '广告',
'chat' => '聊天室',
'setting' => '设置记录',
'metadata' => '元数据',
'alimsg' => '阿里云短信',
],
];
+8
View File
@@ -0,0 +1,8 @@
<?php
return [
'adminEmail' => 'admin@lukegzs.com',
'supportEmail' => '393213759@qq.com', //对应main-local的配置
'noticeEmail' => '393213759@qq.com', //邮件通知用的邮箱(注意必须和main配置的邮件服务器一致)
'user.passwordResetTokenExpire' => 3600,
'user.passwordMinLength' => 8,
];
+11
View File
@@ -0,0 +1,11 @@
<?php
return [
'id' => 'app-common-tests',
'basePath' => dirname(__DIR__),
'components' => [
'user' => [
'class' => 'yii\web\User',
'identityClass' => 'common\models\User',
],
],
];