GetOAuthLoginConfig.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Niushop商城系统 - 团队十年电商经验汇集巨献!
  4. * =========================================================
  5. * Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
  6. * ----------------------------------------------
  7. * 官方网址: https://www.niushop.com
  8. * =========================================================
  9. */
  10. namespace addon\system\Wechat\event;
  11. use addon\system\Wechat\common\model\Wechat;
  12. /**
  13. * 获取第三方登录信息
  14. * @author Administrator
  15. *
  16. */
  17. class GetOAuthLoginConfig
  18. {
  19. public function handle($param = [])
  20. {
  21. $config_info = [];
  22. $config_info["info"] = $this->info;
  23. $config_info["info"]['title'] = "微信公众号登录";
  24. $config_model = new Wechat();
  25. $config_result = $config_model->getWechatConfigInfo($param['site_id']);
  26. $config_info['config'] = $config_result["data"];
  27. $config_info["info"]['icon'] = __ROOT__ . '/addon/system/Wechat/sitehome/view/public/img/wechat.png';
  28. $config_info["info"]['config_url'] = addon_url('Wechat://sitehome/config/config');
  29. $config_info["info"]['cn'] = '微信公众号';
  30. $config_info["info"]['en'] = 'wechat';
  31. $config_info["info"]["url"] = addon_url("Wechat://sitehome/config/config");
  32. return $config_info;
  33. }
  34. }