moonsflyer пре 3 месеци
родитељ
комит
f139c31987
1 измењених фајлова са 5 додато и 1 уклоњено
  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']);