function CmfuAjax(){ this.xml=false; this.GetXmlHttp=function(){ try {this.xml = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) { try { this.xml = new ActiveXObject("Microsoft.XMLHTTP");} catch (e2) { this.xml = false;}; }; if (!this.xml && typeof XMLHttpRequest != 'undefined') this.xml = new XMLHttpRequest(); }; this.GetXmlHttp(); var xmlHttp = this.xml; var ajax=this; var callBack=null; this.updatePage=function() { if (xmlHttp.readyState == 4) { var response = eval('('+xmlHttp.responseText+')'); if(callBack!=null && typeof callBack == "function") callBack(response); }; }; this.toQueryString=function(json){ var query=""; if(json!=null) for(var param in json) query+=param+"="+escape(json[param])+"&"; return query; }; this.invoke=function(opName,params,pageCallBack,method){ var _flag = false;// is use domain.qidian.com var domainUrl = ""; if (document.getElementById("ctl00_MainBase")!=null && document.getElementById("ctl00_MainBase").href!=""){ _flag = true; domainUrl=window.location.href.toLowerCase(); domainUrl=domainUrl.substring(domainUrl.indexOf("//")+2); if (domainUrl.indexOf("/")>-1) domainUrl=domainUrl.substring(0,domainUrl.indexOf("/")); domainUrl="http://"+domainUrl; }; if(xmlHttp){ var query=""; query+=this.toQueryString(params); query=query.substring(0,query.length-1); callBack= pageCallBack; var ajaxUrl = "/ajax.aspx"; switch(opName){ case "pub.p.up.addbookmark": case "AddBookMark": case "pub.p.up.addforumreview": case "AddForumReview": case "pub.p.up.addforumreviewlogin": case "AddForumReviewLogin": case "pub.p.up.addClubreview": case "AddClubReview": case "pub.p.up.monthvote": case "MonthVote": case "pub.p.up.recombook": case "RecomBook": case "pub.p.dw.islogin": case "IsLogin": case "pub.p.dw.getloginId": case "GetLoginId": case "pub.p.up.dovipdiscount": case "DoVipDiscount": case "pub.p.up.registeruser": case "RegisterUser": case "LoginUser": //作废 case "pub.p.up.addbookclick": case "AddBookClick": case "pub.p.up.setrecentreadbookcookie": case "SetRecentReadBookCookie": case "pub.p.up.votercmalbum": case "VoteRcmAlbum": case "pub.p.up.mmpkvote": case "MMPKVote": case "pub.p.up.mmmonthlyvote": case "MMMonthlyVote": case "pub.p.up.autopaybook": case "AutoPayBook": case "pub.p.up.applyintoclub": case "ApplyIntoClub": case "pub.p.dw.selectvipdeliverbook": case "SelectVipDeliverBook": case "pub.p.up.addclub2favorite": case "AddClub2Favorite": case "pub.p.dw.getspacestatistic": case "GetSpaceStatistic": case "pub.p.dw.getunloginreadbooks": case "GetUnloginReadBooks": case "pub.p.up.isfavoritebook": case "IsFavoriteBook": case "pub.p.up.addfriend": case "AddFriend": case "pub.p.dw.getspaceonlinecnt": case "GetSpaceOnlinecnt": case "pub.p.dw.canusercreateclub": case "CanUserCreateClub": case "pub.p.up.deleteleavemsg": case "DeleteLeaveMsg": case "pub.p.up.voterequpticket": case "VoteReqUpTicket": case "pub.p.dw.getuserticketinfor": case "GetUserTicketInfor": case "pub.p.up.addreviewsupport": case "AddReviewSupport": case "pub.p.up.bindrcmreview": case "BindRcmReview": case "pub.p.dw.binddanzhangreview": case "BindDanzhangReview": case "pub.p.dw.bindbehinddata": case "BindBehindData": case "pub.p.dw.bindsnsreviewlist": case "BindSNSReviewList": case "pub.p.dw.bindbooktobookcase": case "BindBookToBookCase": case "pub.p.up.movebooktoorderbookcasemain": case "MoveBookToOrderBookCaseMain": case "ReadChapterPop": //无用 case "pub.p.dw.getbooklabel": case "GetBookLabel": case "pub.p.dw.getuserlabel": case "GetUserLabel": case "pub.p.up.submitlabel": case "SubmitLabel": case "pub.p.dw.getdgactivecode": case "GetDGActiveCode": case "pub.p.up.checkptid": case "CheckPtId": case "pub.p.up.rcmalbumclick": case "RcmAlbumClick": case "pub.p.up.votemmflash": case "VoteMMFlash": case "pub.p.up.voteflashsemifinal": case "VoteFlashSemiFinal": case "pub.p.up.voteflashfinal": case "VoteFlashFinal": case "pub.p.up.voteflashreborn": case "VoteFlashReborn": case "pub.p.up.postmessage": case "PostMessage": case "pub.p.up.maodunexchangebook": case "MaodunExchangeBook": case "pub.p.up.checknicknameisexist": case "CheckNickNameIsExist": case "pub.p.up.setbookcasevisibility": case "SetBookCaseVisibility": case "pub.p.up.sharebookstootheruser": case "ShareBooksToOtherUser": case "pub.p.up.updateuserctrl": case "UpdateUserCtrl": case "pub.p.up.delbookfrombookcase": case "DelBookFromBookCase": case "pub.p.up.addorremovemobileawake": case "AddOrRemoveMobileAwake": case "pub.p.up.addreviewvoteticket": case "AddReviewVoteTicket": case "pub.p.dw.getreviewvoteticket": case "GetReviewVoteTicket": case "pub.p.up.voteuserpk": case "VoteUserPK": case "pub.p.dw.getpkresult": case "GetPKResult": case "pub.p.up.useadlinkview": case "UseAdLinkView": case "pub.p.dw.getconsumerank": case "GetConsumeRank": case "pub.p.up.reviewcomplaint": case "ReviewComplaint": case "pub.p.up.sendadclick": case "SendAdClick": case "pub.p.dw.getmobilevalidate": case "GetMobileValidate": case "pub.p.dw.getmobileptvalidate": case "GetMobilePtValidate": case "pub.p.dw.getvalidatecode": case "GetValidateCode": case "pub.p.dw.searchbookid": case "SearchBookId": case "pub.p.up.buymmmonthlybook": case "BuyMMMonthlyBook": case "pub.p.up.nfartical": case "NFArtical": case "pub.p.up.checkhasnewchapterintenmin": case "CheckHasNewChapterInTenMin": case "pub.p.up.setcookieforoemhr": case "SetCookieForOEMHR": case "pub.p.dw.getupdatechapterid": case "GetUpdateChapterId": case "pub.p.up.getsosubookinfo": case "GetSosuBookInfo": case "pub.g.dw.getdashang": case "GetDaShang": case "pub.p.up.authoeotherbooks": case "AuthoeOtherBooks": case "pub.p.dw.getuserfansinfo": case "GetUserFansInfo": case "pub.p.up.getdsfanslist": case "GetDsFansList": case "pub.p.up.submitreaderlabel": case "SubmitReaderLabel": case "pub.p.up.votemonthticket": case "VoteMonthTicket": case "pub.p.up.checkcookie": case "CheckCookie": case "pub.p.up.addupdateawake": case "AddUpdateAwake": case "pub.p.dw.loadsmartcommendbooks": case "LoadSmartCommendBooks": case "pub.p.up.submitsurvey": case "SubmitSurvey": case "pub.p.up.addbookcase": case "AddBookCase": case "pub.p.dw.loginuserwithinfo": case "LoginUserWithInfo": case "pub.p.up.loginuserwithvalidate": case "LoginUserWithValidate": case "pub.p.up.signout": case "SignOut": case "pub.p.up.movebooktoorderbookcase": case "MoveBookToOrderBookCase": case "pub.p.up.buyvotepkticket": case "BuyVotePKTicket": case "pub.p.up.addbookcasewithdynamic": case "AddBookCaseWithDynamic": case "pub.g.dw.getbookreadeactiveinfo": case "GetBookReadeActiveInfo": case "pub.p.up.bindrenrenuserinfo": case "BindRenRenUserInfo": case "pub.p.dw.checkisqidianuser": case "CheckIsQidianUser": case "pub.p.dw.getrenreniconlogo": case "GetRenRenIconLogo": case "pub.g.dw.getactivecount20091218": case "GetActiveCount20091218": case "pub.g.dw.bubugaosheng": case "BuBuGaoSheng": case "pub.p.dw.getmonthticketinfo": case "GetMonthTicketInfo": case "pub.p.up.addauthorreward": case "AddAuthorReward": case "pub.p.dw.getuserbalance": case "GetUserBalance": case "pub.p.up.dashangbook": case "DaShangBook": //case "VoteMonthTicket": case "pub.p.up.addclubspecialreview": case "addclubspecialreview": case "pub.p.dw.userisbindphone": case "UserIsBindPhone": case "pub.p.up.bookcheckin": case "BookCheckIn": case "pub.p.up.mailgroupsubscribe": case "MailGroupSubscribe": case "pub.p.up.mknotecollect": case "MKNoteCollect": case "pub.p.up.mknotebookcollect": case "MKNoteBookCollect": case "pub.p.dw.checkvalidatecode": case "CheckValidateCode": case "pub.p.dw.getuserchapter": case "GetUserChapter": case "pub.p.dw.getreadbook": case "pub.p.dw.getauthorbook": case "pub.p.dw.getlogininfo": case "pub.p.dw.getmessagecentercount": case "pub.p.dw.getbookfavorite": case "pub.p.dw.getrecommendbooks": case "pub.p.dw.get7tickets": case "pub.p.dw.getsecretaryconfig": case "pub.p.up.setsecretaryconfig": case "pub.p.dw.checkloginwithinfo": case "CheckLoginWithInfo": ajaxUrl= "/AjaxCom.aspx"; break; default: ajaxUrl= "/Ajax.aspx"; break; } if(method!=null &&method.toUpperCase()=="GET"){ var url = ajaxUrl + "?opName="+opName+"&"+query; if(_flag) url = domainUrl + url; xmlHttp.onreadystatechange = ajax.updatePage; xmlHttp.open("GET", url, true); xmlHttp.setRequestHeader("CMFUAJAX-Ver","ver1.0"); xmlHttp.send(null); }else{ var url =""; if(opName!=null && (opName.toLowerCase()=="vote0714"||opName.toLowerCase()=="voteauthor"||opName.toLowerCase()=="voteauthorname")) url= "/ply/20080924/VoteService.aspx?opName="+opName; else if (opName != null && (opName.toLowerCase() == "pub.p.up.vote0714" || opName.toLowerCase() == "pub.p.up.voteauthor" || opName.toLowerCase() == "pub.p.up.voteauthorname")) { url = "/ply/20080924/VoteService.aspx?opName=" + opName; } else if(opName!=null && (opName.toLowerCase()=="getuserip")) url="/user/userip.aspx"; else if(opName!=null && opName.toLowerCase()=="pub.p.dw.getuserip") url="/user/userip.aspx"; else { url = ajaxUrl + "?opName=" + opName; } if(_flag) url = domainUrl + url; xmlHttp.onreadystatechange =ajax.updatePage; xmlHttp.open("POST", url, true); xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); xmlHttp.setRequestHeader("CMFUAJAX-Ver","ver1.0"); xmlHttp.send(query); };};}; }; var MyAjax={ AddClubReview: function(validCode, content, clubId) { var validateHdd=document.getElementById("hddValidateCode"); var validateString=""; if (validateHdd!=null) validateString = validateHdd.value; new CmfuAjax().invoke("pub.p.up.addclubreview", {"validCode":validCode, "content":content, "clubId":clubId,"validateString":validateString}, arguments[3]); }, AddClubSpecialReview: function(validCode, content, clubSpecialID,fromNickName) { var validateHdd=document.getElementById("hddValidateCode"); var validateString=""; if (validateHdd!=null) validateString = validateHdd.value; new CmfuAjax().invoke("pub.p.up.addclubspecialreview", {"validCode":validCode, "content":content, "clubSpecialID":clubSpecialID,"fromNickName":fromNickName,"validateString":validateString}, arguments[4]); }, AddForumReview: function(bookId, title, content, postType, validCode, isAnonymous) { var validateHdd=document.getElementById("hddValidateCode"); var validateString=""; if (validateHdd!=null) validateString = validateHdd.value; new CmfuAjax().invoke("pub.p.up.addforumreview", {"bookId":bookId,"title":title, "content":content, "postType":postType, "validCode":validCode, "validateString":validateString, "isAnonymous":isAnonymous}, arguments[6]); }, AddForumReviewLogin: function(bookId, title, content, postType, validCode, ptId, password) { var validateHdd=document.getElementById("hddValidateCode"); var validateString=""; if (validateHdd!=null) validateString = validateHdd.value; new CmfuAjax().invoke("pub.p.up.addforumreviewlogin", {"bookId":bookId,"title":title, "content":content, "postType":postType, "validCode":validCode, "ptId":ptId, "password":password, "validateString":validateString}, arguments[7]); }, AddDream: function(bookId, title, content, postType, validCode,bounsType,bouseAmount) { new CmfuAjax().invoke("qd.p.up.adddream", {"bookId":bookId,"title":title, "content":content, "postType":postType, "validCode":validCode,"bounsType":bounsType,"bouseAmount":bouseAmount}, arguments[7]); }, GetDream: function(threadId) { new CmfuAjax().invoke("qd.p.dw.getdream", {"threadId":threadId},arguments[1]); }, SetBestPost: function(threadid,postid) { new CmfuAjax().invoke("qd.p.up.setbestpost", {"threadid":threadid,"postid":postid},arguments[2]); }, UpdateDreamStatus: function(threadId,newStatus) { new CmfuAjax().invoke("qd.p.up.updatedreamstatus", {"threadId":threadId,"newStatus":newStatus},arguments[2]); }, MonthVote: function(bookId) { new CmfuAjax().invoke("pub.p.up.monthvote", {"bookId":bookId},arguments[1]); }, AddBookMark: function(bookId, chapterId) { if (arguments.length <= 3) new CmfuAjax().invoke("pub.p.up.addbookmark", { "bookId": bookId, "chapterId": chapterId }, arguments[2]); else if (arguments.length == 4) new CmfuAjax().invoke("pub.p.up.addbookmark", { "bookId": bookId, "chapterId": chapterId, "chapterName": arguments[2] }, arguments[3]); else new CmfuAjax().invoke("pub.p.up.addbookmark", { "bookId": bookId, "chapterId": chapterId, "chapterName": arguments[2], "isVipBook": arguments[3] }, arguments[4]); }, RecomBook: function(bookId) { new CmfuAjax().invoke("pub.p.up.recombook", {"bookId":bookId}, arguments[1]); }, GetLoginId: function() { new CmfuAjax().invoke("pub.p.dw.getloginId", {},arguments[0]); }, LoginUser: function(ptId, password, token, challenge, saveCookie) { //作废 new CmfuAjax().invoke("LoginUser", {"ptId":ptId, "password":password, "token":token, "challenge":challenge, "saveCookie":saveCookie}, arguments[5]); }, AddBookClick: function(bookId) { var _f=document.createElement('iframe'); _f.src='http://www.qidian.com/javascript/abc.htm?bookid='+bookId;//+'&rand='+Math.floor(Math.random()*10000000000); _f.style.display='none'; _f.style.width=_f.style.height='0px'; document.body.appendChild(_f); //new CmfuAjax().invoke("AddBookClick", {"bookId":bookId},arguments[1]); }, AddBookClickBak: function(bookId) { new CmfuAjax().invoke("qd.p.up.addbookclickbak", { "bookId": bookId }, arguments[1]); }, SetRecentReadBookCookie: function(bookId) { new CmfuAjax().invoke("pub.p.up.setrecentreadbookcookie", {"bookId":bookId}); }, AddUpdateAwake: function(strBookId) { new CmfuAjax().invoke("pub.p.up.addupdateawake", {"strBookId":strBookId},arguments[1]); }, AddBookCase: function(bookId) { new CmfuAjax().invoke("pub.p.up.addbookcase", {"bookId":bookId}, arguments[1]); }, AddBookCaseWithDynamic: function(bookId, bookName){ new CmfuAjax().invoke("pub.p.up.addbookcasewithdynamic", {"bookId":bookId,"bookName":bookName}, arguments[2]); }, SubmitSurvey: function(strBookId, args) { new CmfuAjax().invoke("pub.p.up.submitsurvey", {"strBookId":strBookId, "args":args}, arguments[2]); }, AppraiseBook: function(bookId, userId, score) { new CmfuAjax().invoke("qd.p.up.appraisebook", {"bookId":bookId, "userId":userId, "score":score},arguments[3]); }, LoginUserWithInfo:function(ptId, password, token, challenge, saveCookie) { var newPtId=ptId; newPtId = newPtId.replace(/\·/g, "%A1%A4"); new CmfuAjax().invoke("pub.p.dw.loginuserwithinfo", {"ptId":newPtId, "password":password, "token":token, "challenge":challenge, "saveCookie":saveCookie}, arguments[5]); }, CheckLoginWithInfo:function(){ new CmfuAjax().invoke("CheckLoginWithInfo", {}, arguments[0]); }, VoteRcmAlbum:function(rcmId){ new CmfuAjax().invoke("pub.p.up.votercmalbum",{"rcmId":rcmId}, arguments[1]); }, GetBookReadeActiveInfo:function(bookId, bookSignType){ new CmfuAjax().invoke("pub.g.dw.getbookreadeactiveinfo",{"bookId":bookId,"bookSignType":bookSignType}, arguments[2],'get'); }, SignOut:function(){ new CmfuAjax().invoke("pub.p.up.signout", {}, arguments[0]); }, MMPKVote:function (pkId,bookId){ new CmfuAjax().invoke("pub.p.up.mmpkvote",{"pkId":pkId,"bookId":bookId}, arguments[2]); }, MMMonthlyVote:function(bookId){ new CmfuAjax().invoke("pub.p.up.mmmonthlyvote",{"bookId":bookId}, arguments[1]); }, AutoPayBook: function(bookId, isfull) { if (arguments.length > 2) new CmfuAjax().invoke("pub.p.up.autopaybook", { "bookId": bookId, "isfull": isfull }, arguments[2]); else new CmfuAjax().invoke("pub.p.up.autopaybook", { "bookId": bookId }, arguments[1]); }, ApplyIntoClub:function(clubId){ new CmfuAjax().invoke("pub.p.up.applyintoclub",{"clubId":clubId}, arguments[1]); }, AddClub2Favorite:function(clubId){//add club to favorite new CmfuAjax().invoke("pub.p.up.addclub2favorite",{"clubId":clubId}, arguments[1]); }, GetSpaceStatistic:function(){//sspace static new CmfuAjax().invoke("pub.p.dw.getspacestatistic",{},arguments[0]); }, CanUserCreateClub:function(){//clubindex use new CmfuAjax().invoke("pub.p.dw.canusercreateclub",{},arguments[0]); }, AddFriend:function(friendNickName){ new CmfuAjax().invoke("pub.p.up.addfriend",{"friendNickName":friendNickName},arguments[1]); }, IsFavoriteBook:function(bookId,userId){ new CmfuAjax().invoke("pub.p.up.isfavoritebook",{"bookId":bookId,"userId":userId},arguments[2]); } , DeleteLeaveMsg:function(msgId){ new CmfuAjax().invoke("pub.p.up.deleteleavemsg",{"msgId":msgId},arguments[1]); }, AddReviewSupport:function(reviewId){ new CmfuAjax().invoke("pub.p.up.addreviewsupport",{"reviewId":reviewId},arguments[1]); }, BindRcmReview:function(bookId){ new CmfuAjax().invoke("pub.p.up.bindrcmreview",{"bookId":bookId},arguments[1]); }, BindBehindData:function(type){ new CmfuAjax().invoke("pub.p.dw.bindbehinddata",{"type":type, "bookId":bookId},arguments[2]); }, GetUserTicketInfor:function(){ new CmfuAjax().invoke("pub.p.dw.getuserticketinfor",{},arguments[0]); }, VoteReqUpTicket:function(bookId,type,count,bookType){ new CmfuAjax().invoke("pub.p.up.voterequpticket",{"bookId":bookId,"type":type,"count":count,"bookType":bookType},arguments[4]); }, GetBookLabel:function(bookId,pageIndex,pageSize){ new CmfuAjax().invoke("pub.p.dw.getbooklabel",{"bookId":bookId,"pageIndex":pageIndex,"pageSize":pageSize},arguments[3]); }, GetUserLabel:function(){ new CmfuAjax().invoke("pub.p.dw.getuserlabel",{},arguments[0]); }, SubmitLabel:function(bookId,newLabel){ new CmfuAjax().invoke("pub.p.up.submitlabel",{"bookId":bookId,"newLabel":newLabel},arguments[2]); }, GetUserType:function(){ new CmfuAjax().invoke("pub.p.dw.getusertype",{},arguments[0]); }, RcmAlbumClick:function(rcmAlbumId){ new CmfuAjax().invoke("pub.p.up.rcmalbumclick",{"rcmAlbumId":rcmAlbumId},arguments[1]); }, Vote0714Thread:function(threadIds){ new CmfuAjax().invoke("vote0714",{"threadIds":threadIds},arguments[1]); }, VoteAuthor:function(names){ new CmfuAjax().invoke("voteauthor",{"names":names},arguments[1]); }, VoteAuthorName:function(name){ new CmfuAjax().invoke("voteauthorname",{"name":name},arguments[1]); }, PostMessage:function(validateCode,content,authorId,replyType){ new CmfuAjax().invoke("pub.p.up.postmessage",{"validateCode":validateCode,"content":content,"authorId":authorId,"replyType":replyType},arguments[4]); }, SJGVote:function(bookList){ var description = ''; if(arguments[1])description = arguments[1]; new CmfuAjax().invoke("qd.p.up.sjgvote",{"bookList":bookList,"description":description},arguments[2]); }, BuyVotePKTicket:function(objectId){ new CmfuAjax().invoke("pub.p.up.buyvotepkticket",{"objectId":objectId},arguments[1]); }, AddReviewVoteTicket:function(bookId,ticketType,count,bookType){ new CmfuAjax().invoke("pub.p.up.addreviewvoteticket",{"bookId":bookId,"ticketType":ticketType,"count":count,"bookType":bookType},arguments[4]); }, VoteThread:function(forumId,reviewid,type,forumName,bodyLength,bookType){ new CmfuAjax().invoke("pub.p.up.votethread",{"forumId":forumId,"reviewId":reviewid,"type":type,"forumName":forumName,"bodyLength":bodyLength,"bookType":bookType},arguments[6]); }, CheckAddHotThread:function(voteYes,voteAgainst,forumId,forumName,reviewId,reviewtitle,userId,nickName,bodylength,tp){ new CmfuAjax().invoke("pub.p.up.checkaddhotthread",{"voteYes":voteYes,"voteAgainst":voteAgainst,"forumId":forumId,"forumName":forumName,"reviewId":reviewId,"reviewtitle":reviewtitle,"userId":userId,"nickName":nickName ,"bodylength":bodylength,"tp":tp},arguments[10]); }, GetReviewVoteTicket:function(){ new CmfuAjax().invoke("pub.p.dw.getreviewvoteticket",{},arguments[0]); }, GetPKResult:function(){ new CmfuAjax().invoke("pub.p.dw.getpkresult",{},arguments[0]); }, UseAdLinkView:function(url){ new CmfuAjax().invoke("pub.p.up.useadlinkview",{"url":url},arguments[1]); }, GetUserIP:function(){ new CmfuAjax().invoke("pub.p.dw.getuserip",{},arguments[0]); }, GetConsumeRank:function(bookId){ new CmfuAjax().invoke("pub.p.dw.getconsumerank",{"bookId":bookId},arguments[1]); }, SendAdClick:function(adPublishId){ new CmfuAjax().invoke("pub.p.up.sendadclick",{"adPublishId":adPublishId},arguments[1]); }, GetMobileValidate:function(mobilePhone){ new CmfuAjax().invoke("pub.p.dw.getmobilevalidate",{"mobilePhone":mobilePhone},arguments[1]); }, GetMobilePtValidate:function(mobilePhone){ new CmfuAjax().invoke("pub.p.dw.getmobileptvalidate",{"mobilePhone":mobilePhone},arguments[1]); }, GetValidateCode:function(){ new CmfuAjax().invoke("GetValidateCode",{},arguments[0]); }, LoginUserWithValidate:function(ptId, password, token, challenge, saveCookie, input,validateString){ var newPtId=ptId; newPtId = newPtId.replace(/\·/g, "%A1%A4"); new CmfuAjax().invoke("pub.p.up.loginuserwithvalidate", {"ptId":newPtId, "password":password, "token":token, "challenge":challenge, "saveCookie":saveCookie,"input":input,"validateString":validateString}, arguments[7]); }, AddCarnivalUserInfo:function(ptId){ new CmfuAjax().invoke("qd.p.up.addcarnivaluserinfo",{"ptId":ptId}, arguments[1]); }, AddCarnivalLogInfo:function(rowId,qu,gameusername){ new CmfuAjax().invoke("qd.p.up.AddCarnivalLogInfo", {"rowId":rowId,"qu":qu, "gameusername":gameusername}, arguments[3]); }, UpdateCarnivalUserInfo:function(ptId,type){ new CmfuAjax().invoke("qd.p.up.updatecarnivaluserinfo",{"ptId":ptId,"type":type}, arguments[2]); }, BuyMMMonthlyBook:function(bookId){ new CmfuAjax().invoke("pub.p.up.buymmmonthlybook",{"bookId":bookId}, arguments[1]); }, AddNFArtical: function(bookId, title, content, postType, validCode,bounsType,bouseAmount) { new CmfuAjax().invoke("pub.p.up.nfartical", {"bookId":bookId,"title":title, "content":content, "postType":postType, "validCode":validCode,"bounsType":bounsType,"bouseAmount":bouseAmount}, arguments[7]); }, SetCookieForOEMHR:function(){ new CmfuAjax().invoke("pub.p.up.setcookieforoemhr",{},arguments[0]); }, CheckForumRequisition: function(forumId) { new CmfuAjax().invoke("pub.p.up.checkforumrequisition", { "forumId": forumId }, arguments[1]); }, GetUserFansInfo: function(bid,cid) { new CmfuAjax().invoke("pub.p.dw.getuserfansinfo", { "bookId": bid,"categoryId":cid }, arguments[2]); }, GetDsFansList: function(bid,urk) { new CmfuAjax().invoke("pub.p.up.getdsfanslist", { "bookId": bid,"userRank": urk }, arguments[2]); }, GetActiveCodeByBatchId:function(batchId){ new CmfuAjax().invoke("qd.p.dw.getactivecodebybatchid",{"batchId":batchId},arguments[1]); }, GetSosuBookInfo:function(keyword,type){ new CmfuAjax().invoke("pub.p.up.getsosubookinfo",{"keyword":keyword,"type":type},arguments[2]); }, BindRenRenUserInfo:function(renrenUid){ new CmfuAjax().invoke("pub.p.up.bindrenrenuserinfo", {"renrenuid":renrenUid}, arguments[1]); }, CheckIsQidianUser:function(uid){ new CmfuAjax().invoke("pub.p.dw.checkisqidianuser", {"renrenuid":uid}, arguments[1]); }, GetRenRenIconLogo:function(){ new CmfuAjax().invoke("pub.p.dw.getrenreniconlogo", {}, arguments[0]); }, GetActiveCount20091218:function(bookId){ new CmfuAjax().invoke("pub.g.dw.getactivecount20091218", {"bookId":bookId}, arguments[1],'get'); }, BuBuGaoSheng:function() { new CmfuAjax().invoke("pub.g.dw.bubugaosheng", {}, arguments[0],"get"); }, GetTongHaoClub:function(bid) { new CmfuAjax().invoke("qd.p.dw.gettonghaoclub", {"bookId":bid}, arguments[1]); }, GetUpdateTicketInfo:function(bid) { new CmfuAjax().invoke("pub.p.dw.getupdateticketinfo", {"bookId":bid}, arguments[1]); }, GetMonthTicketInfo:function(bid) { new CmfuAjax().invoke("pub.p.dw.getmonthticketinfo", {"bookId":bid}, arguments[1]); }, GetDaShang:function(bid) { new CmfuAjax().invoke("pub.g.dw.getdashang", {"bookId":bid}, arguments[1],"get"); }, AddAuthorReward:function(BookId,ReviewId,Content) { new CmfuAjax().invoke("pub.p.up.addauthorreward", {"BookId":BookId,"ReviewId":ReviewId,"Content":Content}, arguments[3]); }, SubmitReaderLabel:function(bookId,newLabel){ new CmfuAjax().invoke("pub.p.up.submitreaderlabel",{"bookId":bookId,"newLabel":newLabel},arguments[2]); }, AuthoeOtherBooks:function(authorid,bookid,authorname){ new CmfuAjax().invoke("pub.p.up.authoeotherbooks",{"authorid":authorid,"bookid":bookid,"authorname":authorname},arguments[3]); }, SoVote:function(bookId){ //SO大展百强投票 new CmfuAjax().invoke("qd.p.up.sovote",{"bookId":bookId},arguments[1]); }, PublishBook:function(linkman,publishcompany,tel,copyrightIndex,content,bookid){ //我要出版 new CmfuAjax().invoke("qd.p.up.publishbook",{"linkman":linkman,"publishcompany":publishcompany,"tel":tel,"copyrightIndex":copyrightIndex,"content":content,"bookid":bookid},arguments[6]); }, SubmitVipBoutiqueRec:function(bookId,title,comment){ new CmfuAjax().invoke("qd.p.up.submitvipboutiquerec",{"bookId":bookId,"title":title,"comment":comment},arguments[3]); }, GetVipBoutiqueBookIdByName:function(bookName){ new CmfuAjax().invoke("qd.p.dw.getvipboutiquebookidbyname",{"BookName":bookName},arguments[1]); }, GetActiveCodeByBatchId:function(BatchId){ new CmfuAjax().invoke("qd.p.dw.getactivecodebybatchid",{"BatchId":BatchId},arguments[1]); }, GetBookEstimateTickets:function(bookId){ new CmfuAjax().invoke("qd.g.dw.getbookestimatetickets",{"BookId":bookId},arguments[1],'GET'); }, GetTopBroadNews:function(pagePathName){ new CmfuAjax().invoke("qd.g.dw.gettopbroadnews",{"pagePathName":pagePathName},arguments[1],'GET'); }, UpdateUserNickName:function(newnickname){ new CmfuAjax().invoke("qd.p.up.updateusernickname",{"newnickname":newnickname},arguments[1]); }, CheckNickName:function(newnickname){ new CmfuAjax().invoke("qd.p.dw.checknickname",{"newnickname":newnickname},arguments[1]); }, RegFavoritorBook:function(bids,csn){ new CmfuAjax().invoke("qd.p.up.regfavoritorbook",{"csn":csn,"bids":bids},arguments[2]); }, SdoColorEgg:function(){ var callBack=function(re){ try{ alert(re.msg); }catch(e){}; }; new CmfuAjax().invoke("qd.p.dw.sdocoloreggs",{},callBack); }, UserIsBindPhone:function() { new CmfuAjax().invoke("pub.p.dw.userisbindphone", {}, arguments[0]); }, BookCheckIn:function(bookId, bookName, pageUrl, pageTitle, pageDescription, comment) { new CmfuAjax().invoke("pub.p.up.bookcheckin", {'bookId':bookId, 'bookName':bookName, 'pageUrl':pageUrl, 'pageTitle':pageTitle, 'pageDescription':pageDescription, 'comment':comment}, arguments[6]); }, RemoveShareFavorite:function(bookid){ new CmfuAjax().invoke("qd.p.up.removesharefavorite",{'bookId':bookid},arguments[1]); }, MailGroupSubscribe:function(bookid, useremail, userRead, validCode){ var validateHdd=document.getElementById("hddValidateCode"); var validateString=""; if (validateHdd!=null) validateString = validateHdd.value; new CmfuAjax().invoke("pub.p.up.mailgroupsubscribe",{'bookId':bookid, 'useremail':useremail, 'userRead':userRead, 'validCode':validCode, "validateString":validateString}, arguments[4]); }, MKNoteCollect:function(bookid, chapterid, validCode){ var validateHdd = document.getElementById("hddValidateCode"); var validateString = ""; if (validateHdd != null) validateString = validateHdd.value; new CmfuAjax().invoke("pub.p.up.mknotecollect",{'bookId':bookid, 'chapterid':chapterid, 'validCode':validCode, "validateString":validateString}, arguments[3]); }, MKNoteBookCollect:function(bookid, validCode){ var validateHdd = document.getElementById("hddValidateCode"); var validateString = ""; if (validateHdd != null) validateString = validateHdd.value; new CmfuAjax().invoke("pub.p.up.mknotebookcollect",{'bookId':bookid, 'validCode':validCode, "validateString":validateString}, arguments[2]); }, GetFansMasterInfo:function(){ new CmfuAjax().invoke("qd.p.dw.getfansmasterinfo",{}, arguments[0]); }, CheckValidateCode:function(input,validateString){ new CmfuAjax().invoke("pub.p.dw.checkvalidatecode", {"input":input,"validateString":validateString },arguments[2]); }, GetBookSendChapterList:function(bookid,pageno,pagesize){ new CmfuAjax().invoke("qd.p.dw.getbooksendchapterlist",{'bookId':bookid,'pageIndex':pageno,'pagesize':pagesize}, arguments[3]); }, GetLatestBookSendChapterList:function(channelId,categoryId,pageIndex,pagesize){ new CmfuAjax().invoke("qd.p.dw.getlatestbooksendchapterlist",{'channelId':channelId,'categoryId':categoryId,'pageIndex':pageIndex,'pagesize':pagesize}, arguments[4]); }, GetUserChapter:function(donateId){ new CmfuAjax().invoke("pub.p.dw.getuserchapter",{'donateId':donateId}, arguments[1]); }, ExchangeActiveCode:function(activeCode,actionId){ new CmfuAjax().invoke("qd.p.up.exchangeactivecode",{'activeCode':activeCode,'actionId':actionId}, arguments[2]); }, GetReadBook:function(maxcount){ new CmfuAjax().invoke("pub.p.dw.getreadbook",{'maxcount': maxcount}, arguments[1]); }, GetAuthorBook:function(maxcount){ new CmfuAjax().invoke("pub.p.dw.getauthorbook",{'maxcount': maxcount}, arguments[1]); }, GetLoginInfo: function(){ new CmfuAjax().invoke("pub.p.dw.getlogininfo",{}, arguments[0]); }, GetMessageCenterCount:function(){ new CmfuAjax().invoke("pub.p.dw.getmessagecentercount",{}, arguments[0]); }, GetBookFavorite:function(maxcount){ new CmfuAjax().invoke("pub.p.dw.getbookfavorite",{'maxcount': maxcount}, arguments[1]); }, GetRecommendBooks:function(groupIdString, maxcount){ new CmfuAjax().invoke("pub.p.dw.getrecommendbooks",{'groupIdString': groupIdString, 'maxcount': maxcount}, arguments[2]); }, Get7Tickets:function(recentdays, maxcount){ new CmfuAjax().invoke("pub.p.dw.get7tickets",{'recentdays': recentdays, 'maxcount': maxcount}, arguments[2]); }, GetSecretaryConfig:function(){ new CmfuAjax().invoke("pub.p.dw.getsecretaryconfig",{}, arguments[0]); }, SetSecretaryConfig:function(config){ new CmfuAjax().invoke("pub.p.up.setsecretaryconfig",{'config':config}, arguments[1]); }, MoveBookToOrderBookCaseMain:function(selectedBooks){ new CmfuAjax().invoke("pub.p.up.movebooktoorderbookcasemain",{'selectedBooks':selectedBooks},arguments[1]); } };