if (location.hostname.indexOf("qidian.com") >= 0) document.domain = "qidian.com"; if (location.hostname.indexOf("qdmm.com") >= 0) document.domain = "qdmm.com"; if (location.hostname.indexOf("qdwenxue.com") >= 0) document.domain = "qdwenxue.com"; //config var __com_opNameCongfig__ = { enable : 1, //全局开关,0关闭,1开启 proxyID : '__CmfuAjaxCom_htm_proxy__', proxyUrl : 'http://a.if.' + document.domain + '/Proxy/CmfuAjaxCom.htm.proxy.htm', //排除的方法列表 0走本站,1走ajax域 AddBookClick: 0, CheckLoginWithInfo: 0, LoginUser : 0 }; //end config var addEvent = addEvent || function(target, event, fn) { if (window.attachEvent) target.attachEvent('on' + event, fn) else if (window.addEventListener) target.addEventListener(event, fn, false) else target['on' + event] = fn; } var comInvokeIframe = function(opName,params,pageCallBack,method) { var iframe = document.getElementById(__com_opNameCongfig__.proxyID); if (!iframe) { iframe = document.createElement('iframe'); iframe.id = __com_opNameCongfig__.proxyID; iframe.src = __com_opNameCongfig__.proxyUrl; iframe.style.display = 'none'; document.body.insertBefore(iframe, document.body.childNodes[0]); } if (iframe.contentWindow.CmfuAjax) { new iframe.contentWindow.CmfuAjax().invoke(opName,params,pageCallBack,method); } else { addEvent(iframe, 'load', function() { new iframe.contentWindow.CmfuAjax().invoke(opName,params,pageCallBack,method); }) } }; function CmfuAjax() { this.xml=false; this.GetXmlHttp=function() { /*@cc_on @*/ /*@if (@_jscript_version >= 5) try { this.xml = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { this.xml = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e2) { this.xml = false; } } @end @*/ 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) { // alert("ResponseText: "+xmlHttp.responseText); // try{ //alert("text="+xmlHttp.responseText); var response = eval('('+xmlHttp.responseText+')'); if(callBack!=null && typeof callBack == "function") { callBack(response); } // }catch(e) // { // alert("error:"+e); // } } } 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="opName="+opName+"&"; 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 "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.dw.checkloginwithinfo": case "CheckLoginWithInfo": 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.p.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 "pub.p.up.addclubspecialreview": case "addclubspecialreview": case "pub.p.dw.userisbindphone": case "UserIsBindPhone": case "pub.p.up.mailgroupsubscribe": case "MailGroupSubscribe": case "pub.p.up.mknotecollect": case "MKNoteCollect": case "pub.p.up.mknotebookcollect": case "MKNoteBookCollect": case "pub.p.up.addreply": case "AddReply": case "pub.p.dw.checkplayauthorization": case "CheckPlayAuthorization": case "pub.p.dw.checkdownauthorization": case "CheckDownAuthorization": case "pub.p.up.addtingbookscore": case "AddTingBookScore": case "pub.p.up.addtomyfav": case "AddToMyfav": case "pub.p.up.sharetofriends": case "ShareToFriends": case "pub.p.dw.checkvalidatecode": case "CheckValidateCode": case "pub.p.dw.getusertype": case "GetUserType": case "pub.p.up.bookcheckin": case "BookCheckIn": case "pub.p.dw.getupdateticketinfo": case "GetUpdateTicketInfo": 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": ajaxUrl= "/AjaxCom.aspx"; break; case "qdmm.p.up.addmmlike": ajaxUrl= "/AjaxMM.aspx"; break; //评论站 case "pub.p.up.addreview": case "AddReview": case "pub.p.up.addreview2": case "AddReview2": case "pub.p.up.updateadmininviteinfostatus": case "UpdateAdminInviteInfoStatus": case "pub.p.up.addpost": case "AddPost": case "pub.p.up.addpostlogin": case "AddPostLogin": case "pub.p.up.addhotreviewbypost": case "AddHotReviewByPost": case "pub.p.up.setfavoritethread": case "SetFavoriteThread": case "pub.p.up.updatereviewamount": case "UpdateReviewAmount": case "pub.p.up.updatethreadpostamount": case "UpdateThreadPostAmount": case "pub.p.up.addsnsreviewsupport": case "AddSNSReviewSupport": case "pub.p.up.addsnsreview": case "AddSNSReview": case "pub.p.dw.expandreview": case "ExpandReview": case "pub.p.up.votethread": case "VoteThread": case "pub.p.dw.getgradeinfo": case "GetGradeInfo": case "pub.p.dw.getfansinfo": case "GetFansInfo": case "pub.p.up.votepost": case "VotePost": case "pub.p.up.checkaddhotthread": case "CheckAddHotThread": case "pub.p.up.checkforumadmin": case "CheckForumAdmin": case "pub.p.up.gradedtothreader": case "GradedToThreader": case "pub.p.up.gradedtothread": case "GradedToThread": case "pub.p.up.ajaxdeleteadmin": case "AjaxDeleteAdmin": case "pub.p.up.checkforumrequisition": case "CheckForumRequisition": case "pub.p.up.addscorebyadmin": case "AddScoreByAdmin": case "pub.p.up.shanghandler": case "ShangHandler": case "pub.p.dw.goreaderchapter": case "GoReaderChapter": case "pub.p.dw.getforummodelscore": case "GetForumModelScore": case "pub.p.up.submitpropcolor": case "SubmitPropColor": ajaxUrl= "/ForumAjax.aspx"; break; case "pub.p.up.vote0714": case "vote0714": case "pub.p.up.voteauthor": case "voteauthor": case "pub.p.up.voteauthorname": case "voteauthorname": ajaxUrl = "/ply/20080924/VoteService.aspx"; 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) { url = ajaxUrl + "?opName=" + opName; } else if(opName!=null && opName.toLowerCase()=="getuserip") { url="/user/userip.aspx"; } else { url= ajaxUrl + "?opName="+opName; } if(_flag) { url = domainUrl + url; } //xmlHttp.setRequestHeader("Content-Length",query); xmlHttp.onreadystatechange =ajax.updatePage; //new CallClient(this); //this.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={ invoke : function(opName,params,pageCallBack,method) { if (__com_opNameCongfig__.enable && __com_opNameCongfig__[opName] == 0) new CmfuAjax().invoke(opName,params,pageCallBack,method); else comInvokeIframe(opName,params,pageCallBack,method); }, AddReview: function(bookId, content, postType, validCode,reviewtype,chapterId) { var validateHdd=document.getElementById("hddValidateCode"); var validateString=""; if (validateHdd!=null) validateString = validateHdd.value; MyAjax.invoke("pub.p.up.addreview", {"bookId":bookId, "content":content, "postType":postType, "validCode":validCode,"validateString":validateString,"reviewtype":reviewtype,"chapterId":chapterId}, arguments[6]); }, AddReview2: function(bookId, content, postType, validCode,reviewtype,chapterId,threadId) { var validateHdd=document.getElementById("hddValidateCode"); var validateString=""; if (validateHdd!=null) validateString = validateHdd.value; MyAjax.invoke("pub.p.up.addreview2", {"bookId":bookId, "content":content, "postType":postType, "validCode":validCode,"validateString":validateString,"reviewtype":reviewtype,"chapterId":chapterId,"threadId":threadId}, arguments[7]); }, AddClubReview: function(validCode, content, clubId) { var validateHdd=document.getElementById("hddValidateCode"); var validateString=""; if (validateHdd!=null) validateString = validateHdd.value; MyAjax.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; MyAjax.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; MyAjax.invoke("pub.p.up.addforumreview", {"bookId":bookId,"title":title, "content":content, "postType":postType, "validCode":validCode, "validateString":validateString, "isAnonymous":isAnonymous}, arguments[6]); }, AddPostLogin: function(forumId, threadId, title, content, validCode, ptId, password) { var validateHdd = document.getElementById("hddValidateCode"); var validateString = ""; if (validateHdd != null) validateString = validateHdd.value; MyAjax.invoke("pub.p.up.addpostlogin", { "forumId": forumId, "threadId": threadId, "title": title, "content": content, "validCode": validCode, "ptId": ptId, "password": password, "validateString": validateString }, arguments[7]); }, AddPostLogin2: function(forumId, threadId, title, content, validCode, ptId, password, refPostIds) { var validateHdd = document.getElementById("hddValidateCode"); var validateString = ""; if (validateHdd != null) validateString = validateHdd.value; MyAjax.invoke("pub.p.up.addpostlogin", { "forumId": forumId, "threadId": threadId, "title": title, "content": content, "validCode": validCode, "ptId": ptId, "password": password, "validateString": validateString, "refPostIds": refPostIds }, arguments[8]); }, AddPost: function(forumId, threadId, title, content, validCode, isAnonymous) { var validateHdd = document.getElementById("hddValidateCode"); var validateString = ""; if (validateHdd != null) validateString = validateHdd.value; MyAjax.invoke("pub.p.up.addpost", { "forumId": forumId, "threadId": threadId, "title": title, "content": content, "validCode": validCode, "validateString": validateString, "isAnonymous": isAnonymous }, arguments[6]); }, AddPost2: function(forumId, threadId, title, content, validCode, isAnonymous, refPostIds) { var validateHdd = document.getElementById("hddValidateCode"); var validateString = ""; if (validateHdd != null) validateString = validateHdd.value; MyAjax.invoke("pub.p.up.addpost", { "forumId": forumId, "threadId": threadId, "title": title, "content": content, "validCode": validCode, "validateString": validateString, "isAnonymous": isAnonymous, "refPostIds": refPostIds }, arguments[7]); }, CheckForumAdmin: function(forumId) { MyAjax.invoke("pub.p.up.checkforumadmin", { "forumId": forumId }, arguments[1]); }, GoReaderChapter: function(bookId,chapterId){ MyAjax.invoke("pub.p.dw.goreaderchapter", { "bookId": bookId,"chapterId":chapterId }, arguments[2]); }, AddForumReviewLogin: function(bookId, title, content, postType, validCode, ptId, password) { var validateHdd=document.getElementById("hddValidateCode"); var validateString=""; if (validateHdd!=null) validateString = validateHdd.value; MyAjax.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) { MyAjax.invoke("qd.p.up.adddream", {"bookId":bookId,"title":title, "content":content, "postType":postType, "validCode":validCode,"bounsType":bounsType,"bouseAmount":bouseAmount}, arguments[7]); }, GetDream: function(threadId) { MyAjax.invoke("qd.p.dw.getdream", {"threadId":threadId},arguments[1]); }, SetBestPost: function(threadid,postid) { MyAjax.invoke("qd.p.up.setbestpost", {"threadid":threadid,"postid":postid},arguments[2]); }, UpdateDreamStatus: function(threadId,newStatus) { MyAjax.invoke("qd.p.up.updatedreamstatus", {"threadId":threadId,"newStatus":newStatus},arguments[2]); }, MonthVote: function(bookId) { MyAjax.invoke("pub.p.up.monthvote", {"bookId":bookId},arguments[1]); }, AddBookMark: function(bookId, chapterId) { if (arguments.length <= 3) MyAjax.invoke("pub.p.up.addbookmark", { "bookId": bookId, "chapterId": chapterId }, arguments[2]); else if (arguments.length == 4) MyAjax.invoke("pub.p.up.addbookmark", { "bookId": bookId, "chapterId": chapterId, "chapterName": arguments[2] }, arguments[3]); else MyAjax.invoke("pub.p.up.addbookmark", { "bookId": bookId, "chapterId": chapterId, "chapterName": arguments[2], "isVipBook": arguments[3] }, arguments[4]); }, RecomBook: function(bookId) { MyAjax.invoke("pub.p.up.recombook", {"bookId":bookId}, arguments[1]); }, SetFavoriteThread: function(forumId, Id) { MyAjax.invoke("pub.p.up.setfavoritethread", { "bookId": forumId, "Id": Id }, arguments[2]); }, UpdateReviewAmount: function(forumId) {//更新讨论区主题数、回复数 MyAjax.invoke("pub.p.up.updatereviewamount", { "bookId": forumId }, arguments[1]); }, UpdateThreadPostAmount: function(threadId) {//更新讨论区主题数、回复数 MyAjax.invoke("pub.p.up.updatethreadpostamount", { "bookId": threadId }, arguments[1]); }, GetLoginId: function() { MyAjax.invoke("pub.p.dw.getloginId", {},arguments[0]); }, LoginUser: function(ptId, password, token, challenge, saveCookie) { //作废 MyAjax.invoke("LoginUser", {"ptId":ptId, "password":password, "token":token, "challenge":challenge, "saveCookie":saveCookie}, arguments[5]); }, AddBookClick: function(bookId) { MyAjax.invoke("AddBookClick", {"bookId":bookId},arguments[1]); }, SetRecentReadBookCookie: function(bookId) { MyAjax.invoke("pub.p.up.setrecentreadbookcookie", {"bookId":bookId}); }, AddUpdateAwake: function(strBookId) { MyAjax.invoke("pub.p.up.addupdateawake", {"strBookId":strBookId},arguments[1]); }, AddBookCase: function(bookId) { MyAjax.invoke("pub.p.up.addbookcase", {"bookId":bookId}, arguments[1]); }, AddBookCaseWithDynamic: function(bookId, bookName){ MyAjax.invoke("pub.p.up.addbookcasewithdynamic", {"bookId":bookId,"bookName":bookName}, arguments[2]); }, SubmitSurvey: function(strBookId, args) { MyAjax.invoke("pub.p.up.submitsurvey", {"strBookId":strBookId, "args":args}, arguments[2]); }, AppraiseBook: function(bookId, userId, score) { MyAjax.invoke("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"); MyAjax.invoke("pub.p.dw.loginuserwithinfo", {"ptId":newPtId, "password":password, "token":token, "challenge":challenge, "saveCookie":saveCookie}, arguments[5]); }, CheckLoginWithInfo:function(){ MyAjax.invoke("CheckLoginWithInfo", {}, arguments[0]); }, VoteRcmAlbum:function(rcmId){ MyAjax.invoke("pub.p.up.votercmalbum",{"rcmId":rcmId}, arguments[1]); }, GetMMBookReadeActiveInfo:function(bookId, bookSignType){ MyAjax.invoke("qdmm.g.dw.getmmbookreadeactiveinfo",{"bookId":bookId,"bookSignType":bookSignType}, arguments[2],'get'); }, SignOut:function(){ MyAjax.invoke("pub.p.up.signout", {}, arguments[0]); }, SelectVipDeliverBook:function (bookId){ MyAjax.invoke("pub.p.dw.selectvipdeliverbook",{"bookId":bookId},arguments[1]); }, MMPKVote:function (pkId,bookId){ MyAjax.invoke("pub.p.up.mmpkvote",{"pkId":pkId,"bookId":bookId}, arguments[2]); }, MMMonthlyVote:function(bookId){ MyAjax.invoke("pub.p.up.mmmonthlyvote",{"bookId":bookId}, arguments[1]); }, AutoPayBook:function(bookId){ 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){ MyAjax.invoke("pub.p.up.applyintoclub",{"clubId":clubId}, arguments[1]); }, AddClub2Favorite:function(clubId){//add club to favorite MyAjax.invoke("pub.p.up.addclub2favorite",{"clubId":clubId}, arguments[1]); }, GetSpaceStatistic:function(){//sspace static MyAjax.invoke("pub.p.dw.getspacestatistic",{},arguments[0]); }, CanUserCreateClub:function(){//clubindex use MyAjax.invoke("pub.p.dw.canusercreateclub",{},arguments[0]); }, AddFriend:function(friendNickName){ MyAjax.invoke("pub.p.up.addfriend",{"friendNickName":friendNickName},arguments[1]); }, IsFavoriteBook:function(bookId,userId){ MyAjax.invoke("pub.p.up.isfavoritebook",{"bookId":bookId,"userId":userId},arguments[2]); } , DeleteLeaveMsg:function(msgId){ MyAjax.invoke("pub.p.up.deleteleavemsg",{"msgId":msgId},arguments[1]); }, AddReviewSupport:function(reviewId){//增加评论感动指数 updated by tang 080519 MyAjax.invoke("pub.p.up.addreviewsupport",{"reviewId":reviewId},arguments[1]); }, BindRcmReview:function(bookId){ MyAjax.invoke("pub.p.up.bindrcmreview",{"bookId":bookId},arguments[1]); }, BindBehindData:function(type){ MyAjax.invoke("pub.p.dw.bindbehinddata",{"type":type, "bookId":bookId},arguments[2]); }, GetUserTicketInfor:function(){ MyAjax.invoke("pub.p.dw.getuserticketinfor",{},arguments[0]); }, VoteReqUpTicket:function(bookId,type,count,bookType){ MyAjax.invoke("pub.p.up.voterequpticket",{"bookId":bookId,"type":type,"count":count,"bookType":bookType},arguments[4]); }, GetBookLabel:function(bookId,pageIndex,pageSize){ MyAjax.invoke("pub.p.dw.getbooklabel",{"bookId":bookId,"pageIndex":pageIndex,"pageSize":pageSize},arguments[3]); }, GetUserLabel:function(){ MyAjax.invoke("pub.p.dw.getuserlabel",{},arguments[0]); }, SubmitLabel:function(bookId,newLabel){ MyAjax.invoke("pub.p.up.submitlabel",{"bookId":bookId,"newLabel":newLabel},arguments[2]); }, GetUserType:function(){ MyAjax.invoke("pub.p.dw.getusertype",{},arguments[0]); }, GetDGActiveCode:function(){ MyAjax.invoke("pub.p.dw.getdgactivecode",{},arguments[0]); }, RcmAlbumClick:function(rcmAlbumId){ MyAjax.invoke("pub.p.up.rcmalbumclick",{"rcmAlbumId":rcmAlbumId},arguments[1]); }, Vote0714Thread:function(threadIds){ MyAjax.invoke("vote0714",{"threadIds":threadIds},arguments[1]); }, VoteAuthor:function(names){ MyAjax.invoke("voteauthor",{"names":names},arguments[1]); }, VoteAuthorName:function(name){ MyAjax.invoke("voteauthorname",{"name":name},arguments[1]); }, PostMessage:function(validateCode,content,authorId,replyType){ MyAjax.invoke("pub.p.up.postmessage",{"validateCode":validateCode,"content":content,"authorId":authorId,"replyType":replyType},arguments[4]); }, SJGVote:function(bookList){ MyAjax.invoke("qd.p.up.sjgvote",{"bookList":bookList},arguments[1]); }, CheckNickNameIsExist:function(nickName){ MyAjax.invoke("pub.p.up.checknicknameisexist",{"nickName":nickName},arguments[1]); }, SetBookCaseVisibility:function(inputStatus){ MyAjax.invoke("pub.p.up.setbookcasevisibility",{"inputStatus":inputStatus},arguments[1]); }, ShareBooksToOtherUser:function(toUserId, bookIds, userType){ MyAjax.invoke("pub.p.up.sharebookstootheruser",{"toUserId":toUserId,"bookIds":bookIds,"userType":userType},arguments[3]); }, BindBookToBookCase:function(caseId, arrayName){ MyAjax.invoke("pub.p.dw.bindbooktobookcase",{"caseId":caseId,"arrayName":arrayName},arguments[2]); }, UpdateUserCtrl:function(){ MyAjax.invoke("pub.p.up.updateuserctrl",{},arguments[0]); }, DelBookFromBookCase:function(bookId, caseId){ MyAjax.invoke("pub.p.up.delbookfrombookcase",{"bookId":bookId,"caseId":caseId},arguments[2]); }, AddOrRemoveMobileAwake:function(actionName, bookId){ MyAjax.invoke("pub.p.up.addorremovemobileawake",{"actionName":actionName,"bookId":bookId},arguments[2]); }, MoveBookToOrderBookCase:function(selectedBooks){ MyAjax.invoke("pub.p.up.movebooktoorderbookcase",{"selectedBooks":selectedBooks},arguments[1]); }, BuyVotePKTicket:function(objectId){ MyAjax.invoke("pub.p.up.buyvotepkticket",{"objectId":objectId},arguments[1]); }, AddReviewVoteTicket:function(bookId,ticketType,count,bookType){ MyAjax.invoke("pub.p.up.addreviewvoteticket",{"bookId":bookId,"ticketType":ticketType,"count":count,"bookType":bookType},arguments[4]); }, VoteThread:function(forumId,reviewid,type,forumName,bodyLength,bookType){ MyAjax.invoke("pub.p.up.votethread",{"forumId":forumId,"reviewId":reviewid,"type":type,"forumName":forumName,"bodyLength":bodyLength,"bookType":bookType},arguments[6]); }, GetGradeInfo: function(curCommentUserId, FansExperienceValue, bookId) { MyAjax.invoke("pub.p.dw.getgradeinfo", { "curCommentUserId": curCommentUserId, "FansExperienceValue": FansExperienceValue, "bookId": bookId }, arguments[3]); }, GetFansInfo: function(bookCategoryId, ForumId) { MyAjax.invoke("pub.p.dw.getfansinfo", { "BookCategoryId": bookCategoryId, "ForumId": ForumId }, arguments[2]); }, CheckAddHotThread:function(voteYes,voteAgainst,forumId,forumName,reviewId,reviewtitle,userId,nickName,bodylength,tp){ MyAjax.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]); }, VotePost: function(forumId, reviewid, type, forumName, bodyLength) { MyAjax.invoke("pub.p.up.votepost", { "forumId": forumId, "reviewId": reviewid, "type": type, "forumName": forumName, "bodyLength": bodyLength }, arguments[5]); }, GetReviewVoteTicket:function(){ MyAjax.invoke("pub.p.dw.getreviewvoteticket",{},arguments[0]); }, GetPKResult:function(){ MyAjax.invoke("pub.p.dw.getpkresult",{},arguments[0]); }, UseAdLinkView:function(url){ MyAjax.invoke("pub.p.up.useadlinkview",{"url":url},arguments[1]); }, GetUserIP:function(){ MyAjax.invoke("pub.p.dw.getuserip",{},arguments[0]); }, GetConsumeRank:function(bookId){ MyAjax.invoke("pub.p.dw.getconsumerank",{"bookId":bookId},arguments[1]); }, AddSNSReviewSupport: function(forumId, reviewId, supportType, voteYes) { MyAjax.invoke("pub.p.up.addsnsreviewsupport", {"forumId":forumId, "reviewId":reviewId, "supportType":supportType, "voteYes":voteYes}, arguments[4]); }, AddSNSReview: function(forumId, content, validCode, refReviewIds, isAnonymous) { var validateHdd=document.getElementById("hddValidateCode"); var validateString=""; if (validateHdd!=null) validateString = validateHdd.value; MyAjax.invoke("pub.p.up.addsnsreview", {"forumId":forumId, "content":content, "validCode":validCode, "refReviewIds":refReviewIds, "isAnonymous":isAnonymous,"validateString":validateString}, arguments[5]); }, ReviewComplaint: function(content, validCode) { MyAjax.invoke("pub.p.up.reviewcomplaint", { "content": content, "validCode": validCode }, arguments[2]); }, ExpandReview: function(forumId, reviewId) { MyAjax.invoke("pub.p.dw.expandreview", { "forumId": forumId, "reviewId": reviewId }, arguments[2]); }, BindSNSReviewList:function(forumId){ MyAjax.invoke("pub.p.dw.bindsnsreviewlist",{"forumId":forumId},arguments[1]); }, SearchBookId: function(bookName) { MyAjax.invoke("pub.p.dw.searchbookid", { "bookName": bookName }, arguments[1]); }, AddHotReviewByPost: function(forumId, forumName, threadId, freeType) { MyAjax.invoke("pub.p.up.addhotreviewbypost", { "forumId": forumId, "forumName": forumName, "threadId": threadId, "freeType": freeType }, arguments[4]); }, GradedToThreader: function(userId, threaderId, point) { MyAjax.invoke("pub.p.up.gradedtothreader", { "userId": userId, "threaderId": threaderId, "point": point }, arguments[3]); }, GradedToThread: function(threadId, userId, point) { MyAjax.invoke("pub.p.up.gradedtothread", { "threadId": threadId, "userId": userId, "point": point }, arguments[3]); }, AjaxDeleteAdmin: function(forumId) { MyAjax.invoke("pub.p.up.ajaxdeleteadmin", { "forumId": forumId }, arguments[1]); }, SendAdClick:function(adPublishId){ MyAjax.invoke("pub.p.up.sendadclick",{"adPublishId":adPublishId},arguments[1]); }, GetMobileValidate:function(mobilePhone){ MyAjax.invoke("pub.p.dw.getmobilevalidate",{"mobilePhone":mobilePhone},arguments[1]); }, GetMobilePtValidate:function(mobilePhone){ MyAjax.invoke("pub.p.dw.getmobileptvalidate",{"mobilePhone":mobilePhone},arguments[1]); }, GetValidateCode:function(){ MyAjax.invoke("pub.p.dw.getvalidatecode",{},arguments[0]); }, LoginUserWithValidate:function(ptId, password, token, challenge, saveCookie, input,validateString){ var newPtId=ptId; newPtId = newPtId.replace(/\·/g, "%A1%A4"); MyAjax.invoke("pub.p.up.loginuserwithvalidate", {"ptId":newPtId, "password":password, "token":token, "challenge":challenge, "saveCookie":saveCookie,"input":input,"validateString":validateString}, arguments[7]); }, AddCarnivalUserInfo:function(ptId){ MyAjax.invoke("qd.p.up.addcarnivaluserinfo",{"ptId":ptId}, arguments[1]); }, AddCarnivalLogInfo:function(rowId,qu,gameusername){ MyAjax.invoke("qd.p.up.addcarnivalloginfo", {"rowId":rowId,"qu":qu, "gameusername":gameusername}, arguments[3]); }, UpdateCarnivalUserInfo:function(ptId,type){ MyAjax.invoke("qd.p.up.updatecarnivaluserinfo",{"ptId":ptId,"type":type}, arguments[2]); }, BuyMMMonthlyBook:function(bookId){ MyAjax.invoke("pub.p.up.buymmmonthlybook",{"bookId":bookId}, arguments[1]); }, AddNFArtical: function(bookId, title, content, postType, validCode,bounsType,bouseAmount) { MyAjax.invoke("pub.p.up.nfartical", {"bookId":bookId,"title":title, "content":content, "postType":postType, "validCode":validCode,"bounsType":bounsType,"bouseAmount":bouseAmount}, arguments[7]); }, CheckHasNewChapterInTenMin: function(bookId,type,isvip) { MyAjax.invoke("pub.p.up.checkhasnewchapterintenmin", {"bookId":bookId,"type":type,"isvip":isvip}, arguments[3]); }, SetCookieForOEMHR:function(){ MyAjax.invoke("pub.p.up.setcookieforoemhr",{},arguments[0]); }, GetUpdateChapterId:function(bookId,chapterId) { MyAjax.invoke("pub.p.dw.getupdatechapterid", {"bookId":bookId,"chapterId":chapterId}, arguments[2]); }, CheckForumRequisition: function(forumId) { MyAjax.invoke("pub.p.up.checkforumrequisition", { "forumId": forumId }, arguments[1]); }, AddScoreByAdmin: function(forumId, operationObj, userId, amount, threadName, operationName,operation,threadID) { MyAjax.invoke("pub.p.up.addscorebyadmin", { "forumId": forumId, "operationObj": operationObj, "userId": userId, "amount": amount, "threadName": threadName, "operationName": operationName,"operation":operation ,"threadID":threadID}, arguments[8]); }, ShangHandler: function(bookId, chapterId, threadId,getUserId, getUserNickName,postId,operateType,operatorId,operatorName,threadSubject,isVipBook,shangCiGetUserId) { MyAjax.invoke("pub.p.up.shanghandler", { "bookId": bookId, "chapterId": chapterId, "threadId": threadId, "getUserId": getUserId, "getUserNickName": getUserNickName, "postId": postId,"operateType":operateType ,"operatorId":operatorId,"operatorName":operatorName,"threadSubject":threadSubject,"isVipBook":isVipBook,"shangCiGetUserId":shangCiGetUserId}, arguments[12]); }, GetForumModelScore: function(forumId) { MyAjax.invoke("pub.p.dw.getforummodelscore", { "forumId": forumId }, arguments[1]); }, UpdateAdminInviteInfoStatus:function(inviteId,status,forumId,forumName){ MyAjax.invoke("pub.p.up.updateadmininviteinfostatus", { "inviteId": inviteId,"status":status,"forumId":forumId,"forumName":forumName}, arguments[4]); }, GetSosuBookInfo: function(keyword, type) { MyAjax.invoke("pub.p.up.getsosubookinfo", { "keyword": keyword, "type": type }, arguments[2]); }, GetAchieveBookList: function(subCategoryId) { MyAjax.invoke("qdmm.g.dw.getachievebooklist", { "subCategoryId": subCategoryId }, arguments[1],'get'); }, GetDaShang:function(bid) { MyAjax.invoke("pub.g.dw.getdashang", {"bookId":bid}, arguments[1],"get"); }, GetUpdateTicketInfo:function(bid) { MyAjax.invoke("pub.p.dw.getupdateticketinfo", {"bookId":bid}, arguments[1]); }, AuthoeOtherBooks:function(authorid,bookid,authorname){ MyAjax.invoke("pub.p.up.authoeotherbooks",{"authorid":authorid,"bookid":bookid,"authorname":authorname},arguments[3]); }, GetUserFansInfo: function(bid) { MyAjax.invoke("pub.p.dw.getuserfansinfo", { "bookId": bid }, arguments[1]); }, GetDsFansList: function(bid,urk) { MyAjax.invoke("pub.p.up.getdsfanslist", { "bookId": bid,"userRank": urk }, arguments[2]); }, SubmitReaderLabel:function(bookId,newLabel){ MyAjax.invoke("pub.p.up.submitreaderlabel",{"bookId":bookId,"newLabel":newLabel},arguments[2]); }, MMPKVoteWithCount:function(pkId, bookId, count){ MyAjax.invoke("qdmm.p.up.mmpkvotewithcount", { "pkId": pkId, "bookId": bookId, "count": count }, arguments[3]); }, GetPinkTicketCount:function() { MyAjax.invoke("qbmm.p.dw.getpinkticketcount", {}, arguments[0]); }, UserIsBindPhone:function() { MyAjax.invoke("pub.p.dw.userisbindphone", {}, arguments[0]); }, MailGroupSubscribe:function(bookid, useremail, userRead, validCode){ var validateHdd=document.getElementById("hddValidateCode"); var validateString=""; if (validateHdd!=null) validateString = validateHdd.value; MyAjax.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]); }, //报错功能 AddReply:function(rcmAlbumId,fromNickName,content){ MyAjax.invoke("pub.p.up.addreply", { "rcmAlbumId": rcmAlbumId, "fromNickName": fromNickName,"content": content }, arguments[3]); }, CheckPlayAuthorization:function(bookId,chapterId){ MyAjax.invoke("pub.p.dw.checkplayauthorization", { "bookId": bookId, "chapterId": chapterId}, arguments[2]); }, CheckDownAuthorization:function(bookId,chapterId){ MyAjax.invoke("pub.p.dw.checkdownauthorization", { "bookId": bookId, "chapterId": chapterId}, arguments[2]); }, AddTingBookScore:function(bookId,score1,score2,score3){ MyAjax.invoke("pub.p.up.addtingbookscore", { "bookId": bookId, "score1": score1,"score2": score2,"score3": score3}, arguments[4]); }, AddToMyfav:function(bookId,chapterId){ MyAjax.invoke("pub.p.up.addtomyfav", { "bookId": bookId, "chapterId": chapterId}, arguments[2]); }, ShareToFriends:function(bookId,chapterId,chapterName){ MyAjax.invoke("pub.p.up.sharetofriends", { "bookId": bookId, "chapterId": chapterId,"chapterName":chapterName}, arguments[3]); }, CheckValidateCode:function(input,validateString){ MyAjax.invoke("pub.p.dw.checkvalidatecode", {"input":input,"validateString":validateString },arguments[2]); }, BookCheckIn : function(_bookid, _bookName, _pageUrl, _pageTitle, _pageDescription, _des) { MyAjax.invoke("pub.p.up.bookcheckin", { bookid: _bookid, bookname: _bookName, pageUrl: _pageUrl, pageTitle: _pageTitle, pageDescription: _pageDescription, comment: _des }, arguments[6]); }, GetUserBalance : function(){ MyAjax.invoke("pub.p.dw.getuserbalance", {},arguments[0]); }, DaShangBook : function(bookid, moneytype, des, fromUrl){ MyAjax.invoke("pub.p.up.dashangbook", { bookid: bookid, moneytype: moneytype, des: des, fromUrl: fromUrl }, arguments[4]); }, GetReadBook:function(maxcount){ MyAjax.invoke("pub.p.dw.getreadbook",{'maxcount': maxcount}, arguments[1]); }, GetAuthorBook:function(maxcount){ MyAjax.invoke("pub.p.dw.getauthorbook",{'maxcount': maxcount}, arguments[1]); }, GetLoginInfo: function() { MyAjax.invoke("pub.p.dw.getlogininfo",{}, arguments[0]); }, GetMessageCenterCount:function(){ MyAjax.invoke("pub.p.dw.getmessagecentercount",{}, arguments[0]); }, GetBookFavorite:function(maxcount){ MyAjax.invoke("pub.p.dw.getbookfavorite",{'maxcount': maxcount}, arguments[1]); }, GetRecommendBooks:function(groupIdString, maxcount){ MyAjax.invoke("pub.p.dw.getrecommendbooks",{'groupIdString': groupIdString, 'maxcount': maxcount}, arguments[2]); }, Get7Tickets:function(recentdays, maxcount){ MyAjax.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]); }, AddMMLike: function(){ MyAjax.invoke("qdmm.p.up.addmmlike",{},arguments[0],'POST'); } }