rabin 7 years ago
parent
commit
315e30d8b2

+ 3 - 2
project/op_dever/config.inc.php

@@ -3,11 +3,12 @@ use KIF\Core\Request;
 $app_path = '/www/onepage/tm'; //eventpager 目录路径
 
 $cdn_host = 'op_cdn.5dev.cn'; //cdn域名配置
+$host = 'op_dever.5dev.cn';//平台域名
 
 $name = 'Dever活动平台';
 return array(
 	'Namespace'	=> 'Cas',
-	'App_Id'	=> 'http://op_dever.5dev.cn/', //平台域名。!!!不同的平台需要有不同的域名
+	'App_Id'	=> 'http://'.$host.'/', //平台域名。!!!不同的平台需要有不同的域名
 	'App_Path'	=> $app_path,
 	'Lib_Path'	=> $app_path . DS . 'lib',
 	'route_file'	=> $app_path . DS . 'config/route.inc.php',
@@ -58,5 +59,5 @@ return array(
 	),
 	// passport签名key
 	'passport_sign_key'	=> 'rD5carfCGbHAhF',
-	'passport_url' => 'http://passport.5dev.cn/auth.info?' ,
+	'passport_url' => 'http://'.$host.'/?c=Login&c=Get' ,
 );

+ 2 - 2
tm/lib/Controller/API/SetUser.class.php

@@ -85,8 +85,8 @@ class SetUser extends Controller {
 	public function doPage() {
 		
 		// 1.获取传递来的相关信息
-		$info ['nickname'] = urldecode($this->params ['username']);
-		$info ['headimgurl'] = urldecode($this->params ['avatar']);
+		$info ['nickname'] = urldecode($this->params ['nickname']);
+		$info ['headimgurl'] = urldecode($this->params ['headimgurl']);
 		$info ['passport_uid'] = $this->params ['uid'];
 		$cas_uid = $this->params['cas_uid'];
 		$back_url = urldecode($this->params['cas_return_url']);

+ 0 - 1
tm/lib/Controller/EventsController.class.php

@@ -79,7 +79,6 @@ class EventsController extends Controller {
 	 */
 	public function getLoginUrl($thisUrl) {
 		
-		return '';
 		// 1.拼接一个 referer 地址 
 		$cookieInfo = html_entity_decode ( Cookie::get ( $this->userCookieName ) );
 		$cookieInfo = json_decode ( $cookieInfo, true );