瀏覽代碼

Correctif

refactoring
Guillaume Bourgeois 1 年之前
父節點
當前提交
84ce4bbd6b
共有 2 個檔案被更改,包括 3 行新增2 行删除
  1. +1
    -1
      frontend/controllers/SiteController.php
  2. +2
    -1
      producer/controllers/OrderController.php

+ 1
- 1
frontend/controllers/SiteController.php 查看文件

@@ -406,7 +406,7 @@ class SiteController extends FrontendController

if ($signupForm->load($this->getRequest()->post())
&& ($user = $signupForm->signup())
&& $this->getUserCurrent()->login($user)) {
&& Yii::$app->user->login($user)) {

$this->redirect($returnUrl);
}

+ 2
- 1
producer/controllers/OrderController.php 查看文件

@@ -744,8 +744,9 @@ class OrderController extends ProducerBaseController
{
$userProducerManager = $this->getUserProducerManager();
$producerManager = $this->getProducerManager();
$user = GlobalParam::getCurrentUser();
if($user) {
$userProducer = $userProducerManager->findOneUserProducer($user, $producer);
if (!$userProducer) {

Loading…
取消
儲存