fix byhlc112 contract upload flow

This commit is contained in:
danaisuiyuan
2026-05-30 20:08:25 +08:00
parent 9eac385378
commit 718d8c5a3c
15 changed files with 162 additions and 77 deletions

View File

@@ -454,7 +454,7 @@ export function uploadFile(filePath, uploadUrl = 'upload/image') {
});
}
export function uploadUserImage(filePath, pid, model = 'user') {
export function uploadUserImage(filePath, userId, model = 'user') {
return new Promise((resolve, reject) => {
const token = uni.getStorageSync('token');
uni.uploadFile({
@@ -466,7 +466,7 @@ export function uploadUserImage(filePath, pid, model = 'user') {
},
formData: {
model,
pid
userId
},
success: (res) => {
try {
@@ -560,4 +560,3 @@ export default {
uploadFile,
uploadUserImage
};