|
|
@@ -382,6 +382,9 @@ async function tryGrabCoupon() {
|
|
|
let path925 = ['pwm-kuaizhan-section-split', 'pwm-kuaizhan-section', 'pwm-mkt-offer'];
|
|
|
|
|
|
let items925 = seekWidgets(widgets, path925);
|
|
|
+
|
|
|
+ let isLogin = true;
|
|
|
+ let strLoginFailMsg = `登录失败,请点击通知栏打开APP下载页面`;
|
|
|
magicJS.logger.info(`########9.25折限量购########`);
|
|
|
for (let i = items925.length - 1; i >= 0; i--) {
|
|
|
const item = items925[i];
|
|
|
@@ -394,6 +397,12 @@ async function tryGrabCoupon() {
|
|
|
let ret = await queryCustomerActivityStatus(config.activityCode, config.activityValue);
|
|
|
let tipsText = ``;
|
|
|
if (ret) {
|
|
|
+ if (ret.responseCode == '900100') {//未登录
|
|
|
+ isLogin = false;
|
|
|
+ strLoginFailMsg = ret.responseMessage;
|
|
|
+ // magicJS.notification.appendNotifyInfo(ret.responseMessage);
|
|
|
+ break;
|
|
|
+ }
|
|
|
if (ret.responseCode == '000000') {
|
|
|
setActCouponStatus(config.activityCode, 1);
|
|
|
} else if (ret.responseCode == '950009') {//领奖机会已经用完
|
|
|
@@ -411,7 +420,20 @@ async function tryGrabCoupon() {
|
|
|
}
|
|
|
magicJS.notification.appendNotifyInfo(tipsText);
|
|
|
}
|
|
|
-
|
|
|
+ if (!isLogin) {
|
|
|
+ let params = {
|
|
|
+ "td": {
|
|
|
+ "id": "唤醒浮层",
|
|
|
+ "label": "APP下载浮层立即打开-样式2",
|
|
|
+ "param": { "dlink_id": "M0P5EnN0addUoXCs240814104407" },
|
|
|
+ "pageId": "PK084123"
|
|
|
+ },
|
|
|
+ "url": "https://b.pingan.com.cn/kuaizhan/v2/5K2422/20230925/k84123/index.html? paesuperbank=%7B%22dLinkId%22%3A%22M0P5EnN0addUoXCs240814104407%22%7D"
|
|
|
+ };
|
|
|
+ let schemaUrl = `paesuperbank://?paesuperbank=${encodeURIComponent(JSON.stringify(params))})`;
|
|
|
+ magicJS.notification.msg(scriptName, strLoginFailMsg, schemaUrl);
|
|
|
+ return;
|
|
|
+ }
|
|
|
magicJS.logger.info(`##########天天88##########`);
|
|
|
let items88 = seekWidgets(widgets, path88);
|
|
|
for (let i = 0; i < items88.length; i++) {
|
|
|
@@ -424,6 +446,10 @@ async function tryGrabCoupon() {
|
|
|
let ret = await queryCustomerActivityStatus(config.activityCode, config.activityValue);
|
|
|
let tipsText = ``;
|
|
|
if (ret) {
|
|
|
+ if (ret.responseCode == '900100') {//未登录
|
|
|
+ magicJS.notification.appendNotifyInfo(ret.responseMessage);
|
|
|
+ break;
|
|
|
+ }
|
|
|
if (ret.responseCode == '000000') {
|
|
|
setActCouponStatus(config.activityCode, 1);
|
|
|
} else if (ret.responseCode == '950009') {//领奖机会已经用完
|
|
|
@@ -454,6 +480,10 @@ async function tryGrabCoupon() {
|
|
|
let ret = await queryCustomerActivityStatus(config.activityCode, config.activityValue);
|
|
|
let tipsText = ``;
|
|
|
if (ret) {
|
|
|
+ if (ret.responseCode == '900100') {//未登录
|
|
|
+ magicJS.notification.appendNotifyInfo(ret.responseMessage);
|
|
|
+ break;
|
|
|
+ }
|
|
|
if (ret.responseCode == '000000') {
|
|
|
setActCouponStatus(config.activityCode, 1);
|
|
|
} else if (ret.responseCode == '950009') {//领奖机会已经用完
|