修复了头像昵称和V标缓存问题
This commit is contained in:
		
							parent
							
								
									e4c9f84ebf
								
							
						
					
					
						commit
						f82a106516
					
				@ -710,6 +710,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
 | 
					          async function fetchNoCache(url) {
 | 
				
			||||||
 | 
					              const timestamp = new Date().getTime(); 
 | 
				
			||||||
 | 
					              const noCacheUrl = `${url}?timestamp=${timestamp}`; 
 | 
				
			||||||
 | 
					              return fetch(noCacheUrl); 
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          async function updateAuthorInfo(email) {
 | 
					          async function updateAuthorInfo(email) {
 | 
				
			||||||
            if (!email) {
 | 
					            if (!email) {
 | 
				
			||||||
                console.log("Email not provided, skipping author info update.");
 | 
					                console.log("Email not provided, skipping author info update.");
 | 
				
			||||||
@ -719,7 +725,7 @@
 | 
				
			|||||||
            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
					            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(jsonPath);
 | 
					                const response = await fetchNoCache(jsonPath);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const data = await response.json();
 | 
					                    const data = await response.json();
 | 
				
			||||||
                    if (data && data.nickname) {
 | 
					                    if (data && data.nickname) {
 | 
				
			||||||
@ -749,7 +755,7 @@
 | 
				
			|||||||
            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
					            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(url);
 | 
					                const response = await fetchNoCache(url);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const verifiedEmails = await response.json();
 | 
					                    const verifiedEmails = await response.json();
 | 
				
			||||||
                    if (verifiedEmails.includes(email)) {
 | 
					                    if (verifiedEmails.includes(email)) {
 | 
				
			||||||
@ -775,7 +781,7 @@
 | 
				
			|||||||
            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
					            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(avatarUrl);
 | 
					                const response = await fetchNoCache(avatarUrl);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    document.getElementById('avatar').src = avatarUrl;
 | 
					                    document.getElementById('avatar').src = avatarUrl;
 | 
				
			||||||
                    document.getElementById('avatar').style.display = "block";
 | 
					                    document.getElementById('avatar').style.display = "block";
 | 
				
			||||||
 | 
				
			|||||||
@ -502,6 +502,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
 | 
					          async function fetchNoCache(url) {
 | 
				
			||||||
 | 
					              const timestamp = new Date().getTime(); 
 | 
				
			||||||
 | 
					              const noCacheUrl = `${url}?timestamp=${timestamp}`; 
 | 
				
			||||||
 | 
					              return fetch(noCacheUrl); 
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          async function updateAuthorInfo(email) {
 | 
					          async function updateAuthorInfo(email) {
 | 
				
			||||||
            if (!email) {
 | 
					            if (!email) {
 | 
				
			||||||
                console.log("Email not provided, skipping author info update.");
 | 
					                console.log("Email not provided, skipping author info update.");
 | 
				
			||||||
@ -511,7 +517,7 @@
 | 
				
			|||||||
            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
					            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(jsonPath);
 | 
					                const response = await fetchNoCache(jsonPath);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const data = await response.json();
 | 
					                    const data = await response.json();
 | 
				
			||||||
                    if (data && data.nickname) {
 | 
					                    if (data && data.nickname) {
 | 
				
			||||||
@ -541,7 +547,7 @@
 | 
				
			|||||||
            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
					            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(url);
 | 
					                const response = await fetchNoCache(url);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const verifiedEmails = await response.json();
 | 
					                    const verifiedEmails = await response.json();
 | 
				
			||||||
                    if (verifiedEmails.includes(email)) {
 | 
					                    if (verifiedEmails.includes(email)) {
 | 
				
			||||||
@ -567,7 +573,7 @@
 | 
				
			|||||||
            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
					            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(avatarUrl);
 | 
					                const response = await fetchNoCache(avatarUrl);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    document.getElementById('avatar').src = avatarUrl;
 | 
					                    document.getElementById('avatar').src = avatarUrl;
 | 
				
			||||||
                    document.getElementById('avatar').style.display = "block";
 | 
					                    document.getElementById('avatar').style.display = "block";
 | 
				
			||||||
 | 
				
			|||||||
@ -414,6 +414,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
 | 
					          async function fetchNoCache(url) {
 | 
				
			||||||
 | 
					              const timestamp = new Date().getTime(); 
 | 
				
			||||||
 | 
					              const noCacheUrl = `${url}?timestamp=${timestamp}`; 
 | 
				
			||||||
 | 
					              return fetch(noCacheUrl); 
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          async function updateAuthorInfo(email) {
 | 
					          async function updateAuthorInfo(email) {
 | 
				
			||||||
            if (!email) {
 | 
					            if (!email) {
 | 
				
			||||||
                console.log("Email not provided, skipping author info update.");
 | 
					                console.log("Email not provided, skipping author info update.");
 | 
				
			||||||
@ -423,7 +429,7 @@
 | 
				
			|||||||
            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
					            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(jsonPath);
 | 
					                const response = await fetchNoCache(jsonPath);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const data = await response.json();
 | 
					                    const data = await response.json();
 | 
				
			||||||
                    if (data && data.nickname) {
 | 
					                    if (data && data.nickname) {
 | 
				
			||||||
@ -453,7 +459,7 @@
 | 
				
			|||||||
            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
					            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(url);
 | 
					                const response = await fetchNoCache(url);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const verifiedEmails = await response.json();
 | 
					                    const verifiedEmails = await response.json();
 | 
				
			||||||
                    if (verifiedEmails.includes(email)) {
 | 
					                    if (verifiedEmails.includes(email)) {
 | 
				
			||||||
@ -479,7 +485,7 @@
 | 
				
			|||||||
            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
					            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(avatarUrl);
 | 
					                const response = await fetchNoCache(avatarUrl);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    document.getElementById('avatar').src = avatarUrl;
 | 
					                    document.getElementById('avatar').src = avatarUrl;
 | 
				
			||||||
                    document.getElementById('avatar').style.display = "block";
 | 
					                    document.getElementById('avatar').style.display = "block";
 | 
				
			||||||
 | 
				
			|||||||
@ -415,6 +415,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
 | 
					          async function fetchNoCache(url) {
 | 
				
			||||||
 | 
					              const timestamp = new Date().getTime(); 
 | 
				
			||||||
 | 
					              const noCacheUrl = `${url}?timestamp=${timestamp}`; 
 | 
				
			||||||
 | 
					              return fetch(noCacheUrl); 
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          async function updateAuthorInfo(email) {
 | 
					          async function updateAuthorInfo(email) {
 | 
				
			||||||
            if (!email) {
 | 
					            if (!email) {
 | 
				
			||||||
                console.log("Email not provided, skipping author info update.");
 | 
					                console.log("Email not provided, skipping author info update.");
 | 
				
			||||||
@ -424,7 +430,7 @@
 | 
				
			|||||||
            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
					            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(jsonPath);
 | 
					                const response = await fetchNoCache(jsonPath);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const data = await response.json();
 | 
					                    const data = await response.json();
 | 
				
			||||||
                    if (data && data.nickname) {
 | 
					                    if (data && data.nickname) {
 | 
				
			||||||
@ -454,7 +460,7 @@
 | 
				
			|||||||
            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
					            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(url);
 | 
					                const response = await fetchNoCache(url);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const verifiedEmails = await response.json();
 | 
					                    const verifiedEmails = await response.json();
 | 
				
			||||||
                    if (verifiedEmails.includes(email)) {
 | 
					                    if (verifiedEmails.includes(email)) {
 | 
				
			||||||
@ -480,7 +486,7 @@
 | 
				
			|||||||
            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
					            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(avatarUrl);
 | 
					                const response = await fetchNoCache(avatarUrl);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    document.getElementById('avatar').src = avatarUrl;
 | 
					                    document.getElementById('avatar').src = avatarUrl;
 | 
				
			||||||
                    document.getElementById('avatar').style.display = "block";
 | 
					                    document.getElementById('avatar').style.display = "block";
 | 
				
			||||||
@ -496,7 +502,7 @@
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        const email = ""; 
 | 
					        const email = "3055938446@qq.com"; 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (email) {
 | 
					        if (email) {
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
 | 
				
			|||||||
@ -411,6 +411,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
 | 
					          async function fetchNoCache(url) {
 | 
				
			||||||
 | 
					              const timestamp = new Date().getTime(); 
 | 
				
			||||||
 | 
					              const noCacheUrl = `${url}?timestamp=${timestamp}`; 
 | 
				
			||||||
 | 
					              return fetch(noCacheUrl); 
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          async function updateAuthorInfo(email) {
 | 
					          async function updateAuthorInfo(email) {
 | 
				
			||||||
            if (!email) {
 | 
					            if (!email) {
 | 
				
			||||||
                console.log("Email not provided, skipping author info update.");
 | 
					                console.log("Email not provided, skipping author info update.");
 | 
				
			||||||
@ -420,7 +426,7 @@
 | 
				
			|||||||
            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
					            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(jsonPath);
 | 
					                const response = await fetchNoCache(jsonPath);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const data = await response.json();
 | 
					                    const data = await response.json();
 | 
				
			||||||
                    if (data && data.nickname) {
 | 
					                    if (data && data.nickname) {
 | 
				
			||||||
@ -450,7 +456,7 @@
 | 
				
			|||||||
            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
					            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(url);
 | 
					                const response = await fetchNoCache(url);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const verifiedEmails = await response.json();
 | 
					                    const verifiedEmails = await response.json();
 | 
				
			||||||
                    if (verifiedEmails.includes(email)) {
 | 
					                    if (verifiedEmails.includes(email)) {
 | 
				
			||||||
@ -476,7 +482,7 @@
 | 
				
			|||||||
            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
					            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(avatarUrl);
 | 
					                const response = await fetchNoCache(avatarUrl);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    document.getElementById('avatar').src = avatarUrl;
 | 
					                    document.getElementById('avatar').src = avatarUrl;
 | 
				
			||||||
                    document.getElementById('avatar').style.display = "block";
 | 
					                    document.getElementById('avatar').style.display = "block";
 | 
				
			||||||
 | 
				
			|||||||
@ -411,6 +411,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
 | 
					          async function fetchNoCache(url) {
 | 
				
			||||||
 | 
					              const timestamp = new Date().getTime(); 
 | 
				
			||||||
 | 
					              const noCacheUrl = `${url}?timestamp=${timestamp}`; 
 | 
				
			||||||
 | 
					              return fetch(noCacheUrl); 
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          async function updateAuthorInfo(email) {
 | 
					          async function updateAuthorInfo(email) {
 | 
				
			||||||
            if (!email) {
 | 
					            if (!email) {
 | 
				
			||||||
                console.log("Email not provided, skipping author info update.");
 | 
					                console.log("Email not provided, skipping author info update.");
 | 
				
			||||||
@ -420,7 +426,7 @@
 | 
				
			|||||||
            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
					            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(jsonPath);
 | 
					                const response = await fetchNoCache(jsonPath);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const data = await response.json();
 | 
					                    const data = await response.json();
 | 
				
			||||||
                    if (data && data.nickname) {
 | 
					                    if (data && data.nickname) {
 | 
				
			||||||
@ -450,7 +456,7 @@
 | 
				
			|||||||
            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
					            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(url);
 | 
					                const response = await fetchNoCache(url);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const verifiedEmails = await response.json();
 | 
					                    const verifiedEmails = await response.json();
 | 
				
			||||||
                    if (verifiedEmails.includes(email)) {
 | 
					                    if (verifiedEmails.includes(email)) {
 | 
				
			||||||
@ -476,7 +482,7 @@
 | 
				
			|||||||
            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
					            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(avatarUrl);
 | 
					                const response = await fetchNoCache(avatarUrl);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    document.getElementById('avatar').src = avatarUrl;
 | 
					                    document.getElementById('avatar').src = avatarUrl;
 | 
				
			||||||
                    document.getElementById('avatar').style.display = "block";
 | 
					                    document.getElementById('avatar').style.display = "block";
 | 
				
			||||||
 | 
				
			|||||||
@ -400,6 +400,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
 | 
					          async function fetchNoCache(url) {
 | 
				
			||||||
 | 
					              const timestamp = new Date().getTime(); 
 | 
				
			||||||
 | 
					              const noCacheUrl = `${url}?timestamp=${timestamp}`; 
 | 
				
			||||||
 | 
					              return fetch(noCacheUrl); 
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          async function updateAuthorInfo(email) {
 | 
					          async function updateAuthorInfo(email) {
 | 
				
			||||||
            if (!email) {
 | 
					            if (!email) {
 | 
				
			||||||
                console.log("Email not provided, skipping author info update.");
 | 
					                console.log("Email not provided, skipping author info update.");
 | 
				
			||||||
@ -409,7 +415,7 @@
 | 
				
			|||||||
            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
					            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(jsonPath);
 | 
					                const response = await fetchNoCache(jsonPath);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const data = await response.json();
 | 
					                    const data = await response.json();
 | 
				
			||||||
                    if (data && data.nickname) {
 | 
					                    if (data && data.nickname) {
 | 
				
			||||||
@ -439,7 +445,7 @@
 | 
				
			|||||||
            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
					            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(url);
 | 
					                const response = await fetchNoCache(url);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const verifiedEmails = await response.json();
 | 
					                    const verifiedEmails = await response.json();
 | 
				
			||||||
                    if (verifiedEmails.includes(email)) {
 | 
					                    if (verifiedEmails.includes(email)) {
 | 
				
			||||||
@ -465,7 +471,7 @@
 | 
				
			|||||||
            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
					            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(avatarUrl);
 | 
					                const response = await fetchNoCache(avatarUrl);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    document.getElementById('avatar').src = avatarUrl;
 | 
					                    document.getElementById('avatar').src = avatarUrl;
 | 
				
			||||||
                    document.getElementById('avatar').style.display = "block";
 | 
					                    document.getElementById('avatar').style.display = "block";
 | 
				
			||||||
 | 
				
			|||||||
@ -392,6 +392,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
 | 
					          async function fetchNoCache(url) {
 | 
				
			||||||
 | 
					              const timestamp = new Date().getTime(); 
 | 
				
			||||||
 | 
					              const noCacheUrl = `${url}?timestamp=${timestamp}`; 
 | 
				
			||||||
 | 
					              return fetch(noCacheUrl); 
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          async function updateAuthorInfo(email) {
 | 
					          async function updateAuthorInfo(email) {
 | 
				
			||||||
            if (!email) {
 | 
					            if (!email) {
 | 
				
			||||||
                console.log("Email not provided, skipping author info update.");
 | 
					                console.log("Email not provided, skipping author info update.");
 | 
				
			||||||
@ -401,7 +407,7 @@
 | 
				
			|||||||
            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
					            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(jsonPath);
 | 
					                const response = await fetchNoCache(jsonPath);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const data = await response.json();
 | 
					                    const data = await response.json();
 | 
				
			||||||
                    if (data && data.nickname) {
 | 
					                    if (data && data.nickname) {
 | 
				
			||||||
@ -431,7 +437,7 @@
 | 
				
			|||||||
            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
					            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(url);
 | 
					                const response = await fetchNoCache(url);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const verifiedEmails = await response.json();
 | 
					                    const verifiedEmails = await response.json();
 | 
				
			||||||
                    if (verifiedEmails.includes(email)) {
 | 
					                    if (verifiedEmails.includes(email)) {
 | 
				
			||||||
@ -457,7 +463,7 @@
 | 
				
			|||||||
            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
					            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(avatarUrl);
 | 
					                const response = await fetchNoCache(avatarUrl);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    document.getElementById('avatar').src = avatarUrl;
 | 
					                    document.getElementById('avatar').src = avatarUrl;
 | 
				
			||||||
                    document.getElementById('avatar').style.display = "block";
 | 
					                    document.getElementById('avatar').style.display = "block";
 | 
				
			||||||
 | 
				
			|||||||
@ -471,6 +471,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
 | 
					          async function fetchNoCache(url) {
 | 
				
			||||||
 | 
					              const timestamp = new Date().getTime(); 
 | 
				
			||||||
 | 
					              const noCacheUrl = `${url}?timestamp=${timestamp}`; 
 | 
				
			||||||
 | 
					              return fetch(noCacheUrl); 
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          async function updateAuthorInfo(email) {
 | 
					          async function updateAuthorInfo(email) {
 | 
				
			||||||
            if (!email) {
 | 
					            if (!email) {
 | 
				
			||||||
                console.log("Email not provided, skipping author info update.");
 | 
					                console.log("Email not provided, skipping author info update.");
 | 
				
			||||||
@ -480,7 +486,7 @@
 | 
				
			|||||||
            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
					            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(jsonPath);
 | 
					                const response = await fetchNoCache(jsonPath);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const data = await response.json();
 | 
					                    const data = await response.json();
 | 
				
			||||||
                    if (data && data.nickname) {
 | 
					                    if (data && data.nickname) {
 | 
				
			||||||
@ -510,7 +516,7 @@
 | 
				
			|||||||
            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
					            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(url);
 | 
					                const response = await fetchNoCache(url);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const verifiedEmails = await response.json();
 | 
					                    const verifiedEmails = await response.json();
 | 
				
			||||||
                    if (verifiedEmails.includes(email)) {
 | 
					                    if (verifiedEmails.includes(email)) {
 | 
				
			||||||
@ -536,7 +542,7 @@
 | 
				
			|||||||
            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
					            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(avatarUrl);
 | 
					                const response = await fetchNoCache(avatarUrl);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    document.getElementById('avatar').src = avatarUrl;
 | 
					                    document.getElementById('avatar').src = avatarUrl;
 | 
				
			||||||
                    document.getElementById('avatar').style.display = "block";
 | 
					                    document.getElementById('avatar').style.display = "block";
 | 
				
			||||||
 | 
				
			|||||||
@ -403,6 +403,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
 | 
					          async function fetchNoCache(url) {
 | 
				
			||||||
 | 
					              const timestamp = new Date().getTime(); 
 | 
				
			||||||
 | 
					              const noCacheUrl = `${url}?timestamp=${timestamp}`; 
 | 
				
			||||||
 | 
					              return fetch(noCacheUrl); 
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          async function updateAuthorInfo(email) {
 | 
					          async function updateAuthorInfo(email) {
 | 
				
			||||||
            if (!email) {
 | 
					            if (!email) {
 | 
				
			||||||
                console.log("Email not provided, skipping author info update.");
 | 
					                console.log("Email not provided, skipping author info update.");
 | 
				
			||||||
@ -412,7 +418,7 @@
 | 
				
			|||||||
            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
					            const jsonPath = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/p.json`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(jsonPath);
 | 
					                const response = await fetchNoCache(jsonPath);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const data = await response.json();
 | 
					                    const data = await response.json();
 | 
				
			||||||
                    if (data && data.nickname) {
 | 
					                    if (data && data.nickname) {
 | 
				
			||||||
@ -442,7 +448,7 @@
 | 
				
			|||||||
            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
					            const url = 'https://emberimg.oss-cn-beijing.aliyuncs.com/upload/verified-email/verified-email.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(url);
 | 
					                const response = await fetchNoCache(url);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    const verifiedEmails = await response.json();
 | 
					                    const verifiedEmails = await response.json();
 | 
				
			||||||
                    if (verifiedEmails.includes(email)) {
 | 
					                    if (verifiedEmails.includes(email)) {
 | 
				
			||||||
@ -468,7 +474,7 @@
 | 
				
			|||||||
            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
					            const avatarUrl = `https://emberimg.oss-cn-beijing.aliyuncs.com/user/${email}/avatar`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = await fetch(avatarUrl);
 | 
					                const response = await fetchNoCache(avatarUrl);
 | 
				
			||||||
                if (response.ok) {
 | 
					                if (response.ok) {
 | 
				
			||||||
                    document.getElementById('avatar').src = avatarUrl;
 | 
					                    document.getElementById('avatar').src = avatarUrl;
 | 
				
			||||||
                    document.getElementById('avatar').style.display = "block";
 | 
					                    document.getElementById('avatar').style.display = "block";
 | 
				
			||||||
 | 
				
			|||||||
Some files were not shown because too many files have changed in this diff Show More
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user