Explorar o código

修复门诊,计免,儿保的定时任务

刘远航 %!s(int64=4) %!d(string=hai) anos
pai
achega
2d3f4ab1c2
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      app/Http/Controllers/Api/V2/PatientController.php

+ 5 - 5
app/Http/Controllers/Api/V2/PatientController.php

xqd
@@ -758,11 +758,11 @@ class PatientController extends AuthController
                     $catNewIds[$k] = $v['id'];
                     $this->ReceivingReminderOK($v['id']);
                 }
-            }else if($v['product_type']==3){
-                if ((time()-$v['receiving_time'])>=(1*60*60*24)){
-                    $menNewIds[$k] = $v['id'];
-                    $this->AppointReminder($v['id']);
-                }
+            }else if($v['product_type']==3 || $v['product_type']==4 || $v['product_type']==5){
+//                if ((time()-$v['receiving_time'])>=(1*60*60*24)){
+                $menNewIds[$k] = $v['id'];
+                $this->AppointReminder($v['id']);
+//                }
             }
 
         }