测试问题修改4
This commit is contained in:
parent
652e4da57a
commit
d63007803c
|
|
@ -86,7 +86,7 @@ export function queryFacePhotoApi(data) {
|
|||
*/
|
||||
export function uploadPhotoGenCodeForAppApi(data) {
|
||||
return request({
|
||||
url: '/system/user/edit',
|
||||
url: '/smart-canteen/userFace/uploadUserFace',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ module.exports = {
|
|||
// baseUrl: 'http://192.168.0.39:21995',
|
||||
// #ifdef H5
|
||||
// baseUrl: '/canteen/dev-api',
|
||||
// baseUrl: '/dev-api',
|
||||
baseUrl: '/dev-api',
|
||||
// baseUrl: 'http://192.168.0.244:38380',//测试
|
||||
baseUrl: 'http://192.168.0.244:48380',//测试
|
||||
// baseUrl: 'http://192.168.0.244:48380',//测试
|
||||
// baseUrl: 'http://192.168.0.244:58580',//测试
|
||||
// baseUrl: 'http://192.168.2.82:58080',//张天强
|
||||
// baseUrl: 'http://192.168.2.69:58080',//董高文
|
||||
|
|
|
|||
|
|
@ -128,13 +128,13 @@
|
|||
uni.showLoading({
|
||||
title: '上传中...'
|
||||
})
|
||||
this.userInfo.photoUrl = this.faceData.fileNameUrl
|
||||
console.log(this.userInfo)
|
||||
// let param = {
|
||||
// "userId": uni.getStorageSync('userId'),
|
||||
// "photoUrl": this.faceData.fileNameUrl
|
||||
// }
|
||||
uploadPhotoGenCodeForAppApi(this.userInfo).then(res => {
|
||||
// this.userInfo.photoUrl = this.faceData.fileNameUrl
|
||||
// console.log(this.userInfo)
|
||||
let param = {
|
||||
"userId": uni.getStorageSync('userId'),
|
||||
"photoUrl": this.faceData.fileNameUrl
|
||||
}
|
||||
uploadPhotoGenCodeForAppApi(param).then(res => {
|
||||
console.log(res)
|
||||
if(res.code==200){
|
||||
uni.showToast({
|
||||
|
|
|
|||
|
|
@ -491,7 +491,7 @@ export default {
|
|||
icon: 'none'
|
||||
})
|
||||
setTimeout(()=>{
|
||||
this.getOrderDetail()
|
||||
this.getList()
|
||||
},500)
|
||||
}else{
|
||||
uni.showToast({
|
||||
|
|
|
|||
Loading…
Reference in New Issue