Skip to content

Commit

Permalink
修复冲突
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyan74 committed Nov 15, 2019
1 parent b52b503 commit f7ada31
Show file tree
Hide file tree
Showing 33 changed files with 104 additions and 2,689 deletions.
21 changes: 5 additions & 16 deletions addons/RfMerchants/common/components/Bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,35 +1,24 @@
<?php

namespace addons\RfWechat\common\components;
namespace addons\RfMerchants\common\components;

use common\helpers\AddonHelper;
use Yii;
use common\enums\AppEnum;
use common\interfaces\AddonWidget;

/**
* Bootstrap
*
* Class Bootstrap
* @package addons\RfWechat\common\config
* @package addons\RfMerchants\common\config
*/
class Bootstrap implements AddonWidget
{
/**
* @param $addon
* @return mixed|void
* @throws \yii\base\InvalidConfigException
*/
* @param $addon
* @return mixed|void
*/
public function run($addon)
{
// 动态注入服务
Yii::$app->set('wechatServices', [
'class' => 'addons\RfWechat\services\Application',
]);

// 注册资源
if (in_array(Yii::$app->id, [AppEnum::MERCHANT, AppEnum::BACKEND])) {
AddonHelper::filePath();
}
}
}
2 changes: 1 addition & 1 deletion addons/RfMerchants/common/config/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

// ----------------------- 菜单配置 ----------------------- //
'menuConfig' => [
'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
'location' => 'addons', // default:系统顶部菜单;addons:应用中心菜单
'icon' => 'fa fa-puzzle-piece',
],

Expand Down
Loading

0 comments on commit f7ada31

Please sign in to comment.