|
@@ -7,23 +7,14 @@ import com.github.benmanes.caffeine.cache.Caffeine;
|
|
|
import com.sxtvs.open.api.youmei.dto.CheckWordResponse;
|
|
|
import com.sxtvs.open.api.youmei.entity.YoumeiAccount;
|
|
|
import com.sxtvs.open.api.youmei.mappser.YoumeiAccountMapper;
|
|
|
-import lombok.Cleanup;
|
|
|
import lombok.SneakyThrows;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.apache.hc.client5.http.classic.methods.HttpPost;
|
|
|
-import org.apache.hc.client5.http.entity.UrlEncodedFormEntity;
|
|
|
import org.apache.hc.client5.http.fluent.Request;
|
|
|
-import org.apache.hc.client5.http.impl.classic.BasicHttpClientResponseHandler;
|
|
|
-import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
|
|
|
-import org.apache.hc.client5.http.impl.classic.HttpClients;
|
|
|
-import org.apache.hc.core5.http.NameValuePair;
|
|
|
import org.apache.hc.core5.http.message.BasicNameValuePair;
|
|
|
-import org.apache.http.Consts;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
-import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
@@ -161,13 +152,7 @@ public class YoumeiAccountServiceImpl extends ServiceImpl<YoumeiAccountMapper, Y
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) throws IOException {
|
|
|
- var s = Request.post("https://api-open-wx-www.yqt365.com/dataapp/api/umei/fw/open/wbjc/article_correct_external")
|
|
|
- .bodyForm(List.of(new BasicNameValuePair("accessToken", "0378a08aac3b4ed69f68bb367ad22d4e"),
|
|
|
- new BasicNameValuePair("text", "傻逼")), StandardCharsets.UTF_8)
|
|
|
- .execute()
|
|
|
- .returnContent()
|
|
|
- .asString();
|
|
|
- System.out.println(s);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|