){
return G_EXCEPTION_CODE;
}
}
/*******************************************************
鍑芥暟鍚嶏細 checkLoginInput
鍔熻兘锛?瀹夊叏妫鏌ヤ紶鍏ュ弬鏁?
鍙傛暟锛?浼犲叆鍙傛暟
杩斿洖鍊硷細 妫鏌ラ氳繃锛? 鏈氳繃锛?99锛圙_EXCEPTION_CODE锛?
********************************************************/
private function checkLoginInput($par_obj){
try{
//鍒濆鍖栬繑鍥炲?
$ret = 0;
//鍒濆鍖朎O
$this->aa_eo_user = new aa_eo_user();
//灏嗗鎴锋暟鎹浆鍖栨垚鐗瑰畾鐨勫璞?
$loginStruct= (object)$par_obj;
//瀹夊叏杩囨护鐢ㄦ埛ID
$user_id = $loginStruct->user_id;
$user_id = secureString($user_id,1,G_MIN_USERID_LEN,G_MAX_USERID_LEN);
if (strlen($user_id) == 0) {
throw new Exception();
}
$this->aa_eo_user->user_id = $user_id;
//瀹夊叏杩囨护瀵嗙爜
$password = $loginStruct->password;
$password = secureString($password,0,G_MIN_PASSWORD_LEN,G_MAX_PASSWORD_LEN);
if (strlen($password) == 0) {
throw new Exception();
}
$this->aa_eo_user->password = $password;
//瀹夊叏杩囨护鐧诲綍鏃堕棿
$now = date('YmdHis');
$this->aa_eo_user->last_login_time = $now;
//姝e父杩斿洖
return $ret;
}catch(Exception $e){
return G_EXCEPTION_CODE;
}
}
/*******************************************************
鍑芥暟鍚嶏細 checkRegisterInput
鍔熻兘锛?瀹夊叏妫鏌ヤ紶鍏ュ弬鏁?
鍙傛暟锛?浼犲叆鍙傛暟
杩斿洖鍊硷細 妫鏌ラ氳繃锛? 鏈氳繃锛?99锛圙_EXCEPTION_CODE锛?
********************************************************/
private function checkRegisterInput($par_obj){
try{
//鍒濆鍖栬繑鍥炲?
$ret = 0;
//鍒濆鍖朎O
$this->aa_eo_user = new aa_eo_user();
//灏嗗鎴锋暟鎹浆鍖栨垚鐗瑰畾鐨勫璞?
$registerStruct= (object)$par_obj;
//瀹夊叏杩囨护鐢ㄦ埛ID
$user_id = $registerStruct->user_id;
$user_id = secureString($user_id,1,G_MIN_USERID_LEN,G_MAX_USERID_LEN);
if (strlen($user_id) == 0) {
throw new Exception();
}
$this->aa_eo_user->user_id = $user_id;
//瀹夊叏杩囨护瀵嗙爜
$pass
word = $registerStruct->password;
$password = secureString($password,0,G_MIN_PASSWORD_LEN,G_MAX_PASSWORD_LEN);
if (strlen($password) == 0) {
throw new Exception();
}
$this->aa_eo_user->password = $password;
//瀹夊叏杩囨护鐧诲綍鏃堕棿
$now = date('YmdHis');
$this->aa_eo_user->last_login_time = $now;
//姝e父杩斿洖
return $ret;
}catch(Exception $e){
return G_EXCEPTION_CODE;
}
}
}
?>