Selaa lähdekoodia

Merge branch 'zz/dev001' into dev/test

zhaozhen 2 vuotta sitten
vanhempi
commit
87b8ec13a8

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

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

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

@@ -695,11 +695,15 @@ class Test extends Command
695 695
                     continue;
696 696
                 }
697 697
 
698
+                $pid = null;
698 699
                 $res = MassMsgService::drawPid($data, $pid, 'test');
699 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,7 +148,7 @@ class MassMsg extends Model
148 148
         }
149 149
 
150 150
         $popu_data = array();
151
-        $pidVals = $data->pluck('pid')->all();
151
+        $pidVals = $data->pluck('pids')->all();
152 152
         $pids = [];
153 153
         foreach ($pidVals as $pidVal) {
154 154
             if (empty($pidVal)) continue;

+ 1 - 1
app/Models/MomentTask.php

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

+ 4 - 4
app/Service/PopularizService.php

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