xialei 1 rok temu
rodzic
commit
ece8a75e70

+ 4 - 0
app/common/repositories/store/order/StoreOrderRepository.php

@@ -9250,6 +9250,10 @@ class StoreOrderRepository extends BaseRepository
9250
                     Db::name('user')->where("uid", $uid)->update(['per_contribute' => $con_data['per_contribute'] + $num]);
9250
                     Db::name('user')->where("uid", $uid)->update(['per_contribute' => $con_data['per_contribute'] + $num]);
9251
                 }
9251
                 }
9252
 
9252
 
9253
+                if($pv > 0){
9254
+                    Db::name('user')->where("uid", $uid)->update(['pv' => $con_data['pv'] + $pv]);
9255
+                }
9256
+
9253
                 //if(count($spread_data) > 0){
9257
                 //if(count($spread_data) > 0){
9254
                 // $all_ids = [];
9258
                 // $all_ids = [];
9255
                 // foreach($spread_data as $k=>$v){
9259
                 // foreach($spread_data as $k=>$v){

+ 4 - 0
app/controller/api/Notify.php

@@ -1415,6 +1415,10 @@ class Notify
1415
                 if (strpos($mark, "推广") !== false) {
1415
                 if (strpos($mark, "推广") !== false) {
1416
                     Db::name('user')->where("uid",$uid)->update(['per_contribute'=>$con_data['per_contribute'] + $num]);
1416
                     Db::name('user')->where("uid",$uid)->update(['per_contribute'=>$con_data['per_contribute'] + $num]);
1417
                 }
1417
                 }
1418
+
1419
+                if($pv > 0){
1420
+                    Db::name('user')->where("uid", $uid)->update(['pv' => $con_data['pv'] + $pv]);
1421
+                }
1418
              
1422
              
1419
                 //if(count($spread_data) > 0){
1423
                 //if(count($spread_data) > 0){
1420
                     // $all_ids = [];
1424
                     // $all_ids = [];