Authored by 於志远

sso log

@@ -24,6 +24,7 @@ class Controller_Login extends Controller_Abstract @@ -24,6 +24,7 @@ class Controller_Login extends Controller_Abstract
24 $fields = trim($this->_request->fields) ; 24 $fields = trim($this->_request->fields) ;
25 ////2015-4-13 wuxiao app增加国际手机号登录注册 25 ////2015-4-13 wuxiao app增加国际手机号登录注册
26 //$result = Facade_Auth::checkLogin($account, $password); 26 //$result = Facade_Auth::checkLogin($account, $password);
  27 + @file_put_contents('/tmp/sso',date('Y-m-d H:i:s', time()).'|'.$account.'|'.$password."\n", FILE_APPEND);
27 $area = trim($this->_request->area) ; 28 $area = trim($this->_request->area) ;
28 $result = Facade_Auth::checkLogin($account, $password, true, 0 , true, $area); 29 $result = Facade_Auth::checkLogin($account, $password, true, 0 , true, $area);
29 if ( isset($result['uid']) ) 30 if ( isset($result['uid']) )
@@ -86,8 +86,10 @@ class Service_Auth extends Lib_Service @@ -86,8 +86,10 @@ class Service_Auth extends Lib_Service
86 $tag = self::$_tag_auth . strval($type); 86 $tag = self::$_tag_auth . strval($type);
87 $key = sprintf(self::$_key_auth . '%s_%s', $type, $auth_id); 87 $key = sprintf(self::$_key_auth . '%s_%s', $type, $auth_id);
88 $param = array('type' => $type, 'auth_id' => $auth_id); 88 $param = array('type' => $type, 'auth_id' => $auth_id);
89 -  
90 - return self::service(self::ROUTER)->tag($tag)->key($key)->expire(300)->fetchRow('getAuthByTypeAndAid', $param); 89 + @file_put_contents('/tmp/sso',date('Y-m-d H:i:s', time()).'|sql|'.self::service(self::ROUTER)->getSql('getAuthByTypeAndAid', $param)."\n", FILE_APPEND);
  90 + $ret = self::service(self::ROUTER)->tag($tag)->key($key)->expire(300)->fetchRow('getAuthByTypeAndAid', $param);
  91 + @file_put_contents('/tmp/sso',date('Y-m-d H:i:s', time()).'|ret|'.var_export($ret)."\n", FILE_APPEND);
  92 + return $ret;
91 } 93 }
92 94
93 /** 95 /**