大头菜调整为本地站点从而提升加载速度

调整无头浏览器参数
升级fastjson版本
This commit is contained in:
2022-01-08 13:23:52 +08:00
parent 7d1128cc1d
commit aa935e8662
4 changed files with 16 additions and 9 deletions

View File

@@ -288,12 +288,16 @@ public class TurnipProphet extends Model {
public static void main(String[] args) throws Exception {
TurnipProphet prophet = new TurnipProphet();
String prices="108.93.89.84.79........";
String pattern="0";
Map<String,String >map=prophet.openTurnip(prices,pattern);
prophet.sendQQ(map,prices,pattern);
}
public Map<String, String> openTurnip(String prices, String pattern) throws Exception {
String url = String.format("https://turnipprophet.io?prices=%s%s",
String url = String.format("http://127.0.0.1:7000/?prices=%s%s",
prices,
pattern == null ? "" : "&pattern=" + pattern
);