| | |
| | | |
| | | public static String createRingNum(Integer num){ |
| | | StringBuilder sb = new StringBuilder(); |
| | | sb.append(addZero(num,6)); |
| | | sb.append(addZero(num,4)); |
| | | return sb.toString(); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | System.out.println(createSteelNum("001",70)); |
| | | System.out.println(createRingNum(5)); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | public static void main(String[] args) { |
| | | //getGroups(); |
| | | playMusic(); |
| | | //playMusic(); |
| | | getItemList(); |
| | | } |
| | | |
| | | public static void login(){ |
| | |
| | | return result; |
| | | } |
| | | |
| | | public static String getItemList(){ |
| | | String result = HttpUtils.post("GetItemList",new JSONObject()); |
| | | System.out.println(result); |
| | | return result; |
| | | } |
| | | |
| | | public static String playMusic(String[] groupIds){ |
| | | JSONObject jsonObject = new JSONObject(); |
| | | String[] ms = new String[]{"https://szpipe.thhy-tj.com/jingbao.mp3"}; |
| | |
| | | |
| | | public class HttpUtils { |
| | | |
| | | private static String BaseHost = "http://192.168.5.198:9199/api/"; |
| | | private static String BaseHost = "http://58.210.64.90:9199/api/"; |
| | | |
| | | private static String token = ""; |
| | | |