diff --git a/models/MeritTemplate.php b/models/MeritTemplate.php index 4ff7ada..a482dee 100644 --- a/models/MeritTemplate.php +++ b/models/MeritTemplate.php @@ -134,7 +134,9 @@ public static function getRuleKeys() public static function getTypes() { - return Module::getInstance()->types; + /** @var Module $merit */ + $merit = Yii::$app->getModule('merit'); + return $merit->types; } public static function getStatuses() @@ -144,4 +146,4 @@ public static function getStatuses() self::STATUS_DELETE => '停用', ]; } -} \ No newline at end of file +}