moonsflyer 3 mēneši atpakaļ
vecāks
revīzija
f139c31987
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 5 1
      app/common/logic/PayNotifyLogic.php

+ 5 - 1
app/common/logic/PayNotifyLogic.php

@@ -217,7 +217,11 @@ class PayNotifyLogic extends BaseLogic
             Log::write($e->__toString(), 'FootprintError');
         }
         //更新用户等级
-        UserLogic::updateLevel($order['user_id']);
+        try {
+            UserLogic::updateLevel($order['user_id']);
+        } catch (\Throwable $e) {
+            Log::write($e->__toString(), 'FootprintError');
+        }
 //
         // 自动小票打印
         self::orderPrint($order['id']);