|
@@ -581,8 +581,15 @@ async function clickLikeBtn() {
|
|
|
break
|
|
|
case '3':
|
|
|
state.loading_show = true
|
|
|
- let likeRes = await denet.content.doTask.like({ tweetId: state.tweetId });
|
|
|
- likeRes && doTaskReport({...likeRes, task_type: 'like', do_type: 'api'}, {tab: {}});
|
|
|
+ let likeRes = await denet.content.doTask.like({ tweetId: state.tweetId }).catch((e) => {
|
|
|
+ console.log('error in doTask.like', e)
|
|
|
+ });
|
|
|
+ console.log('likeRes', likeRes)
|
|
|
+ if (likeRes) {
|
|
|
+ doTaskReport({ ...likeRes, task_type: 'like', do_type: 'api' }, { tab: {} });
|
|
|
+ } else {
|
|
|
+ state.loading_show = false
|
|
|
+ }
|
|
|
break
|
|
|
default:
|
|
|
window.open(`https://twitter.com/intent/like?tweet_id=${state.tweetId}`)
|
|
@@ -756,7 +763,8 @@ async function clickReply(params) {
|
|
|
postId: state.postId,
|
|
|
iframeId,
|
|
|
type: params.type,
|
|
|
- taskLuckdropId: state.detail.taskLuckdropId
|
|
|
+ taskLuckdropId: state.detail.taskLuckdropId,
|
|
|
+ tweetId: state.tweetId,
|
|
|
}
|
|
|
if (state.window_origin.indexOf('facebook.com') > -1) {
|
|
|
let url = `https://twitter.com/${state.tweet_author}/status/${state.tweetId}?actionType=denetFacebookToTwitterReply&deReplyParams=${JSON.stringify(replyData)}`
|
|
@@ -985,6 +993,7 @@ async function clickFollowAll(item, is_all) {
|
|
|
if (state.window_origin.indexOf('facebook.com') >= 0) {
|
|
|
state.detail.finishTaskTypeV2 = '2'
|
|
|
}
|
|
|
+ console.log('state.detail.finishTaskTypeV2', state.detail.finishTaskTypeV2)
|
|
|
switch (state.detail.finishTaskTypeV2) {
|
|
|
case '1':
|
|
|
// openapi
|