[小程序&后端] 修改出入码api接口
This commit is contained in:
		@@ -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: "成功",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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 {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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": [
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user