Browse Source

大数据格式调整

15954078560 2 years ago
parent
commit
e493f8065d
1 changed files with 5 additions and 5 deletions
  1. 5 5
      application/api/controller/Index.php

+ 5 - 5
application/api/controller/Index.php

@@ -1453,13 +1453,13 @@ class Index extends Api
         }
 
         $content = [
-            'playid' => (string)(config('cp_id') . date('Ymd') . getMillisecond() . mt_rand(10000000, 99999999)),
+            'playid' => (string)(config('data_cp_id') . date('Ymd') . getMillisecond() . mt_rand(10000000, 99999999)),
             'UserID' => $this->auth->mobile,
             'SN' => $sn,
             'start_time' => $start_time,
             'end_time' => $end_time,
             'service_type' => 1,
-            'cpid' => config('cp_id'),
+            'cpid' => config('data_cp_id'),
             'albumid' => $id,
             'albumname' => $info['title'],
             'videoid' => $id,
@@ -1474,12 +1474,12 @@ class Index extends Api
 
         $content = join(json_decode('"\u0001"', true), $content);
 
-        $filename = date('Ymd').'_'.config('cp_id').'_userplaydata_1.dat';
-        $check_filename = date('Ymd').'_'.config('cp_id').'_userplaydata_1.chk';
+        $filename = date('Ymd').'_'.config('data_cp_id').'_userplaydata_1.dat';
+        $check_filename = date('Ymd').'_'.config('data_cp_id').'_userplaydata_1.chk';
 
         error_log(print_r($content, 1) . PHP_EOL, 3, './dashuju/' . $filename);
         error_log('', 3, './dashuju/' . $check_filename);
-        $finish_filename = date('Ymd') . '_' . config('cp_id') . '_userplaydata.finish';
+        $finish_filename = date('Ymd') . '_' . config('data_cp_id') . '_userplaydata.finish';
         error_log('', 3, './dashuju/' . $finish_filename);
     }