AuthController.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /**
  3. * 会员中心模块
  4. * @author wesmiler
  5. */
  6. namespace app\weixin\controller;
  7. use app\weixin\model\Member;
  8. use app\weixin\model\Wechat;
  9. use app\weixin\validate\MemberValidate;
  10. use think\Request;
  11. class AuthController extends BaseController
  12. {
  13. public function __construct()
  14. {
  15. parent::__construct();
  16. $needRegProfile = session('needRegProfile');
  17. if($needRegProfile == true){
  18. Wechat::redirectUrl(url('/weixin/index/entry', '', '', true));
  19. exit;
  20. }
  21. }
  22. /**
  23. * 认证
  24. * @return mixed
  25. */
  26. public function index()
  27. {
  28. return $this->fetch();
  29. }
  30. /**
  31. * VIP认证
  32. * @return mixed
  33. */
  34. public function vip()
  35. {
  36. return $this->fetch();
  37. }
  38. /**
  39. * 人工牵线
  40. * @return mixed
  41. */
  42. public function hand()
  43. {
  44. return $this->fetch();
  45. }
  46. /**
  47. * 身份证认证
  48. * @return mixed
  49. */
  50. public function idcard()
  51. {
  52. return $this->fetch();
  53. }
  54. /**
  55. * 学历认证
  56. * @return mixed
  57. */
  58. public function education()
  59. {
  60. return $this->fetch();
  61. }
  62. /**
  63. * 职位认证
  64. * @return mixed
  65. */
  66. public function position()
  67. {
  68. return $this->fetch();
  69. }
  70. }