[小程序&后端] 修改出入码api接口
This commit is contained in:
parent
0fd28a2150
commit
fcd46cba4f
@ -43,7 +43,7 @@ server.on("request", async (req, res) => {
|
||||
// msg: "用户名或密码不正确",
|
||||
// data: null
|
||||
};
|
||||
} else if (req.url.startsWith('/access/getCodeInfo')) {
|
||||
} else if (req.url.startsWith('/access/code/getCodeInfo')) {
|
||||
result = {
|
||||
success: true,
|
||||
msg: "成功",
|
||||
|
@ -14,7 +14,7 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/access")
|
||||
@RequestMapping("/access/code")
|
||||
public class CodeController {
|
||||
|
||||
@Autowired
|
||||
|
@ -1,7 +1,5 @@
|
||||
package com.cxyxiaomo.epp.access.service;
|
||||
|
||||
import com.cxyxiaomo.epp.common.pojo.User;
|
||||
|
||||
public interface AccessService {
|
||||
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ export default {
|
||||
Taro.showLoading({ title: '加载中' })
|
||||
var that = this;
|
||||
Taro.request({
|
||||
url: `${this.baseUrl}/access/getCodeInfo`,
|
||||
url: `${this.baseUrl}/access/code/getCodeInfo`,
|
||||
method: "POST",
|
||||
header: {
|
||||
"Content-Type": "application/x-www-form-urlencoded" //用于post
|
||||
|
@ -41,7 +41,7 @@
|
||||
"method": "POST",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "http://localhost:8002/access/getCodeInfo?id=1",
|
||||
"raw": "http://localhost:8002/access/code/getCodeInfo?id=1",
|
||||
"protocol": "http",
|
||||
"host": [
|
||||
"localhost"
|
||||
@ -49,6 +49,7 @@
|
||||
"port": "8002",
|
||||
"path": [
|
||||
"access",
|
||||
"code",
|
||||
"getCodeInfo"
|
||||
],
|
||||
"query": [
|
||||
@ -67,7 +68,7 @@
|
||||
"method": "POST",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "http://epp.only4.work/access/getCodeInfo?id=1",
|
||||
"raw": "http://epp.only4.work/access/code/getCodeInfo?id=1",
|
||||
"protocol": "http",
|
||||
"host": [
|
||||
"epp",
|
||||
@ -76,6 +77,7 @@
|
||||
],
|
||||
"path": [
|
||||
"access",
|
||||
"code",
|
||||
"getCodeInfo"
|
||||
],
|
||||
"query": [
|
||||
|
Loading…
Reference in New Issue
Block a user