Api.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. *第三方api处理
  4. */
  5. namespace app\api\controller;
  6. /**
  7. * ============================================================================
  8. *
  9. * ============================================================================
  10. * 版权所有 2014-2028 浙江惠利玛产业互联网有限公司,并保留所有权利。
  11. * 网站地址: https://www.valimart.net/
  12. * ----------------------------------------------------------------------------
  13. *
  14. * ============================================================================
  15. * 第三方登录控制器
  16. */
  17. class Api extends MobileMall
  18. {
  19. /* QQ登录 */
  20. public function oa_qq() {
  21. include (PLUGINS_PATH . '/login/qq_h5/oauth/qq_login.php');
  22. }
  23. /* QQ登录回调 */
  24. public function oa_qq_callback() {
  25. include PLUGINS_PATH . '/login/qq_h5/oauth/qq_callback.php';
  26. }
  27. /**
  28. *新浪微博登录
  29. */
  30. public function oa_sina(){
  31. if (input('param.step') == 'callback'){
  32. include PLUGINS_PATH.'/login/sina_h5/callback.php';
  33. }else{
  34. include PLUGINS_PATH.'/login/sina_h5/index.php';
  35. }
  36. }
  37. }