feat: 补充播客上传声音接口 #1789

This commit is contained in:
binaryify
2023-08-24 16:38:10 +08:00
parent d7cf9d1c2f
commit 954093864d
9 changed files with 178 additions and 9 deletions
+4 -4
View File
@@ -23,14 +23,14 @@
$.ajax({
url: `/login/cellphone?phone=${phone}&password=${password}`,
xhrFields: {
withCredentials: true, //关键
withCredentials: true, //跨域的话必须设置
},
success: function (data) {
console.log(data)
$.ajax({
url: `/recommend/resource `,
xhrFields: {
withCredentials: true, //关键
withCredentials: true, //跨域的话必须设置
},
success: function (data) {
console.log(data)
@@ -47,12 +47,12 @@
axios({
url: `/login/cellphone?phone=${phone}&password=${password}`,
withCredentials: true, //关键
withCredentials: true, //跨域的话必须设置
}).then(function (res) {
console.log(res.data)
axios({
url: `/recommend/resource`,
withCredentials: true, //关键
withCredentials: true, //跨域的话必须设置
}).then(function (res) {
console.log(res.data)
})