Browse Source

[edit][推文id]

zhangwei 2 years ago
parent
commit
69930787a0

+ 3 - 2
src/view/iframe/red-packet/luck-draw.vue

@@ -1002,8 +1002,9 @@ const reSetBindTwtterId = (_params) => {
     let { taskCondition } = postBizData;
     let discordTask = JSON.parse(taskCondition).find(item => item.type == 7);
 
-    getChromeStorage('userInfo', (_userInfo) => {
-        if (_userInfo && _userInfo.uid == _params.uid) {
+    getChromeStorage('userInfo', (_userInfo = {}) => {
+        // if (_userInfo && _userInfo.uid == _params.uid) {
+        if (_userInfo.uid) {
             srcPublishSuccess({
                 params: {
                     postId: state.postId,

+ 3 - 2
src/view/iframe/red-packet/red-packet.vue

@@ -892,8 +892,9 @@ const reSetBindTwtterId = (_params) => {
   let { taskCondition } = postBizData;
   let discordTask = JSON.parse(taskCondition).find(item => item.type == 7);
 
-  getChromeStorage('userInfo', (_userInfo) => {
-    if (_userInfo.uid == _params.uid) {
+  getChromeStorage('userInfo', (_userInfo = {}) => {
+    // if (_userInfo.uid == _params.uid) {
+    if (_userInfo.uid) {
       srcPublishSuccess({
         params: {
           postId: state.postId,