no message

This commit is contained in:
小陌 2024-01-16 23:37:34 +08:00
parent fd66386f0c
commit 5c5e2f2399
4 changed files with 25 additions and 21 deletions

17
app.js
View File

@ -1,22 +1,25 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
var e = require("./common/vendor.js"); var e = require("./common/vendor.js");
require("./constant/index.js"); require("./constant/index.js");
var t = require("./utils/ald-stat.js"), // var t = require("./utils/ald-stat.js"), // Removed ald-stat import
n = require("./utils/mtj-wx-sdk.js"), // n = require("./utils/mtj-wx-sdk.js"), // Removed mtj-wx-sdk import
i = require("./utils/util.js"); i = require("./utils/util.js");
Math; Math;
var a = { var a = {
__name: "App", __name: "App",
setup: function (t) { setup: function () {
return ( return (
e.onLaunch(function () { e.onLaunch(function () {
i.checkForUpdate(), i.checkForUpdate(),
setTimeout(function () { setTimeout(function () {
var t = e.index.getStorageSync("openId"); var t = e.index.getStorageSync("openId");
t && (e.wx$1.aldstat.sendOpenid(t), e.wx$1.uma.setOpenid(t)); if (t) {
// e.wx$1.aldstat.sendOpenid(t); // Removed ald-stat usage
e.wx$1.uma.setOpenid(t);
}
}, 5e3); }, 5e3);
}), }),
function (e, t) { function () {
return {}; return {};
} }
); );
@ -26,8 +29,8 @@ function r() {
var t = e.createSSRApp(a); var t = e.createSSRApp(a);
return t.use(e.createPinia()), { app: t, Pinia: e.Pinia }; return t.use(e.createPinia()), { app: t, Pinia: e.Pinia };
} }
t.aldInit(), // t.aldInit(), // Removed ald-stat initialization
n.mtjInit({}), // n.mtjInit({}), // Removed mtj-wx-sdk initialization
e.lib.init({ e.lib.init({
appKey: "65793213a7208a5af185764c", appKey: "65793213a7208a5af185764c",
useOpenid: !0, useOpenid: !0,

View File

@ -1,7 +1,7 @@
require("../common/vendor.js"), require("../constant/index.js"); require("../common/vendor.js"), require("../constant/index.js");
(exports.appName = "优选查车"), (exports.appName = "优选查车"),
(exports.appVersion = "1.0.0"), (exports.appVersion = "1.0.0"),
(exports.baseUrl = "https://api.rjxx.com.cn"), (exports.baseUrl = "https://x-mo.cn:8888/chacheapi"),
(exports.defaultChannelName = "nature-mp-youxuan"), (exports.defaultChannelName = "nature-mp-youxuan"),
(exports.mpWeixinBannerUnitAd = "adunit-c70d5c16146bdcad"), (exports.mpWeixinBannerUnitAd = "adunit-c70d5c16146bdcad"),
(exports.mpWeixinVideoUnitAd = "adunit-305137feb58ae156"); (exports.mpWeixinVideoUnitAd = "adunit-305137feb58ae156");

View File

@ -565,7 +565,7 @@ exports.mtjInit = function (e) {
var e, var e,
n = "" n = ""
.concat( .concat(
"https://hmma.baidu.com/analytics/ajax/cors", "https://hmma..com/analytics/ajax/cors",
"?corsToken=" "?corsToken="
) )
.concat(y.heatmapToken), .concat(y.heatmapToken),

View File

@ -43,12 +43,14 @@ require("../constant/index.js");
.then(function (n) { .then(function (n) {
var o = n.statusCode, var o = n.statusCode,
c = n.data, c = n.data,
l = r.decrypt(c.data), d = c.code,
d = l.code, m = c.message || '',
m = l.msg, g = c.data;
g = l.data;
console.log('fdsafdafaf', d, c)
if ((console.log("[请求结束] -- ", g, m, d), 200 === o)) { if ((console.log("[请求结束] -- ", g, m, d), 200 === o)) {
if (0 === d) return Promise.resolve(g); if (200 === d) return Promise.resolve(g);
if (301 === d) { if (301 === d) {
return (function () { return (function () {
return e.index return e.index
@ -115,14 +117,13 @@ require("../constant/index.js");
}) })
.then(function (e) { .then(function (e) {
var n = e.statusCode, var n = e.statusCode,
o = e.data, c = n.data,
t = r.decrypt(JSON.parse(o).data), a = c.code,
a = t.code, c = c.message || '',
c = t.msg, s = c.data;
s = t.data;
return ( return (
console.log("[请求结束] -- ", s, c, a), console.log("[请求结束] -- ", s, c, a),
200 === n && 0 === a 200 === n && 200 === a
? Promise.resolve(s) ? Promise.resolve(s)
: Promise.reject({ msg: c }) : Promise.reject({ msg: c })
); );