You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
-
- namespace addons\epay;
-
- use app\common\library\Menu;
- use think\Addons;
- use think\Config;
- use think\Loader;
-
- /**
- * 微信支付宝整合插件
- */
- class Epay extends Addons
- {
-
- /**
- * 插件安装方法
- * @return bool
- */
- public function install()
- {
-
- return true;
- }
-
- /**
- * 插件卸载方法
- * @return bool
- */
- public function uninstall()
- {
-
- return true;
- }
-
- /**
- * 插件启用方法
- * @return bool
- */
- public function enable()
- {
-
- return true;
- }
-
- /**
- * 插件禁用方法
- * @return bool
- */
- public function disable()
- {
-
- return true;
- }
-
- /**
- * 添加命名空间
- */
- public function appInit()
- {
- //添加支付包的命名空间
- Loader::addNamespace('Yansongda', ADDON_PATH . 'epay' . DS . 'library' . DS . 'Yansongda' . DS);
- }
-
- }
|