Commit 6410a400 authored by nie'hong's avatar nie'hong

限制h5账号登录

parent b931f5fb
...@@ -27,7 +27,7 @@ public class PinYinUtil { ...@@ -27,7 +27,7 @@ public class PinYinUtil {
* @return 中文对应的拼音 * @return 中文对应的拼音
*/ */
public static String getPinYin(String chinese, Boolean firstWord, Boolean appendNonChinese) { public static String getPinYin(String chinese, Boolean firstWord, Boolean appendNonChinese) {
/* 6月1日修改前 // 6月1日修改前
//汉语拼音输出格式 //汉语拼音输出格式
HanyuPinyinOutputFormat pinyinOutputFormat = new HanyuPinyinOutputFormat(); HanyuPinyinOutputFormat pinyinOutputFormat = new HanyuPinyinOutputFormat();
//大小写设置 大写 //大小写设置 大写
...@@ -63,21 +63,19 @@ public class PinYinUtil { ...@@ -63,21 +63,19 @@ public class PinYinUtil {
} }
} }
} }
return stringBuilder.toString();*/ return stringBuilder.toString();
// 6月1日修改后 // 6月1日修改后
try { // try {
Pinyin pinyin = new Pinyin(); // Pinyin pinyin = new Pinyin();
String test = pinyin.translateWithSepNoMark(chinese); // String test = pinyin.translateWithSepNoMark(chinese);
System.out.println(test); // System.out.println(test);
} catch (PinyinException e) { // } catch (PinyinException e) {
e.printStackTrace(); // e.printStackTrace();
} // }
return null; // return null;
} }
public static void main(String[] args) { //
getPinYin("abc def", null, null);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment