sessionKey:xhd2NBEA25ZwTJMpFzGrLw==
encryptedData:uMFa2F/+pW6MPjZKdHinJ0mikpCAuQ/FDo1aj+vgNmSDbRPP9aZsCKrgXXPhDOaoLqlC1pW8zOvAiNk2bUYD9pEplArBOF1NFGwPtKtsieNaYtHYqvA8jDqT6GKFOg/b414z8E7+JkI8DrGUqzWeWNegjjTvz0peA4TLJzlwrJWN4wioMLBQMCXa/7KEu/j7DogKAI3shGv6jHY2IFpVuY4Xt0xOwkwjhnZaL/eBa+g1MAB5XV0BPfuGE9JgYKfl1ce4FDMSlqlCPCKK264ENLoJfCfZ+mw8kTCkJUV6RnY5o7XzS0mn1yuhMHvjAgQtpLaf18TEEttFwggA3cYtHCJGJ/GXCpzmcXzcVt8CSzs9JOOzPoNgKjEfW+ZYoXljhyXV55FqAng0tGH1j+52M46kPSc6wbS8JAqadnb8u6714DnBBbs6lnlofVuP9FuZKfVJQiLw/HLCIXOC36C9WfyfKvMwpHep9AF2GOr2FR4=
iv:xqTcu7bK4V4uau3vDiSCJQ==
参数解码失败
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
getUserInfo: function(e) {
var _this = this;
if (e.detail.errMsg != "getUserInfo:ok") {
return;
}
wx.getUserInfo({
success: function(res) {
var from_id = wx.getStorageSync('from_id');
var encryptedData = res.encryptedData;
var iv = res.iv;
app.login(function(session_key) {
wx.checkSession({
success: function() {
var pars = {
classname: "Business.M_BH,Business",
method: "Func",
proc: "MinLogin",
pars: [{
session_key: session_key,
encryptedData: encryptedData,
iv: iv,
from_id: from_id
}]
};
app.newRequest(pars, function(res) {
if (res.code == "0") {
var obj = res.data;
var data = [obj];
wx.setStorage({
key: 'userName',
data: data,
success: function() {
wx.removeStorageSync("scene");
if (_this.data.type != 1) {
wx.navigateBack({
delta: 1,