cqp 11 ماه پیش
والد
کامیت
f052d6f8c9
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/Service/InspectService.php

+ 1 - 1
app/Service/InspectService.php

@@ -432,7 +432,7 @@ class InspectService extends Service
         $return['rate'] = $rate;
         $return['rate2'] = $rate;
         $pass_rate = 0;
-        if($rate > 0) $pass_rate = round(mt_rand(100, 200) / 100, 2);
+        if($rate > 0 && $rate <= 98.5) $pass_rate = round(mt_rand(100, 200) / 100, 2);
         $return['pass_rate'] = $pass_rate;
 
         return [true, $return];