|
|
@@ -3,11 +3,17 @@ const {
|
|
|
} = require("./apiConfig")
|
|
|
|
|
|
function getApi(url, data) {
|
|
|
- return api(url, data, "get")
|
|
|
+ return api(url, {
|
|
|
+ ...data,
|
|
|
+ loginAccountId: wx.getStorageSync('loginAccountId')
|
|
|
+ }, "get")
|
|
|
}
|
|
|
|
|
|
function postApi(url, data) {
|
|
|
- return api(url, data, "post")
|
|
|
+ return api(url, {
|
|
|
+ ...data,
|
|
|
+ loginAccountId: wx.getStorageSync('loginAccountId')
|
|
|
+ }, "post")
|
|
|
|
|
|
}
|
|
|
|