修复登陆日志入库错误,升级部分composer依赖项;

临时修复登陆通知邮件不能多发的问题;
This commit is contained in:
2025-07-13 19:37:43 +08:00
parent 037f274ec5
commit 45bc700e8f
93 changed files with 6405 additions and 6804 deletions
+1 -1
View File
@@ -24,12 +24,12 @@ return [
// 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', //服务器端口
'dsn' => 'native://default',
'encryption' => 'ssl', //加密方式
],
'messageConfig'=>[
+3 -2
View File
@@ -28,8 +28,9 @@ class CLog extends \yii\db\ActiveRecord
public function rules()
{
return [
[['username', 'create_time'], 'string', 'max' => 32],
[['ip', 'data'], 'string', 'max' => 64],
[['username'], 'string', 'max' => 32],
[['ip'], 'string', 'max' => 64],
[['data'], 'string', 'max' => 500],
];
}
+51 -51
View File
@@ -1,52 +1,52 @@
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "c_logs".
*
* @property string $username
* @property string $ip
* @property string $data
* @property string $create_time
*/
class Logs extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return '{{%c_logs}}';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['username', 'create_time'], 'string', 'max' => 32],
[['ip'], 'string', 'max' => 64],
[['uid'], 'string', 'max' => 11],
[['usertype'], 'string', 'max' => 1],
[['file','m','v','c','a','domain'], 'string', 'max' => 255],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'username' => Yii::t('common' ,'Username'),
'usertype' => Yii::t('common' ,'Usertype'),
'ip' => Yii::t('common' ,'Ip'),
'data' => Yii::t('common' ,'Do Data'),
'create_time' => Yii::t('common' ,'Create Time'),
];
}
}
namespace common\models;
use Yii;
/**
* This is the model class for table "c_logs".
*
* @property string $username
* @property string $ip
* @property string $data
* @property string $create_time
*/
class Logs extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return '{{%c_logs}}';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['username', 'create_time'], 'string', 'max' => 32],
[['ip'], 'string', 'max' => 64],
[['uid'], 'string', 'max' => 11],
[['usertype'], 'string', 'max' => 1],
[['file', 'm', 'v', 'c', 'a', 'domain'], 'string', 'max' => 255],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'username' => Yii::t('common', 'Username'),
'usertype' => Yii::t('common', 'Usertype'),
'ip' => Yii::t('common', 'Ip'),
'data' => Yii::t('common', 'Do Data'),
'create_time' => Yii::t('common', 'Create Time'),
];
}
}