WIN-2308041133\Administrator 8 months ago
parent
commit
286cda5c3d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Platform.php

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

@@ -86,7 +86,7 @@ class Platform extends Api
 //  每日分配各个短剧在不同平台的收益
     public function platform_income_day(){
 //        先获取所有短剧在不同平台的收益上下限
-        $list = model('VideoPlatform')->select();
+        $list = model('VideoPlatform')->select()->toArray();
         foreach ($list as $k => $v){
             $randomNumber = mt_rand($v['min'] * 100, $v['max'] * 100) / 100;
             $up=[