Authored by 於志远

test sso

.idea
\ No newline at end of file
... ...
... ... @@ -24,7 +24,7 @@ class Controller_Login extends Controller_Abstract
$fields = trim($this->_request->fields) ;
////2015-4-13 wuxiao app增加国际手机号登录注册
//$result = Facade_Auth::checkLogin($account, $password);
@file_put_contents('/tmp/sso',date('Y-m-d H:i:s', time()).'|'.$account.'|'.$password."\n", FILE_APPEND);
//@file_put_contents('/tmp/sso',date('Y-m-d H:i:s', time()).'|'.$account.'|'.$password."\n", FILE_APPEND);
$area = trim($this->_request->area) ;
$result = Facade_Auth::checkLogin($account, $password, true, 0 , true, $area);
if ( isset($result['uid']) )
... ...
... ... @@ -11,6 +11,6 @@ Config_Defines::setVaribles('release');
// 引入框架文件
$config = include(APP_DIR.'/config/Boot.inc.php');
require $config['Framework_Dir'].'/Y.class.php';
@file_put_contents('/tmp/sso',date('Y-m-d H:i:s', time()).'|test'."\n", FILE_APPEND);
//@file_put_contents('/tmp/sso',date('Y-m-d H:i:s', time()).'|test'."\n", FILE_APPEND);
// 执行框架分派
Framework_Y::instance($config)->dispatch();
\ No newline at end of file
... ...
... ... @@ -86,9 +86,8 @@ class Service_Auth extends Lib_Service
$tag = self::$_tag_auth . strval($type);
$key = sprintf(self::$_key_auth . '%s_%s', $type, $auth_id);
$param = array('type' => $type, 'auth_id' => $auth_id);
@file_put_contents('/tmp/sso',date('Y-m-d H:i:s', time()).'|sql|'.self::service(self::ROUTER)->getSql('getAuthByTypeAndAid', $param)."\n", FILE_APPEND);
$ret = self::service(self::ROUTER)->tag($tag)->key($key)->expire(300)->fetchRow('getAuthByTypeAndAid', $param);
@file_put_contents('/tmp/sso',date('Y-m-d H:i:s', time()).'|ret|'.var_export($ret)."\n", FILE_APPEND);
//@file_put_contents('/tmp/sso',date('Y-m-d H:i:s', time()).'|ret|'.var_export($ret)."\n", FILE_APPEND);
return $ret;
}
... ...