|
发表于 2020-9-2 13:45:19
|
显示全部楼层
河南省焦作市
var code="10002";
var params={};
params.transCode=code;
params.code=$scope.code;//验证码
params.veriCode=$scope.vcode;//短xin验证码
params.username=$scope.username;//手机号
params.password1=$scope.pwd;//密码
params.password2=$scope.ppwd;//支fu密码
params.password=hex_md5($scope.pwd); //密码进行md5
params.paypwd=hex_md5($scope.ppwd);//支fu密码进行md5
params.invitecode=$scope.uname;//邀请码
var resValid=validChecker.valid(code, params);
if(resValid){
var ap={};
ap.d = aesEnc(stringify(params)).toString(); //stringify(params) 把上面的params对象转成字符串传进aesEnc进行aes加密以后转为字符串
//"{"transCode":"10002","code":"123456","veriCode":"123456","username":"15588855555","password1":"a123456789","password2":"123456","password":"65a0ec385ca6a0c1e20d1f8270c28303","paypwd":"e10adc3949ba59abbe56e057f20f883e","invitecode":"123"}"//转换后的字符串
request.send(code,ap).then(function(data) {
//success函数
blackDialog.redirect(zccg,"download.html");
});
} |
|