get('invite_code'); $Recommend = Recommend::where('invite_code', $invite_code)->first(); if (!empty($Recommend)) { $Recommend->open += 1; $Recommend->save(); return redirect("http://127.0.0.1:8787/#/reg?i=$invite_code", 302); } return 0; } }