Api.php 735 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. *第三方api处理
  4. */
  5. namespace app\api\controller;
  6. /**
  7. * 第三方登录控制器
  8. */
  9. class Api extends MobileMall
  10. {
  11. /* QQ登录 */
  12. public function oa_qq()
  13. {
  14. include(PLUGINS_PATH . '/login/qq_h5/oauth/qq_login.php');
  15. }
  16. /* QQ登录回调 */
  17. public function oa_qq_callback()
  18. {
  19. include PLUGINS_PATH . '/login/qq_h5/oauth/qq_callback.php';
  20. }
  21. /**
  22. *新浪微博登录
  23. */
  24. public function oa_sina()
  25. {
  26. if (input('param.step') == 'callback') {
  27. include PLUGINS_PATH . '/login/sina_h5/callback.php';
  28. } else {
  29. include PLUGINS_PATH . '/login/sina_h5/index.php';
  30. }
  31. }
  32. }