|
14精币
var e = v(t.default.mark((function e(l, a, n, r) {
var o, c, v, b, f, h = arguments;
return t.default.wrap((function (e) {
while (1) switch (e.prev = e.next) {
case 0:
if (o = !(h.length > 4 && void 0 !== h[4]) || h[4], o && (c = i.get("user_info", !0), a.userId = c ? c.id : 0), a.facility) {
e.next = 6;
break
}
return e.next = 5, d();
case 5:
a.facility = e.sent;
case 6:
v = JSON.parse(JSON.stringify(a)), b = Object.keys(v), b.length > 0 && (v.time = (new Date).getTime(), b = Object.keys(v), b.sort(), f = "", b.forEach((function (e) {
"facility" !== e && (f += "".concat(e, "=").concat(v[e], "&"))
})), f = f.substr(0, f.length - 1) + "Asdf12345678&*", v.sign = u.default.hex_md5_32Upper(f)), uni.request({
url: s.apiBaseUrl + "/wechat/" + l,
data: v,
header: {
"content-type": "application/x-www-form-urlencoded"
},
method: "POST",
success: function (e) {
n(e.data)
},
complete: function (e) {
setTimeout((function () {
uni.hideLoading()
}), 1e3), r && r()
}
});
case 10:
case "end":
return e.stop()
}
}), e)
求解里面的f参数
|
最佳答案
查看完整内容
f.substr(0, f.length - 1) + "Asdf12345678&*"
继续找 f的位置吧
|