mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 04:21:27 +08:00
修复oauth登录code reused问题
This commit is contained in:
parent
878b8c4e54
commit
a699fdba1f
@ -132,7 +132,6 @@ class ConnectController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$openUser = $service->getOpenUserInfo($code, $state, $provider);
|
|
||||||
$connect = $service->getConnectRelation($openUser['id'], $openUser['provider']);
|
$connect = $service->getConnectRelation($openUser['id'], $openUser['provider']);
|
||||||
|
|
||||||
if ($this->authUser->id > 0) {
|
if ($this->authUser->id > 0) {
|
||||||
|
@ -56,13 +56,12 @@ class PublicController extends \Phalcon\Mvc\Controller
|
|||||||
*/
|
*/
|
||||||
public function shareAction()
|
public function shareAction()
|
||||||
{
|
{
|
||||||
$id = $this->request->getQuery('id', 'int', 0);
|
$id = $this->request->getQuery('id', 'int');
|
||||||
$type = $this->request->getQuery('type', 'string', 'course');
|
$type = $this->request->getQuery('type', 'string');
|
||||||
$referer = $this->request->getQuery('referer', 'int', 0);
|
|
||||||
|
|
||||||
$service = new ShareUrlService();
|
$service = new ShareUrlService();
|
||||||
|
|
||||||
$location = $service->handle($id, $type, $referer);
|
$location = $service->handle($id, $type);
|
||||||
|
|
||||||
return $this->response->redirect($location, true);
|
return $this->response->redirect($location, true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user