gree_leran/unpackage/dist/dev/mp-weixin/comm/api.js

18 lines
348 B
JavaScript
Raw Normal View History

2024-06-16 01:04:56 +00:00
"use strict";
const utils_http = require("../utils/http.js");
function loginByCode(data) {
return utils_http.http({
url: "/api/wxLogin",
data,
method: "post"
});
}
function userInfo() {
return utils_http.http({
url: "/api/getUserInfo",
method: "get"
});
}
exports.loginByCode = loginByCode;
exports.userInfo = userInfo;