Browse Source

大数据

lizhen_gitee 4 months ago
parent
commit
eaf48d6969
1 changed files with 15 additions and 15 deletions
  1. 15 15
      application/api/controller/Tvindex.php

+ 15 - 15
application/api/controller/Tvindex.php

@@ -499,21 +499,21 @@ class Tvindex extends Api
         Db::name('video_play_payuserplay')->insertGetId($play_data);
 
         $content = [
-            'UserID' => $this->auth->mobile,
-            'city' => '14',
-            'start_time' => $start_time,
-            'end_time' => $end_time,
-            'service_type' => 1,
-            'albumid' => $id,
-            'albumname' => $info['title'],
-            'csource' => $csource,
-            'SN' => $sn,
-            'ip' => request()->ip(),
-            'fee_type' => $info['is_pay'] == 1 ? 1 : '',
-            'flow' => '',
-            'product' => '',
-            'product_name' => '',
-            'info_source' => '02'
+            'UserID' => $this->auth->mobile,  //UserID
+            'city' => '14',                   //用户地市 ,14南京
+            'start_time' => $start_time,      //开始时间
+            'end_time' => $end_time,          //结束时间
+            'service_type' => 1,              //业务类型1:点播, 2:回看, 3:直播, 4:其他
+            'albumid' => $id,                 //节目/内容ID
+            'albumname' => $info['title'],    //节目/内容名称
+            'csource' => $csource,            //内容访问来源
+            'SN' => $sn,                      //设备ID
+            'ip' => request()->ip(),          //终端IP
+            'fee_type' => $info['is_pay'] == 1 ? 1 : '',  //该内容对应计费类型
+            'flow' => '',                     //用户使用的流量
+            'product' => (string)config('product_code'),                  //产品ID
+            'product_name' => '',             //产品名称
+            'info_source' => (string)config('cp_id'),             //信息来源
         ];
 
         $content = join('|', $content);