|
|
@ -52,11 +52,6 @@ function onQuestsCompleteNotification(notificationData) {
|
|
|
|
mw.hook('postEdit').add(function (data) {
|
|
|
|
mw.hook('postEdit').add(function (data) {
|
|
|
|
console.log('onPostEdit');
|
|
|
|
console.log('onPostEdit');
|
|
|
|
|
|
|
|
|
|
|
|
var notificationData = mw.config.get('wgIsekaiQuestsCompleteNotification');
|
|
|
|
|
|
|
|
if (notificationData) {
|
|
|
|
|
|
|
|
onQuestsCompleteNotification(notificationData);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// VE,通过API获取消息
|
|
|
|
|
|
|
|
var mwApi = new mw.Api();
|
|
|
|
var mwApi = new mw.Api();
|
|
|
|
mwApi.get({
|
|
|
|
mwApi.get({
|
|
|
|
action: 'userquestsgetnotification',
|
|
|
|
action: 'userquestsgetnotification',
|
|
|
@ -65,5 +60,4 @@ mw.hook('postEdit').add(function (data) {
|
|
|
|
onQuestsCompleteNotification(data.userquestsgetnotification.notification);
|
|
|
|
onQuestsCompleteNotification(data.userquestsgetnotification.notification);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|