Преглед изворни кода

[*] 快捷跟送测试参数提交

Steven пре 8 месеци
родитељ
комит
3589a6fa2e

+ 2 - 2
MiMoLive/MiMoLive/Classes/Live/View/LiveingView/FastGift/MOFastGiveTool.m

@@ -15,7 +15,7 @@
 + (BOOL)canShowFastGiveView {
     MOFastGiveRecord *recordModel = (MOFastGiveRecord *)[[MODataCache sharedYYCache] objectForKey:kShowFastGiveViewKey];
     if ([NSDate isSameDay:[NSDate date] otherDate:recordModel.triggerDate]) {//如果是当天
-        if (recordModel.triggerTimes > 5) {//超过5次不能显示
+        if (recordModel.triggerTimes > 500) {//超过5次不能显示
             return NO;
         } else {//5次以内
             if (recordModel.triggerTimes == 1) {//第一次和第二次是连续显示的
@@ -35,7 +35,7 @@
 
 + (BOOL)isMoreThan30MinutesBetweenDate:(NSDate *)date1 andDate:(NSDate *)date2 {
     NSTimeInterval interval = fabs([date1 timeIntervalSinceDate:date2]);
-    return interval >= 30 * 60;
+    return interval >= 10;
 }
 
 + (void)saveShowFastGiveViewOneTime {

+ 2 - 2
MiMoLive/MiMoLive/Classes/Live/View/LiveingView/FollowGift/MOFollowGiveTool.m

@@ -15,7 +15,7 @@
 + (BOOL)canShowFollowGiveView {
     MOFollowGiveRecord *recordModel = (MOFollowGiveRecord *)[[MODataCache sharedYYCache] objectForKey:kShowFollowGiveViewKey];
     if ([NSDate isSameDay:[NSDate date] otherDate:recordModel.triggerDate]) {//如果是当天
-        if (recordModel.triggerTimes > 3) {//超过3次不能显示
+        if (recordModel.triggerTimes > 300) {//超过3次不能显示
             return NO;
         } else {//5次以内
             if (recordModel.triggerTimes == 1) {//第一次和第二次是连续显示的
@@ -35,7 +35,7 @@
 
 + (BOOL)isMoreThan60MinutesBetweenDate:(NSDate *)date1 andDate:(NSDate *)date2 {
     NSTimeInterval interval = fabs([date1 timeIntervalSinceDate:date2]);
-    return interval >= 60 * 60;
+    return interval >= 10;
 }
 
 + (void)saveShowFollowGiveViewOneTime {

+ 3 - 3
MiMoLive/MiMoLive/Classes/Live/View/LiveingView/MOShowRoomLiveView.m

@@ -3061,7 +3061,7 @@ static int theLikeComboNum = 0;
     MORtmFastGive *fastGiveModel = jsonEntity.fastGive;
         
     //停留时长小于60秒 || 没有过有效互动行为 || 产生打赏行为,不加入队列
-    if (self.stayTime < 60 || !self.haveInteraction || self.haveSendGift) {
+    if (self.stayTime < 10 || !self.haveInteraction || self.haveSendGift) {
         return;
     }
     
@@ -3197,11 +3197,11 @@ static int theLikeComboNum = 0;
     //不符合条件,不加入队列
     if (followGiveModel.type == 1 || followGiveModel.type == 2) {//条件1,条件2场景
         //停留时长小于60秒 || 没有过有效互动行为 || 产生打赏行为
-        if (self.stayTime < 180 || !self.haveInteraction || self.haveSendGift) {
+        if (self.stayTime < 10 || !self.haveInteraction || self.haveSendGift) {
             return;
         }
     } else if (followGiveModel.type == 3) {//条件3场景
-        if (self.stayTime < 300 || !self.haveInteraction || self.haveSendGift) {
+        if (self.stayTime < 10 || !self.haveInteraction || self.haveSendGift) {
             return;
         }
     }