msg->mIntArg0 = PDP_TaskTip; NoticeData* noticeData = GET_SYSTEM(DataSystem)->getNoticeData(); if (noticeData != nullptr && noticeData->isCanPopupNotice()) { PopupNotice* noticeDialog = (PopupNotice*)(GET_SYSTEM(UiSystem)->showPopupDialog(POPUP_NOTICE, true)); noticeDialog->setCancelCallback([this, msg](){ msg->mIntArg0 = PDP_TaskTip; // 上面的msg->mIntArg0 = PDP_TaskTip;设置无效,要再设置一遍 popupDialogByPriority(msg); }); }