add sharedetail
This commit is contained in:
parent
09c29f6edf
commit
1b95852523
@ -394,6 +394,36 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 成就的查询接受邀请的详细信息
|
||||||
|
* @param {Array} actionidlst 成就id列表,格式如下:[1001,1002,1003]
|
||||||
|
* @param {object} successcb
|
||||||
|
* @param {object} failcb
|
||||||
|
*/
|
||||||
|
queryAchievementShareDetail(actionidlst, successcb, failcb){
|
||||||
|
this.urlbd.clear();
|
||||||
|
this.urlbd.addKV('c', 'AchievementShare')
|
||||||
|
.addKV('a', 'getInviteeList')
|
||||||
|
.addKV('session_id', this.sessionid)
|
||||||
|
.addKV('account_id', this.accountid)
|
||||||
|
.addKV('achievement_ids', actionidlst.join());
|
||||||
|
|
||||||
|
httpclient.httpGet(this.urlbd.baseurl, function(restext){
|
||||||
|
var obj = JSON.parse(restext);
|
||||||
|
if(obj && obj.errcode == 0){
|
||||||
|
//console.log('[queryAchievementShareDetail]success!'+JSON.stringify(obj));
|
||||||
|
successcb && successcb(obj.invitee_list);
|
||||||
|
}else{
|
||||||
|
//console.log('[queryAchievementShareDetail]failed!'+obj.errcode+":"+obj.errmsg);
|
||||||
|
failcb && failcb(0, obj.errcode, obj.errmsg);
|
||||||
|
}
|
||||||
|
}, function(errcode, errmsg){
|
||||||
|
//console.log('[queryAchievementShareDetail]failed!'+errcode+":"+errmsg);
|
||||||
|
failcb && failcb(errcode, 0, errmsg);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 普通分享
|
* 普通分享
|
||||||
* @param {string} content 分享显示的标题
|
* @param {string} content 分享显示的标题
|
||||||
|
Loading…
x
Reference in New Issue
Block a user