修复上传头像失败问题
This commit is contained in:
@@ -161,7 +161,7 @@
|
|||||||
title: '上传中...'
|
title: '上传中...'
|
||||||
});
|
});
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: configdata.APIHOST + '/alioss/upload',
|
url: configdata.APIHOST + 'alioss/upload',
|
||||||
// url: 'https://jiaoyu.xianmxkj.com/sqx_fast/alioss/upload', //仅为示例,非真实的接口地址
|
// url: 'https://jiaoyu.xianmxkj.com/sqx_fast/alioss/upload', //仅为示例,非真实的接口地址
|
||||||
filePath: e.detail.avatarUrl,
|
filePath: e.detail.avatarUrl,
|
||||||
// filePath: res.tempFilePaths[0],
|
// filePath: res.tempFilePaths[0],
|
||||||
@@ -214,7 +214,7 @@
|
|||||||
let token = uni.getStorageSync('token');
|
let token = uni.getStorageSync('token');
|
||||||
let userId = uni.getStorageSync('userId');
|
let userId = uni.getStorageSync('userId');
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: configdata.APIHOST + '/alioss/upload',
|
url: configdata.APIHOST + 'alioss/upload',
|
||||||
// url: 'https://jiaoyu.xianmxkj.com/sqx_fast/alioss/upload', //仅为示例,非真实的接口地址
|
// url: 'https://jiaoyu.xianmxkj.com/sqx_fast/alioss/upload', //仅为示例,非真实的接口地址
|
||||||
filePath: res.tempFilePaths[0],
|
filePath: res.tempFilePaths[0],
|
||||||
name: 'file',
|
name: 'file',
|
||||||
|
|||||||
Reference in New Issue
Block a user