update login api

This commit is contained in:
jack 2018-02-07 16:19:31 +08:00
parent 0952b7e506
commit 419925dd38
2 changed files with 15 additions and 2 deletions

View File

@ -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()

View File

@ -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(