|
|
@@ -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();
|