コード例 #1
0
ファイル: Login.php プロジェクト: emilymwang8/ajk-broker
 static function getVerifyUrl($UserId, $UserName, $userType, $sid = 'anjukemy')
 {
     $time = time();
     $keytime = $time + 3600;
     $systemtime = $time;
     $memberKey = APF::get_instance()->get_config('member_key', 'login');
     $key = Bll_Security_Member::get_md5_key($UserId, $UserName, $memberKey['wechat'], $time, $keytime);
     if ($userType == 2) {
         $location = AnjukeController::getWechatURL('/mbroker/data/overview');
     } else {
         $location = AnjukeController::getWechatURL('/mbroker/data/overview');
         //            $location = AnjukeController::getWechatURL('/mbroker/data/weiliaodata');
     }
     $params = APF::get_instance()->get_request()->get_parameters();
     $history = AnjukeController::getWechatURL('/mbroker/data/login', $params);
     $arr = array('keytime' => $keytime, 'key' => $key, 'sid' => $sid, 'location' => base64_encode($location), 'time' => $time, 'uid' => $UserId, 'name' => $UserName, 'utype' => $userType, 'remember' => '0', 'loginpost' => '1', 'systemtime' => $systemtime, 'frombroker' => '1', 'act' => 'login', 'history' => base64_encode($history), 'no_redirect' => '0');
     return AnjukeController::getWechatURL('/verify', $arr);
 }
コード例 #2
0
 public function getLoginAuthUrl()
 {
     //线上地址
     return $this->getAuthUrl(AnjukeController::getWechatURL('/mbroker/data/login?type=auth'));
     //开发环境地址
     //        return $this->getAuthUrl("http://mendian.anjuke.com/alipay.php?action=login&type=auth");
 }