songxingwei 2 years ago
parent
commit
ec3156ff54
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Timedtask.php

+ 1 - 1
application/api/controller/Timedtask.php

@@ -65,7 +65,7 @@ class Timedtask
                 $weather = json_decode($result,true);
                 if ($weather['error_code']==0){
                     $this_day_weather = $weather['result']['future'][0]['weather'];
-                    Db::name('system_day')->where('id',$info['id'])->update(['weather'=>$this_day_weather]);
+                    Db::name('system_day')->where('id',$info['id'])->update(['weather_json'=>$result,'weather'=>$this_day_weather]);
                 }
             }
         }