| 747 | |
| 748 | |
| 749 | void WizMainWindow::on_viewMessage_requestNormal(QVariant messageData) |
| 750 | { |
| 751 | if (messageData.type() == QVariant::Bool) |
| 752 | { |
| 753 | QString strUrl = WizOfficialApiEntry::standardCommandUrl("link"); |
| 754 | if (!strUrl.startsWith("http")) { |
| 755 | return; |
| 756 | } |
| 757 | strUrl = strUrl + "&site=wiznote"; |
| 758 | strUrl += "&name=mac-sync-error-solution"; |
| 759 | QDesktopServices::openUrl(QUrl(strUrl)); |
| 760 | } |
| 761 | else if (messageData.type() == QVariant::Int) |
| 762 | { |
| 763 | if (WIZKM_XMLRPC_ERROR_VIP_SERVICE_EXPR == messageData |
| 764 | || WIZKM_XMLRPC_ERROR_FREE_SERVICE_EXPR == messageData) |
| 765 | { |
| 766 | showVipUpgradePage(); |
| 767 | } |
| 768 | } |
| 769 | } |
| 770 | |
| 771 | /** |
| 772 | * @brief 根据消息数据浏览消息 |