测试问题修改4

This commit is contained in:
zzyuan 2025-06-25 10:57:35 +08:00
parent 652e4da57a
commit d63007803c
4 changed files with 11 additions and 11 deletions

View File

@ -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
})

View File

@ -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',//董高文

View File

@ -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({

View File

@ -491,7 +491,7 @@ export default {
icon: 'none'
})
setTimeout(()=>{
this.getOrderDetail()
this.getList()
},500)
}else{
uni.showToast({