示例#1
0
 public static function getErrorStr($code)
 {
     if (self::$ERROR_MAP == null) {
         self::$ERROR_MAP = array(self::INVALID_STR => "INVALID_STR", self::INVALID_PARTNER => "INVALID_PARTNER", self::INVALID_USER => "INVALID_USER", self::INVALID_TYPE => "INVALID_TYPE", self::EXPIRED => "EXPIRED", self::LOGOUT => "LOGOUT", Partner::VALIDATE_LKS_DISABLED => "LKS_DISABLED");
     }
     $str = @self::$ERROR_MAP[$code];
     if (!$str) {
         $str = "?";
     }
     return $str;
 }