mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-24 02:08:48 +00:00
fix: 修复一般问题
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
ba46c73cc7
commit
89c7a89df2
@ -5,7 +5,7 @@ import java.net.HttpURLConnection;
|
||||
import java.net.URL;
|
||||
|
||||
public class PasteXcode {
|
||||
private final String POST_URL = "http://paste.xcode.ro/";
|
||||
private final static String POST_URL = "http://paste.xcode.ro/";
|
||||
|
||||
public static void main(final String[] args) {
|
||||
final PasteXcode p = new PasteXcode();
|
||||
|
@ -8,7 +8,7 @@ import java.net.URL;
|
||||
import java.net.URLEncoder;
|
||||
|
||||
public class Pastebin {
|
||||
private final String POST_URL = "http://pastebin.com/api/api_post.php";
|
||||
private final static String POST_URL = "http://pastebin.com/api/api_post.php";
|
||||
private final String API_KEY;
|
||||
|
||||
public Pastebin() {
|
||||
|
@ -17,15 +17,15 @@ import org.json.simple.JSONValue;
|
||||
*/
|
||||
public class StickyNotes {
|
||||
private final static String DOMAIN = "http://paste.yumc.pw";
|
||||
private final String POST_URL = DOMAIN + "/api/json/create";
|
||||
private final String VIEW_URL = DOMAIN + "/%s/%s";
|
||||
private final static String POST_URL = DOMAIN + "/api/json/create";
|
||||
private final static String VIEW_URL = DOMAIN + "/%s/%s";
|
||||
|
||||
public static void main(final String[] args) {
|
||||
final StickyNotes p = new StickyNotes();
|
||||
final PasteContent paste = new PasteContent();
|
||||
paste.addLine("异常提交测试!");
|
||||
paste.addThrowable(new Throwable());
|
||||
System.out.println(p.post(StickyNotes.Expire.HalfHour, paste));;
|
||||
System.out.println(p.post(StickyNotes.Expire.HalfHour, paste));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -98,7 +98,7 @@ public class StickyNotes {
|
||||
outputStream.flush();
|
||||
outputStream.close();
|
||||
final BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
|
||||
final StringBuffer request = new StringBuffer();
|
||||
final StringBuilder request = new StringBuilder();
|
||||
String temp;
|
||||
while ((temp = br.readLine()) != null) {
|
||||
request.append(temp);
|
||||
|
Loading…
Reference in New Issue
Block a user