|
@@ -42,22 +42,24 @@ class UserTempForms extends Form implements LazyRenderable
|
|
|
]);
|
|
|
|
|
|
if($status == 1){
|
|
|
- $data = WxUserTemp::where('id',$id)->first();
|
|
|
- $user = (new WxUser())->find($data['user_id']);
|
|
|
- $user->user_avatar = $data['user_avatar'];
|
|
|
- $user->user_name = $data['user_name'];
|
|
|
- $user->user_introduce = $data['user_introduce'] ? $data['user_introduce']:'';
|
|
|
- $user->user_birthday = $data['user_birthday'];
|
|
|
- $user->user_background_maps = $data['user_background_maps'];
|
|
|
- $user->save();
|
|
|
|
|
|
if(!empty($data['buchong'])){
|
|
|
$condition = Conditions::where('user_id',$data['user_id'])->update([
|
|
|
'content'=>$data['buchong']
|
|
|
]);
|
|
|
+ }else{
|
|
|
+ $data = WxUserTemp::where('id',$id)->first();
|
|
|
+ $user = (new WxUser())->find($data['user_id']);
|
|
|
+ $user->user_avatar = $data['user_avatar'];
|
|
|
+ $user->user_name = $data['user_name'];
|
|
|
+ $user->user_introduce = $data['user_introduce'] ? $data['user_introduce']:'';
|
|
|
+ $user->user_birthday = $data['user_birthday'];
|
|
|
+ $user->user_background_maps = $data['user_background_maps'];
|
|
|
+ $user->save();
|
|
|
+
|
|
|
+ Cache::forget('get:cached:user:'.$user->id);
|
|
|
}
|
|
|
|
|
|
- Cache::forget('get:cached:user:'.$user->id);
|
|
|
}
|
|
|
|
|
|
return $this->response()
|