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

Merge branch 'dev' into dev-sxb

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

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

@@ -3142,9 +3142,10 @@ class UserRepository extends BaseRepository
3142
                 Db::name("rrx_user_spread_change_records")->insert([
3142
                 Db::name("rrx_user_spread_change_records")->insert([
3143
                     'operation_id' => 1,
3143
                     'operation_id' => 1,
3144
                     'uid' => $uid,
3144
                     'uid' => $uid,
3145
-                    'old_spread_id' => $identity['spread_uid'],
3146
-                    'new_spread_id' => $spread['uid'],
3147
-                    'mark' => $mark ]);
3145
+                    'old_spread_id' => intval($identity['spread_uid'] ?? 0),
3146
+                    'new_spread_id' => intval($spread['uid']),
3147
+                    'mark' => $mark
3148
+                ]);
3148
                 Db::name("user")->where('account',$spread_account)->inc("spread_count",1)->update();
3149
                 Db::name("user")->where('account',$spread_account)->inc("spread_count",1)->update();
3149
                 if ($identity["spread_uid"]){
3150
                 if ($identity["spread_uid"]){
3150
                     Db::name("user")->where('uid',$identity["spread_uid"])->dec("spread_count")->update();
3151
                     Db::name("user")->where('uid',$identity["spread_uid"])->dec("spread_count")->update();