yuliang 5 년 전
부모
커밋
43dd59ca79
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      whepi-ui/templates/home/getLocation.js
  2. 1 1
      whepi-web/src/main/java/com/bofeng/controller/EpiAdminController.java

+ 2 - 2
whepi-ui/templates/home/getLocation.js

@@ -10,7 +10,7 @@
 // ]
 // ]
 // });
 // });
 function getLocation() {
 function getLocation() {
-
+  return;
   wx.getLocation({
   wx.getLocation({
     type: 'wgs84',
     type: 'wgs84',
     success: function (res) {
     success: function (res) {
@@ -19,7 +19,7 @@ function getLocation() {
       var geocoder = new qq.maps.Geocoder({
       var geocoder = new qq.maps.Geocoder({
         complete: function (result) {
         complete: function (result) {
           if ('当阳市' === result.detail.addressComponents.district) {
           if ('当阳市' === result.detail.addressComponents.district) {
-            autoLocal='当阳市';
+            autoLocal = '当阳市';
           } else {
           } else {
             autoLocal = result.detail.addressComponents.city;
             autoLocal = result.detail.addressComponents.city;
           }
           }

+ 1 - 1
whepi-web/src/main/java/com/bofeng/controller/EpiAdminController.java

@@ -79,7 +79,7 @@ public class EpiAdminController {
         System.out.println("==============执行定时任务完毕================");
         System.out.println("==============执行定时任务完毕================");
     }
     }
 
 
-    @Scheduled(cron = "0 10 20 * * ?") //每天19点执行一次
+    @Scheduled(cron = "0 0 19 * * ?") //每天19点执行一次
     public void scheduledTaskByFixedDelay2() {
     public void scheduledTaskByFixedDelay2() {
         System.out.println("==============执行定时任务开始================");
         System.out.println("==============执行定时任务开始================");
         Long start = 0L, count = 100L;
         Long start = 0L, count = 100L;