mirror of
				https://github.com/songquanpeng/one-api.git
				synced 2025-11-04 15:53:42 +08:00 
			
		
		
		
	fix: fix aff not effective (#937)
This commit is contained in:
		@@ -6,6 +6,10 @@ const useRegister = () => {
 | 
			
		||||
  const navigate = useNavigate();
 | 
			
		||||
  const register = async (input, turnstile) => {
 | 
			
		||||
    try {
 | 
			
		||||
      let affCode = localStorage.getItem('aff');
 | 
			
		||||
      if (affCode) {
 | 
			
		||||
        input = { ...input, aff_code: affCode };
 | 
			
		||||
      }
 | 
			
		||||
      const res = await API.post(`/api/user/register?turnstile=${turnstile}`, input);
 | 
			
		||||
      const { success, message } = res.data;
 | 
			
		||||
      if (success) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user