123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?php
- namespace addons\epay;
- use think\Addons;
- use think\Config;
- use think\Loader;
- class Epay extends Addons
- {
-
- public function install()
- {
- return true;
- }
-
- public function uninstall()
- {
- return true;
- }
-
- public function enable()
- {
- return true;
- }
-
- public function disable()
- {
- return true;
- }
-
- public function appInit()
- {
-
- if (!class_exists('\Yansongda\Pay\Pay')) {
- Loader::addNamespace('Yansongda\Pay', ADDON_PATH . 'epay' . DS . 'library' . DS . 'Yansongda' . DS . 'Pay' . DS);
- }
- if (!class_exists('\Yansongda\Supports\Logger')) {
- Loader::addNamespace('Yansongda\Supports', ADDON_PATH . 'epay' . DS . 'library' . DS . 'Yansongda' . DS . 'Supports' . DS);
- }
- }
- }
|