diff --git a/Readme.md b/Readme.md index 9d3d057..7b4413e 100644 --- a/Readme.md +++ b/Readme.md @@ -1,4 +1,7 @@ ``` +n1e5a6s6m7 +``` +``` conversation详情 { "conversationID": "si_100003_100004", diff --git a/api/login.js b/api/login.js index 86b5c04..5fabd32 100644 --- a/api/login.js +++ b/api/login.js @@ -90,12 +90,19 @@ export const getFriendCircleNewcount = () =>{ export const getFriendCircleInfo = () =>{ return uni.$u?.http.get("/friendcircle/info"); } -export const upload = (url,onProgress) =>{ +export const upload = (files,data,onProgress) =>{ + if(typeof data == 'function'){ + onProgress = data; + data = {}; + } + console.log(typeof files); return new Promise((resolve,reject)=>{ var u = uni.uploadFile({ url: config.getRegisterUrl()+"/user/upload", // 仅为示例,非真实的接口地址 - filePath: url, + filePath: files, + //files:files.length > 1 ? files : files[0], name: "file", + formData:data, header:{ token:uni.getStorageSync("BusinessToken"), }, diff --git a/components/searchbar_place.vue b/components/searchbar_place.vue index e944acd..5dea790 100644 --- a/components/searchbar_place.vue +++ b/components/searchbar_place.vue @@ -1,5 +1,5 @@