Kaynağa Gözat

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

sunxiaobiao 1 yıl önce
ebeveyn
işleme
c928e1d0d3
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      app/controller/api/Notify.php

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

@@ -1551,6 +1551,9 @@ class Notify
1551 1551
 
1552 1552
                 if (strpos($mark, "推广") !== false) {
1553 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 1559
                 //if(count($spread_data) > 0){