DESKTOP-2STQMTS\Administrator 1 жил өмнө
parent
commit
bbeb42d5c0

+ 2 - 2
app/Servers/Member/UserServer.php

@@ -44,10 +44,10 @@ class UserServer
             if ($invite_code){
                 $p_id = WxUser::where('invite_code', $invite_code)->value('id');
                 if(!$p_id){
-                    $p_id = 0;
+                    $p_id = 1;
                 }
             }else{
-                $p_id = 0;//找不到推广上级就为0既是上级为平台
+                $p_id = 1;//找不到推广上级就为0既是上级为平台
             }
 
             $invite_code = $this->createCode();