1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?php
- namespace app\dict\addon;
- class AddonDict
- {
-
- const INSTALL = 'install';
- const UNINSTALL = 'uninstall';
- const UPDATE = 'update';
- const ON = 1;
- const OFF = 2;
-
- const INSTALL_UNEXECUTED = 'unexecuted';
-
- const INPROGRESS = 'inprogress';
-
- const INSTALL_SUCCESS = 'success';
-
- const INSTALL_FAIL = 'fail';
-
- const ADDON_KEY_BLACK_LIST = [
- 'addon', 'aliapp', 'app', 'applet', 'auth', 'channel', 'dict', 'diy', 'generator', 'home', 'member', 'niucloud',
- 'notice', 'pay', 'site', 'sys', 'upload', 'home', 'user', 'weapp', 'wechat'
- ];
-
- public static function getActionType()
- {
- return [
- self::INSTALL => get_lang('dict_addon.install'),
- self::UNINSTALL => get_lang('dict_addon.uninstall'),
- self::UPDATE => get_lang('dict_addon.update'),
- ];
- }
-
- public static function getStatus()
- {
- return [
- self::ON => get_lang('dict_addon.status_on'),
- self::OFF => get_lang('dict_addon.status_off'),
- ];
- }
- const FRAMEWORK_KEY = 'niucloud-admin';
- const APP = 'app';
- const ADDON = 'addon';
-
- public static function getType()
- {
- return [
- self::APP => get_lang('dict_addon.type_app'),
- self::ADDON => get_lang('dict_addon.type_addon'),
- ];
- }
- }
|