소스 검색

Approlval -> Approval

JiahengHe 2 년 전
부모
커밋
86030b8376
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 3
      src/main/java/modules/address/token/TokenController.java
  2. 1 1
      src/test/http/address/TokenTest.http

+ 3 - 3
src/main/java/modules/address/token/TokenController.java

@@ -106,13 +106,13 @@ public class TokenController extends MyController {
 	}
 
 	@EmptyInterface(keyArray = {"chainId", "hash", "magicApprolval"})
-	public void makeMagicApprolval(){
+	public void makeMagicApproval(){
 		String requestJson = (String) getRequest().getAttribute("data");
 		JSONObject requestJsonObj = JSONObject.parseObject(requestJson);
 		int chainId = requestJsonObj.getInteger("chainId");
 		String hash = requestJsonObj.getString("hash");
-		String magicApprolval = requestJsonObj.getString("magicApprolval");
-		int num = service.setMagicApprolval(magicApprolval, chainId, hash);
+		String magicApproval = requestJsonObj.getString("magicApproval");
+		int num = service.setMagicApprolval(magicApproval, chainId, hash);
 		renderJson(MyRet.ok("set successful.").setData(num));
 	}
 

+ 1 - 1
src/test/http/address/TokenTest.http

@@ -96,7 +96,7 @@ Content-Type: application/json
 {
   "chainId": 1,
   "hash": "0x8A9009847570FdbCc676c7fD547aB26A358a5005",
-  "magicApprolval": "PASS",
+  "magicApproval": "PASS",
   "auth": {
     "auth": "9d8b7074bf189dcad17189c8f264c0cb",
     "timestamp": "123123"