tianyun пре 1 година
родитељ
комит
dd54a53f11
1 измењених фајлова са 7 додато и 2 уклоњено
  1. 7 2
      dream/index_t.html

+ 7 - 2
dream/index_t.html

@@ -129,9 +129,14 @@
                                 ${app.dream_data}
                                 #梦记`
                 }
-                requestUtil.async('https://memos.tianyunperfect.cn/api/v1/memo?openId=043a086f-e0a3-4711-aa79-5c3cbe89f97c', 'post', data, {'Content-type': 'application/json'}).then(res => {
+                let authStr = "bearer eyJhbGciOiJIUzI1NiIsImtpZCI6InYxIiwidHlwIjoiSldUIn0.eyJuYW1lIjoidGlhbnl1bnBlcmZlY3QiLCJpc3MiOiJtZW1vcyIsInN1YiI6IjEiLCJhdWQiOlsidXNlci5hY2Nlc3MtdG9rZW4iXSwiaWF0IjoxNzA5MTc5NTUyfQ.LFxWB4efya1sL7VoJ42xpXxbAip-udT_Kx2OwZ8Y3-E";
+                let myHeaders = {
+                    'Content-type': 'application/json',
+                    'Authorization': authStr
+                };
+                requestUtil.async('https://memos.tianyunperfect.cn/api/v1/memo', 'post', data, myHeaders).then(res => {
                     if (res['id']) {
-                        window.location.href = `https://memos.tianyunperfect.cn/m/${res['id']}`;
+                        window.location.href = `https://memos.tianyunperfect.cn/m/${res['name']}`;
                     }
                 });
             }