接入资料修改接口

This commit is contained in:
Abin committed 2026-01-15 19:33:56 +08:00
1 parent fa76d2624d
commit ac773fc1d3
6 files changed
+122 -40

No files matched your search

+21
View File
@@ -189,6 +189,26 @@ function ApiLogin(openid,username) {
}
function ApiChangeInfo(openid,username,headiconID) {
return new Promise((resolve, reject) => {
wx.request({
url: baseurl+'/API/ApiChangeInfo.php',
method: 'GET', // 或 'POST'
data: {
openid: openid,
username: username,
headiconID: headiconID,
},
success: res => {
resolve(res.data); // 将获取的结果通过Promise的resolve传递
},
fail: err => {
reject(err); // 如果请求失败,传递错误给Promise的reject
}
});
});
}
function ApiPasswordCodeValidate(openid, passwordcode) {
return new Promise((resolve, reject) => {
@@ -415,6 +435,7 @@ function ApiGetTips() {
ApiGetUserCourseDataFromDB,
ApiLogin,
ApiLogout,
ApiChangeInfo,
ApiGetCourseData,
ApiGetFreeCourseData,
ApiPasswordCodeValidate,