| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <?php
- /**
- * 会员中心模块
- * @author wesmiler
- */
- namespace app\weixin\controller;
- use app\weixin\model\Member;
- use app\weixin\model\Wechat;
- use app\weixin\service\PRedis;
- use app\weixin\validate\MemberValidate;
- use think\Request;
- class AuthController extends BaseController
- {
- public function __construct()
- {
- parent::__construct();
- $needRegProfile = session('needRegProfile');
- if($needRegProfile == true){
- Wechat::redirectUrl(url('/weixin/index/entry', '', '', true));
- exit;
- }
- }
- /**
- * 认证
- * @return mixed
- */
- public function index()
- {
- return $this->fetch();
- }
- /**
- * VIP认证
- * @return mixed
- */
- public function vip()
- {
- return $this->fetch();
- }
- /**
- * 人工牵线
- * @return mixed
- */
- public function hand()
- {
- return $this->fetch();
- }
- /**
- * 身份证认证
- * @return mixed
- */
- public function idcard()
- {
- $params = input();
- $data = isset($params['data'])? $params['data'] : [];
- $bizNo = isset($data['bizNo'])? $data['bizNo'] : '';
- PRedis::set("caches:faceAuth:result:{$bizNo}", $params, 3600);
- return $this->fetch();
- }
- /**
- * 学历认证
- * @return mixed
- */
- public function education()
- {
- return $this->fetch();
- }
- /**
- * 职位认证
- * @return mixed
- */
- public function position()
- {
- return $this->fetch();
- }
- }
|