var adPosition = {
access_parameters_incorrect: 6,
answer_repeat: 7,
answer_repeat_exceeded_limit: 7,
answer_repeat_ip: 7,
answer_repeat_ip_exceeded_limit: 7,
assess_has_update: 7,
assess_link_invalid: 7,
commonUserDidnotGetEnvelope: 6,
custom_miniappcard: 11,
form_has_update: 7,
form_link_invalid: 7,
invalid_answer_ip: 7,
invalid_answer_region: 7,
invalid_custom_source_link: 6,
leave_tip_luck: 9,
link_invalid: 7,
lookback_answer: 22,
miniappcard: 11,
not_permission_participate: 6,
not_suited_fill: 6,
not_suited_fill_region: 6,
project_bottom_close: 9,
project_delete: 6,
project_email_answer_only: 7,
project_finished: 6,
project_limit_word: 6,
project_not_exist: 6,
project_paused: 6,
survey_has_update: 7,
survey_link_invalid: 7,
time_not_start: 6,
visible_author_only: 6,
visible_author_only_login: 6,
};
const SeptemberArr = [
'not_suited_fill',
'project_paused',
'project_delete',
'invalid_answer_ip',
'time_not_start',
'survey_has_update',
'not_suited_fill_region',
'answer_repeat_ip',
'leave_tip_luck',
'answer_repeat_exceeded_limit',
'access_parameters_incorrect',
'lookback_answer',
'not_permission_participate',
'answer_repeat',
'project_limit_word',
'project_bottom_close',
'answer_repeat_ip_exceeded_limit',
'project_email_answer_only',
'visible_author_only',
'visible_author_only_login',
'invalid_custom_source_link',
'project_finished',
'invalid_answer_region',
'投票中',
'survey_link_invalid',
'form_has_update'
];
var AugustArr = [
'time_not_start',
'invalid_answer_ip',
'project_paused',
'answer_repeat_ip',
'survey_has_update',
'not_suited_fill',
'lookback_answer',
'answer_repeat',
'survey_link_invalid',
'not_permission_participate',
'project_bottom_close',
'project_limit_word',
'answer_repeat_ip_exceeded_limit',
'access_parameters_incorrect',
'bottomClose',
'138',
'answer_repeat_exceeded_limit',
'project_delete',
'project_email_answer_only',
'投票不存在',
'invalid_custom_source_link',
'visible_author_only_login',
'project_not_exist',
'invalid_answer_region',
'投票中',
'visible_author_only',
'form_has_update',
'not_suited_fill_region',
'leave_tip_luck',
'project_finished',
];
const JulyArr = [
'project_delete',
'survey_link_invalid',
'answer_repeat_exceeded_limit',
'not_permission_participate',
'answer_repeat',
'project_bottom_close',
'time_not_start',
'bottomClose',
'answer_repeat_ip_exceeded_limit',
'not_suited_fill_region',
'leave_tip_luck',
'survey_has_update',
'invalid_answer_ip',
'answer_repeat_ip',
'assess_link_invalid',
'project_email_answer_only',
'access_parameters_incorrect',
'投票不存在',
'not_suited_fill',
'visible_author_only',
'project_not_exist',
'project_finished',
'invalid_answer_region',
'form_has_update',
'visible_author_only_login',
'invalid_custom_source_link',
'project_paused',
'投票中',
'project_limit_word',
'lookback_answer',
]
function findDifferent(obj, arr) {
console.log('beforeObj', Object.keys(obj).length);
let diffArr = [];
arr.forEach((o, i) => {
if (!obj[o]) {
diffArr.push(o);
obj[o] = 0;
}
})
console.log('diffArr', diffArr);
console.log('afterObj', Object.keys(obj).length);
}
findDifferent(adPosition, SeptemberArr);
findDifferent(adPosition, AugustArr);
findDifferent(adPosition, JulyArr);
console