瀏覽代碼

Merge branch 'develop'

master
Guillaume Bourgeois 1 年之前
父節點
當前提交
3146bae35c
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      common/helpers/GlobalParam.php

+ 4
- 0
common/helpers/GlobalParam.php 查看文件

@@ -61,6 +61,10 @@ class GlobalParam

public static function getCurrentProducer()
{
if(\Yii::$app->controller->module->id == 'app-console') {
return \Yii::$app->logic->getProducerContext();
}

$producerModule = ProducerModule::getInstance();
if(!\Yii::$app->parameterBag->has('producer') || !\Yii::$app->parameterBag->get('producer')) {
\Yii::$app->parameterBag->set('producer', $producerModule->findOneProducerById(self::getCurrentProducerId()));

Loading…
取消
儲存