wesmiler 6 years ago
parent
commit
5b6e1e0c32
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vendor/thinkcmf/cmf-app/src/weixin/model/Devices.php

+ 1 - 1
vendor/thinkcmf/cmf-app/src/weixin/model/Devices.php

@@ -59,7 +59,7 @@ class Devices extends Model
                 $day2 = isset($times[1])? trim($times[1]) : '';
                 $day1 = $day1? strtotime(date('Y-m-d '.$day1)) : 0;
                 $day2 = $day2? strtotime(date('Y-m-d '.$day2)) : 0;
-                $curDate = date('Y-m-d H');
+                $curDate = time();
                 $item['business'] = (time()>= $day1 && time() <= $day2) || empty($serviceTime)? 1 : 0;
                 $item['serviceTimes'] = [$day1,$day2, $curDate];