Просмотр исходного кода

后台-用户推荐节点身份修改记录展示/用户上下级展示-all beta

xupuyuan месяцев назад: 11
Родитель
Сommit
e35715a650
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      app/common/repositories/user/UserRepository.php

+ 4 - 3
app/common/repositories/user/UserRepository.php

@@ -3132,9 +3132,10 @@ class UserRepository extends BaseRepository
3132 3132
                 Db::name("rrx_user_spread_change_records")->insert([
3133 3133
                     'operation_id' => 1,
3134 3134
                     'uid' => $uid,
3135
-                    'old_spread_id' => $identity['spread_uid'],
3136
-                    'new_spread_id' => $spread['uid'],
3137
-                    'mark' => $mark ]);
3135
+                    'old_spread_id' => intval($identity['spread_uid'] ?? 0),
3136
+                    'new_spread_id' => intval($spread['uid']),
3137
+                    'mark' => $mark
3138
+                ]);
3138 3139
                 Db::name("user")->where('account',$spread_account)->inc("spread_count",1)->update();
3139 3140
                 if ($identity["spread_uid"]){
3140 3141
                     Db::name("user")->where('uid',$identity["spread_uid"])->dec("spread_count")->update();