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()
|
||||
{
|
||||
$this->source = new Source('westdc');
|
||||
$this->source = new Source('poles');
|
||||
}
|
||||
|
||||
public function getSource()
|
||||
|
|
|
@ -8,7 +8,7 @@ class Source
|
|||
private $website;
|
||||
private $source;
|
||||
private $target;
|
||||
private $sourceType = array("westdc","heihedata","card");
|
||||
private $sourceType = array("poles", "westdc","heihedata","card");
|
||||
|
||||
public function __construct($website){
|
||||
$this->source = new stdClass();
|
||||
|
@ -56,6 +56,19 @@ class Source
|
|||
|
||||
);
|
||||
|
||||
|
||||
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'){
|
||||
$this->source->escience->config = array(
|
||||
'id' => '71852',
|
||||
|
|
Loading…
Reference in New Issue