update login api
This commit is contained in:
parent
0952b7e506
commit
419925dd38
|
@ -46,7 +46,7 @@ class Client extends \Zend_Controller_Plugin_Abstract
|
||||||
|
|
||||||
public function initSource()
|
public function initSource()
|
||||||
{
|
{
|
||||||
$this->source = new Source('westdc');
|
$this->source = new Source('poles');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSource()
|
public function getSource()
|
||||||
|
|
|
@ -8,7 +8,7 @@ class Source
|
||||||
private $website;
|
private $website;
|
||||||
private $source;
|
private $source;
|
||||||
private $target;
|
private $target;
|
||||||
private $sourceType = array("westdc","heihedata","card");
|
private $sourceType = array("poles", "westdc","heihedata","card");
|
||||||
|
|
||||||
public function __construct($website){
|
public function __construct($website){
|
||||||
$this->source = new stdClass();
|
$this->source = new stdClass();
|
||||||
|
@ -55,6 +55,19 @@ class Source
|
||||||
$this->source->sina->param = array(
|
$this->source->sina->param = array(
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
if($this->website == 'poles'){
|
||||||
|
$this->source->escience->config = array(
|
||||||
|
'id' => '74385',
|
||||||
|
'secret' => 'CVKqrnBQbg6dJmlIFdidZgtWBMKbDoNM',
|
||||||
|
'index' => 'http://www.poles.ac.cn',
|
||||||
|
'callback' => 'http://www.poles.ac.cn/account/callback/type/escience',
|
||||||
|
'other' => array(
|
||||||
|
'theme'=>'full'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if($this->website == 'westdc'){
|
if($this->website == 'westdc'){
|
||||||
$this->source->escience->config = array(
|
$this->source->escience->config = array(
|
||||||
|
|
Loading…
Reference in New Issue