String mobile = request.getParameter("mobile");
String email = request.getParameter("email");
long car3 = Long.parseLong(card);
Card temp = null;
for(int i=1;i<=count;i++,car3++)
{
//生成卡号且卡号唯一
String car = car3+"";
temp = cardDao.createUserByCard(car.toUpperCase(), score, rtUser.getUsertype(), 1l, rtUser.getOrganizationid(), rtUser, rtUser,count==1?mobile:null,count==1?email:null);
}
if(count == 1 &&(mobile != null && !"".equals(mobile)) && temp != null)
{
//当开卡成功后发短信到手机尊敬的会员您的乐共享登录名13036780222,卡/号818800010022密/码abc123,请登录www.lgx8.com【乐共享】
String content = "您的乐共享卡号是:"+temp.getId()+",密码是:"+temp.getPassword() + ",请登录后继续完善帐号信息。";
SendSms.sendSms(mobile, content);
}
try {
PrintWriter out = response.getWriter();