Преглед на файлове

修复推广人身份未升级问题

sunxiaobiao преди 1 година
родител
ревизия
c928e1d0d3
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      app/controller/api/Notify.php

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

@@ -1551,6 +1551,9 @@ class Notify
1551
 
1551
 
1552
                 if (strpos($mark, "推广") !== false) {
1552
                 if (strpos($mark, "推广") !== false) {
1553
                     Db::name('user')->where("uid",$uid)->update(['per_contribute'=>$con_data['per_contribute'] + $num]);
1553
                     Db::name('user')->where("uid",$uid)->update(['per_contribute'=>$con_data['per_contribute'] + $num]);
1554
+                    /** @var UserRepository $userRepository */
1555
+                    $userRepository = app()->make(UserRepository::class);
1556
+                    $userRepository->setUserIdentity($uid);
1554
                 }
1557
                 }
1555
 
1558
 
1556
                 //if(count($spread_data) > 0){
1559
                 //if(count($spread_data) > 0){