Parcourir la source

Merge branch 'liuzj-permission-dev' into test

liuzejian il y a 1 an
Parent
commit
712e38d8bf
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      modules/Tuiguang/Http/Controllers/PromotionController.php

+ 1 - 1
modules/Tuiguang/Http/Controllers/PromotionController.php

@@ -133,7 +133,7 @@ class PromotionController extends CatchController
                 ->where(['is_enabled' => 1, 'callback_type' => $request->input('callback_type'),
                     'callback_config_id' => $request->input('callback_config_id')])
                 ->first();
-            if($exist->id != $request->input('id')) {
+            if($exist && $exist->id != $request->input('id')) {
                 CommonBusinessException::throwError(Errors::JULIANG_ACCOUNT_PROMOTION_UNIQUE);
             }
         }