修复登陆日志入库错误,升级部分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
+5
View File
@@ -23,6 +23,11 @@ class Common extends Controller
$get = Yii::$app->request->get();
$session = Yii::$app->session;
$this->pid = $session->get('pid');
if (isset($_GET['pid']) && (int)$_GET['pid'] > 0) {
$session->set('pid', (int)$_GET['pid']);
$this->pid = (int)$_GET['pid'];
}
if (!$this->pid) {
return Yii::$app->response->redirect(['index/index']);
}
+1 -2
View File
@@ -51,7 +51,7 @@ class IndexController extends \yii\web\Controller
$plats[$p->id] = $p->toArray();
}
}else{
$plats[] = ['id'=>1,'title'=>'安诚捷顺','thumb'=>'http://public.hiluker.com/qichetuoyun/logo.png'];
$plats[] = ['id' => 1, 'title' => '安邮车联', 'thumb' => 'http://public.hiluker.com/qichetuoyun/logo.png'];
}
if(isset($_GET['pid'])){
@@ -59,7 +59,6 @@ class IndexController extends \yii\web\Controller
if($pid>0){
$session->set('pid',$pid);
return $this->actionWelcome();
exit;
}else{
return $this->render('index',['plats'=>$plats]);
}
+2 -1
View File
@@ -7,7 +7,8 @@
namespace backend\controllers;
use addons\models\AcNewsCat;use Yii;
use Yii;
use addons\models\AcNewsCat;
class NewscatController extends Common{
public $enableCsrfValidation = false;
+2 -16
View File
@@ -28,22 +28,8 @@ use common\models\CVcode;
use addons\models\AcContact;
use common\models\Fans;
class OrderController extends \yii\web\Controller
class OrderController extends Common
{
//替代常规的_construct 析构函数;其他方法调用前执行
public function init()
{
parent::init();
$session = Yii::$app->session;
if (isset($_GET['pid']) && (int)$_GET['pid']>0) {
$session->set('pid', (int)$_GET['pid']);
}
$pid = $session->get('pid');
if (!$pid) {
return Yii::$app->response->redirect(['index/index']);
}
}
//主界面
public function actionIndex()
{
@@ -55,7 +41,7 @@ class OrderController extends \yii\web\Controller
public function actionList()
{
global $_HI,$_FM;
$pid = Yii::$app->session->get('pid');
$pid = $this->pid;
$session = Yii::$app->session;
$model = new AcOrder();
$where = [];