|
@@ -88,6 +88,7 @@ const toStart = (req) => {
|
|
|
guid: guid()
|
|
|
}
|
|
|
}).then((res) => {
|
|
|
+ console.log('toStart2', res)
|
|
|
state.usersFollowStatusList = [];
|
|
|
if (res.code == 0) {
|
|
|
state.page = '开奖页'
|
|
@@ -105,12 +106,12 @@ const toStart = (req) => {
|
|
|
}
|
|
|
|
|
|
}).catch((error) => {
|
|
|
+ console.log('toStart3', error)
|
|
|
console.error(error)
|
|
|
})
|
|
|
}
|
|
|
|
|
|
chrome.runtime.onMessage.addListener((req, sender, sendResponse) => {
|
|
|
- console.log('DO_TASK', req)
|
|
|
switch (req.actionType) {
|
|
|
case 'DO_TASK':
|
|
|
if (!req.task_type || state.tweetId != req.tweet_Id) {
|
|
@@ -169,7 +170,7 @@ chrome.runtime.onMessage.addListener((req, sender, sendResponse) => {
|
|
|
if (item.type == 'invite') {
|
|
|
log_pre_repost.params.isFatherTwitterFans = item2.followed
|
|
|
}
|
|
|
- if (item.type = 'post') {
|
|
|
+ if (item.type == 'post') {
|
|
|
log_pre_repost.params.isRootTwitterFans = item2.followed
|
|
|
}
|
|
|
}
|
|
@@ -291,7 +292,7 @@ const toLast = (num, bit) => {
|
|
|
|
|
|
async function clickBtn() {
|
|
|
global_userInfo = await state.checkIsLogin()
|
|
|
- if (!global_userInfo) {
|
|
|
+ if (!global_userInfo || !global_userInfo.uid) {
|
|
|
return
|
|
|
}
|
|
|
if (state.cover_status == '奖励已被领光') {
|