no message
This commit is contained in:
parent
fd66386f0c
commit
5c5e2f2399
19
app.js
19
app.js
@ -1,22 +1,25 @@
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
var e = require("./common/vendor.js");
|
||||
require("./constant/index.js");
|
||||
var t = require("./utils/ald-stat.js"),
|
||||
n = require("./utils/mtj-wx-sdk.js"),
|
||||
// var t = require("./utils/ald-stat.js"), // Removed ald-stat import
|
||||
// n = require("./utils/mtj-wx-sdk.js"), // Removed mtj-wx-sdk import
|
||||
i = require("./utils/util.js");
|
||||
Math;
|
||||
var a = {
|
||||
__name: "App",
|
||||
setup: function (t) {
|
||||
setup: function () {
|
||||
return (
|
||||
e.onLaunch(function () {
|
||||
i.checkForUpdate(),
|
||||
setTimeout(function () {
|
||||
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);
|
||||
}),
|
||||
function (e, t) {
|
||||
function () {
|
||||
return {};
|
||||
}
|
||||
);
|
||||
@ -26,8 +29,8 @@ function r() {
|
||||
var t = e.createSSRApp(a);
|
||||
return t.use(e.createPinia()), { app: t, Pinia: e.Pinia };
|
||||
}
|
||||
t.aldInit(),
|
||||
n.mtjInit({}),
|
||||
// t.aldInit(), // Removed ald-stat initialization
|
||||
// n.mtjInit({}), // Removed mtj-wx-sdk initialization
|
||||
e.lib.init({
|
||||
appKey: "65793213a7208a5af185764c",
|
||||
useOpenid: !0,
|
||||
@ -35,4 +38,4 @@ t.aldInit(),
|
||||
debug: !0,
|
||||
}),
|
||||
r().app.mount("#app"),
|
||||
(exports.createApp = r);
|
||||
(exports.createApp = r);
|
@ -1,7 +1,7 @@
|
||||
require("../common/vendor.js"), require("../constant/index.js");
|
||||
(exports.appName = "优选查车"),
|
||||
(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.mpWeixinBannerUnitAd = "adunit-c70d5c16146bdcad"),
|
||||
(exports.mpWeixinVideoUnitAd = "adunit-305137feb58ae156");
|
||||
|
@ -565,7 +565,7 @@ exports.mtjInit = function (e) {
|
||||
var e,
|
||||
n = ""
|
||||
.concat(
|
||||
"https://hmma.baidu.com/analytics/ajax/cors",
|
||||
"https://hmma..com/analytics/ajax/cors",
|
||||
"?corsToken="
|
||||
)
|
||||
.concat(y.heatmapToken),
|
||||
|
@ -43,12 +43,14 @@ require("../constant/index.js");
|
||||
.then(function (n) {
|
||||
var o = n.statusCode,
|
||||
c = n.data,
|
||||
l = r.decrypt(c.data),
|
||||
d = l.code,
|
||||
m = l.msg,
|
||||
g = l.data;
|
||||
d = c.code,
|
||||
m = c.message || '',
|
||||
g = c.data;
|
||||
|
||||
console.log('fdsafdafaf', d, c)
|
||||
|
||||
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) {
|
||||
return (function () {
|
||||
return e.index
|
||||
@ -115,14 +117,13 @@ require("../constant/index.js");
|
||||
})
|
||||
.then(function (e) {
|
||||
var n = e.statusCode,
|
||||
o = e.data,
|
||||
t = r.decrypt(JSON.parse(o).data),
|
||||
a = t.code,
|
||||
c = t.msg,
|
||||
s = t.data;
|
||||
c = n.data,
|
||||
a = c.code,
|
||||
c = c.message || '',
|
||||
s = c.data;
|
||||
return (
|
||||
console.log("[请求结束] -- ", s, c, a),
|
||||
200 === n && 0 === a
|
||||
200 === n && 200 === a
|
||||
? Promise.resolve(s)
|
||||
: Promise.reject({ msg: c })
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user