当前位置:网站首页>Reverse repackaging of wechat applet

Reverse repackaging of wechat applet

2022-07-06 02:47:00 uiop_ uiop_ uiop

After unpacking the decompiled applet in the previous blog post , Click the debugger in the wechat developer tool , choice Console tab , It is found that the preview interface on the left is blank , Although the real machine debugging can have a display , But the real machine preview is also blank as the interface on the left . And then I found out Console Display inside :

app.js error : TypeError: _typeof3 is not a function

Check the data to find

@babel/runtime/helpers/typeof.js

The original document is :

// Here is the problematic program 
function _typeof(o) {
    return "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? module.exports = _typeof = function(o) {
        return typeof o;
    } : module.exports = _typeof = function(o) {
        return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
    }, _typeof(o);
}

module.exports = _typeof;

Replace all contents in this file with the following :

function _typeof2(o) {
  "@babel/helpers - typeof";
  return (_typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
      return typeof o;
  } : function(o) {
      return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  })(o);
}


function _typeof(o) {
  return "function" == typeof Symbol && "symbol" === _typeof2(Symbol.iterator) ? module.exports = _typeof = function(o) {
      return _typeof2(o);
  } : module.exports = _typeof = function(o) {
      return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : _typeof2(o);
  }, _typeof(o);
}


module.exports = _typeof;

After that, the preview is successful .

原网站

版权声明
本文为[uiop_ uiop_ uiop]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202132359489727.html