shish il y a 3 ans
Parent
commit
4be3b7b31b
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      biz-ghs/notify/classes/NotifyClass.php

+ 6 - 0
biz-ghs/notify/classes/NotifyClass.php

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