|
|
@@ -28,12 +28,10 @@ public class BaiduImageCheckUtil { |
|
|
|
// 获取token |
|
|
|
private final static String auth_url = "https://aip.baidubce.com/oauth/2.0/token?"; |
|
|
|
// 百度API Key |
|
|
|
private final static String apiKey = "qnx99HW0HY9xoOEEVRuvtnQ4"; |
|
|
|
private final static String apiKey = "GDTWrpREzCbD2rdzifwESxYY"; |
|
|
|
|
|
|
|
// 百度Secret Key |
|
|
|
private final static String secretKey = "RY5YCqGejrc32xT5kIxDj0mqP9QRiKfD"; |
|
|
|
//写死的 access_token |
|
|
|
private final static String access_token = "24.ba201483ba860779dcb402cc044a3bd4.2592000.1691298224.282335-35825024"; //7.7 |
|
|
|
private final static String secretKey = "eGmeQkP3Opzph0GB4Y2voiOkGOlwbeWd"; |
|
|
|
|
|
|
|
public static ResultData photoCheck(MultipartFile file) { |
|
|
|
try { |
|
|
|