|
|
@@ -42,6 +42,9 @@ import org.springframework.web.servlet.ModelAndView;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
+import java.io.IOException;
|
|
|
+import java.net.MalformedURLException;
|
|
|
+import java.net.URL;
|
|
|
import java.text.DateFormat;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.time.LocalDate;
|
|
|
@@ -723,6 +726,18 @@ public class BusinessReminderCardController extends JeecgController<BusinessRem
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @GetMapping(value = "/checkNetwork")
|
|
|
+ public Result<?> checkNetwork( ){
|
|
|
+ try {
|
|
|
+ URL url = new URL("https://www.amap.com/");
|
|
|
+ url.openConnection().connect();
|
|
|
+ }catch (Exception e){
|
|
|
+ return Result.error("ping失败");
|
|
|
+ }
|
|
|
+ return Result.OK();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
public String phoneCheck(String newPhone) {
|
|
|
String mes="";
|
|
|
String[] split = newPhone.split(",");
|