Client.php 548 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace fast\ucenter\client;
  3. use Exception;
  4. use think\Loader;
  5. class Client
  6. {
  7. public function __construct()
  8. {
  9. $this->initConfig();
  10. Loader::import('client', dirname(__FILE__) . "/uc_client/"); //加载uc客户端主脚本
  11. }
  12. //加载配置
  13. public function initConfig()
  14. {
  15. if (!defined('UC_API'))
  16. {
  17. new Exception('未发现uc常量配置信息');
  18. }
  19. }
  20. function __call($method, $params)
  21. {
  22. return call_user_func_array($method, $params);
  23. }
  24. }