rabin 1 rok temu
rodzic
commit
f1bdff696d
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      lib/Profit.php

+ 1 - 2
lib/Profit.php

@@ -129,8 +129,7 @@ class Profit
     private function rule($rule, $child, $config, $uid, $cash, $profit_id, $project_source, $status, $source, $source_id, $name, $desc)
     {
         if ($rule['level'] > 0) {
-            $invite = Dever::config('base')->invite ?? 'invite/api';
-            $parent = Dever::load($invite)->getParent($uid, $rule['level']);
+            $parent = Dever::load('invite/api')->getParent($uid, $rule['level']);
             if ($parent) {
                 $uid = $parent;
             } else {