亲测可用
private String decoder(String code,int totalsplit){
//前面totalSplit/2位不要(一般来说 可以随机数)
String str=code.substring(totalsplit/2);
//将字符串最后五位放在前面
String tmp=str.substring(totalsplit,str.length());
String tmp2=str.substring(0,totalsplit);
code=tmp+tmp2;
return code;
}
小程序app.js
wx_encoder:function(str,totalsplit){
//by jiaxi
var random="";
//生成随机数
for(var i=0;i>>>>>>>>>"+end);
return end;
},



