Selaa lähdekoodia

Merge branch 'zz/dev001' into dev/test

zhaozhen 1 vuosi sitten
vanhempi
commit
87b8ec13a8

+ 1 - 1
app/Console/Commands/ReferralLinkPidDraw.php

85
 
85
 
86
             if ($res) {
86
             if ($res) {
87
                 $upDb = ['is_draw' => 1];
87
                 $upDb = ['is_draw' => 1];
88
-                if (!is_null($pid)) $upDb['pid'] = $pid;
88
+                if (!is_null($pid)) $upDb['pids'] = $pid;
89
 
89
 
90
                 $item->update($upDb);
90
                 $item->update($upDb);
91
             }
91
             }

+ 6 - 2
app/Console/Commands/Test.php

695
                     continue;
695
                     continue;
696
                 }
696
                 }
697
 
697
 
698
+                $pid = null;
698
                 $res = MassMsgService::drawPid($data, $pid, 'test');
699
                 $res = MassMsgService::drawPid($data, $pid, 'test');
699
                 if ($res) {
700
                 if ($res) {
700
-                    if (!is_null($pid)) $upDb['pid'] = $pid;
701
+                    if (!is_null($pid)) {
702
+                        $upDb['pids'] = $pid;
703
+                        $item->update($upDb);
704
+                    }
705
+
701
 
706
 
702
-                    $item->update($upDb);
703
                 }
707
                 }
704
             }
708
             }
705
         }
709
         }

+ 1 - 1
app/Models/MassMsg.php

148
         }
148
         }
149
 
149
 
150
         $popu_data = array();
150
         $popu_data = array();
151
-        $pidVals = $data->pluck('pid')->all();
151
+        $pidVals = $data->pluck('pids')->all();
152
         $pids = [];
152
         $pids = [];
153
         foreach ($pidVals as $pidVal) {
153
         foreach ($pidVals as $pidVal) {
154
             if (empty($pidVal)) continue;
154
             if (empty($pidVal)) continue;

+ 1 - 1
app/Models/MomentTask.php

132
 
132
 
133
         $popu_data = null;
133
         $popu_data = null;
134
         $pids = [];
134
         $pids = [];
135
-        $pidVals = $data->pluck('pid')->all();
135
+        $pidVals = $data->pluck('pids')->all();
136
         foreach ($pidVals as $pidVal) {
136
         foreach ($pidVals as $pidVal) {
137
             if (empty($pidVal)) continue;
137
             if (empty($pidVal)) continue;
138
 
138
 

+ 4 - 4
app/Service/PopularizService.php

45
 
45
 
46
             #统计回收信息
46
             #统计回收信息
47
             $pids = [];
47
             $pids = [];
48
-            $pidVals = $list->pluck('pid')->all();
48
+            $pidVals = $list->pluck('pids')->all();
49
             foreach ($pidVals as $pidVal) {
49
             foreach ($pidVals as $pidVal) {
50
                 if (empty($pidVal)) continue;
50
                 if (empty($pidVal)) continue;
51
 
51
 
109
                 $datum->send_total = isset($sendStatInfo->send_total) ? $sendStatInfo->send_total : 0;
109
                 $datum->send_total = isset($sendStatInfo->send_total) ? $sendStatInfo->send_total : 0;
110
                 unset($datum->admin_id);
110
                 unset($datum->admin_id);
111
 
111
 
112
-                $datumPids = json_decode($datum->pid, true);
112
+                $datumPids = json_decode($datum->pids, true);
113
                 #统计 总播放人数(:总uv)  充值人数 充值次数(今日) 充值金额(今日)   付费率 点击率
113
                 #统计 总播放人数(:总uv)  充值人数 充值次数(今日) 充值金额(今日)   付费率 点击率
114
                 if($datumPids){
114
                 if($datumPids){
115
                     $datum->payAvg = $datum->payUv>0 ? round($datum->payPv/$datum->payUv, 2) : null;
115
                     $datum->payAvg = $datum->payUv>0 ? round($datum->payPv/$datum->payUv, 2) : null;
235
 
235
 
236
             #统计回收信息
236
             #统计回收信息
237
             $pids = [];
237
             $pids = [];
238
-            $pidVals = $list->pluck('pid')->all();
238
+            $pidVals = $list->pluck('pids')->all();
239
             foreach ($pidVals as $pidVal) {
239
             foreach ($pidVals as $pidVal) {
240
                 if (empty($pidVal)) continue;
240
                 if (empty($pidVal)) continue;
241
 
241
 
295
 
295
 
296
                 unset($datum->admin_id);
296
                 unset($datum->admin_id);
297
 
297
 
298
-                $datumPids = json_decode($datum->pid, true);
298
+                $datumPids = json_decode($datum->pids, true);
299
                 #统计 总播放人数(:总uv)  充值人数 充值次数(今日) 充值金额(今日)   付费率 点击率
299
                 #统计 总播放人数(:总uv)  充值人数 充值次数(今日) 充值金额(今日)   付费率 点击率
300
                 if($datumPids){
300
                 if($datumPids){
301
                     $datum->payAvg = $datum->payUv>0 ? round($datum->payPv/$datum->payUv, 2) : null;
301
                     $datum->payAvg = $datum->payUv>0 ? round($datum->payPv/$datum->payUv, 2) : null;