dever 6 lat temu
rodzic
commit
a0f2025af9
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      act/lib/Share.php

+ 5 - 0
act/lib/Share.php

@@ -92,9 +92,14 @@ class Share
                         $score = 0;
                         if ($type == 4) {
                             $active = Dever::db('journal/active')->one(array('id' => $id));
+                            /*
                             if ($active && $active['status'] == 1 && time() <= $active['end']) {
                                 $score = $active['invite_score'];
                             }
+                            */
+                            if ($active) {
+                                $score = $active['invite_score'];
+                            }
                         }
                         Dever::score($source_uid, 'share_'.$method.'_new_reflux', '通过'.$name.'邀请到新用户', 'act/lib/score.submit?method=share&type='.$type.'&id=' . $id, $score);
                         # 插入到邀请列表里