1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

[小程序&后端] 修改出入码api接口

This commit is contained in:
程序员小墨 2022-11-27 22:53:56 +08:00
parent 0fd28a2150
commit fcd46cba4f
5 changed files with 7 additions and 7 deletions

View File

@ -43,7 +43,7 @@ server.on("request", async (req, res) => {
// msg: "用户名或密码不正确", // msg: "用户名或密码不正确",
// data: null // data: null
}; };
} else if (req.url.startsWith('/access/getCodeInfo')) { } else if (req.url.startsWith('/access/code/getCodeInfo')) {
result = { result = {
success: true, success: true,
msg: "成功", msg: "成功",

View File

@ -14,7 +14,7 @@ import java.util.HashMap;
import java.util.Map; import java.util.Map;
@Controller @Controller
@RequestMapping("/access") @RequestMapping("/access/code")
public class CodeController { public class CodeController {
@Autowired @Autowired

View File

@ -1,7 +1,5 @@
package com.cxyxiaomo.epp.access.service; package com.cxyxiaomo.epp.access.service;
import com.cxyxiaomo.epp.common.pojo.User;
public interface AccessService { public interface AccessService {
} }

View File

@ -67,7 +67,7 @@ export default {
Taro.showLoading({ title: '加载中' }) Taro.showLoading({ title: '加载中' })
var that = this; var that = this;
Taro.request({ Taro.request({
url: `${this.baseUrl}/access/getCodeInfo`, url: `${this.baseUrl}/access/code/getCodeInfo`,
method: "POST", method: "POST",
header: { header: {
"Content-Type": "application/x-www-form-urlencoded" //post "Content-Type": "application/x-www-form-urlencoded" //post

View File

@ -41,7 +41,7 @@
"method": "POST", "method": "POST",
"header": [], "header": [],
"url": { "url": {
"raw": "http://localhost:8002/access/getCodeInfo?id=1", "raw": "http://localhost:8002/access/code/getCodeInfo?id=1",
"protocol": "http", "protocol": "http",
"host": [ "host": [
"localhost" "localhost"
@ -49,6 +49,7 @@
"port": "8002", "port": "8002",
"path": [ "path": [
"access", "access",
"code",
"getCodeInfo" "getCodeInfo"
], ],
"query": [ "query": [
@ -67,7 +68,7 @@
"method": "POST", "method": "POST",
"header": [], "header": [],
"url": { "url": {
"raw": "http://epp.only4.work/access/getCodeInfo?id=1", "raw": "http://epp.only4.work/access/code/getCodeInfo?id=1",
"protocol": "http", "protocol": "http",
"host": [ "host": [
"epp", "epp",
@ -76,6 +77,7 @@
], ],
"path": [ "path": [
"access", "access",
"code",
"getCodeInfo" "getCodeInfo"
], ],
"query": [ "query": [