WIN-2308041133\Administrator 5 months ago
parent
commit
196d663b91
1 changed files with 1 additions and 0 deletions
  1. 1 0
      application/api/controller/Platform.php

+ 1 - 0
application/api/controller/Platform.php

@@ -189,6 +189,7 @@ class Platform extends Api
                 $count = model('video_user')->where('vid',$v)->field('sum(contribution) as count')->find();
                 $count = $count['count'];  //该短剧的总贡献值
                 $income = model('video_platform_record')->where('vid', $v)->where('createtime', 'between', [$yesterdayStart, $yesterdayEnd])->sum('num');  //该短剧昨日收益
+                if ($income<=0) continue;
                 $each_income = $income / $count;  //每点贡献值的收益
                 $user_list = model('video_user')->where('vid', $v)->where('contribution','>',0)->select();
                 $name = model('Videolist')->where('id', $v)->value('name');  //该短剧名称