Kirin 3 anos atrás
pai
commit
fb86cab480
1 arquivos alterados com 1 adições e 8 exclusões
  1. 1 8
      app/api/controller/PublicController.php

+ 1 - 8
app/api/controller/PublicController.php

@@ -45,14 +45,7 @@ class PublicController
 
     public function test(Request $request)
     {
-        $list = TreeRecommend::where('id', 96)->find();
-        $up = TreeRecommend::where('id', $list['parent_id'])->find();
-        $i = 12;
-        while ($i--) {
-            $up->get = $up['get']- 135;
-            $up->save();
-            $up = TreeRecommend::where('id', $up['parent_id'])->find();
-        }
+        TreeRecommend::insertTree(163,163);
     }
 
     public static function spreadIntegral($uid)