Răsfoiți Sursa

退款申请

shish 3 ani în urmă
părinte
comite
6a10a26d35
1 a modificat fișierele cu 2 adăugiri și 4 ștergeri
  1. 2 4
      biz-ghs/notify/classes/NotifyClass.php

+ 2 - 4
biz-ghs/notify/classes/NotifyClass.php

@@ -43,10 +43,8 @@ class NotifyClass extends BaseClass
                     'page' => '/pagesOrder/refundDetail?id=' . $id,
                     'page' => '/pagesOrder/refundDetail?id=' . $id,
                 ];
                 ];
                 self::add($data);
                 self::add($data);
-                $notifyNum = $staff->notifyNum ?? 0;
-                if ($notifyNum < 9) {
-                    $notifyNum++;
-                }
+                $notifyNum = bcadd($staff->notifyNum, 1);
+                $notifyNum = $notifyNum > 9 ? 9 : $notifyNum;
                 $staff->notifyNum = $notifyNum;
                 $staff->notifyNum = $notifyNum;
                 $staff->save();
                 $staff->save();
             }
             }