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