当前位置 :
【请帮忙解释下以下的代码中Terminalterminal=(Terminal)httpRequest.getAttribute("terminal");?Java@RequestMapping("GetCodeReSend")@ResponseBodypublicMapGetCodeReSend(@RequestParam("mobilePhone")StringmobilePhone,@RequestParam(】
更新时间:2024-04-25 07:14:20
1人问答
问题描述:

请帮忙解释下以下的代码中Terminalterminal=(Terminal)httpRequest.getAttribute("terminal");?Java

@RequestMapping("GetCodeReSend")

@ResponseBody

publicMapGetCodeReSend(@RequestParam("mobilePhone")StringmobilePhone,

@RequestParam("getCode")StringgetCode,

HttpServletRequesthttpRequest){

HashMapresponse=newHashMap();

Terminalterminal=(Terminal)httpRequest.getAttribute("terminal");

intcheckCode=parcelDao.getGetCodeByPhoneNum(mobilePhone,terminal);

if(checkCode!=-1){

Stringmsg="YouBox:您的取件码是:"+checkCode;

SendSMSHelper.send(msg,mobilePhone);

response.put("responseCode","0");

}else{

response.put("responseCode","1");

}

returnresponse;

}

}

请帮忙解释下以下的代码中Terminalterminal=(Terminal)httpRequest.getAttribute("terminal");的作用?

最新更新
查询网(q821.com)汇总了汉语字典,新华字典,成语字典,组词,词语,在线查字典,中文字典,英汉字典,在线字典,康熙字典等等,是学生查询学习资料的好帮手,是老师教学的好助手。
声明:本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
Copyright©2009-2021 查询网 q821.com 版权所有 闽ICP备19006478号-19