Currency.php 578 B

123456789101112131415161718192021
  1. <?php
  2. namespace addons\HiGo\common\global_func;
  3. use addons\HiGo\common\enums\HiGoEnum;
  4. use Yii;
  5. class Currency
  6. {
  7. public static function getExtensionCurrency($params): array
  8. {
  9. $mall_id = $params['mall_id'] ?? 0;
  10. $title = '嗨贝';
  11. $basic = [];
  12. if ($mall_id) $basic = Yii::$app->services->setting->addons->get($mall_id, HiGoEnum::ADDONS_NAME, 'basic');
  13. $title = $basic['hi_bei_name'] ?? $title;
  14. $data = [['code' => 'hi_bei', 'title' => $title, 'route' => '/plugins/HiGo/HiCurrency/index']];
  15. return $data;
  16. }
  17. }