|
@@ -1602,31 +1602,7 @@ class User Extends Model
|
|
|
*/
|
|
|
public static function getUserInfo($id){
|
|
|
$info = self::where('id',$id)->field('password',true)->find();
|
|
|
- if (!$info['skills_label']){
|
|
|
- $info['skills_label'] = [];
|
|
|
- }else{
|
|
|
- $info['skills_label'] = explode(',', $info['skills_label']);
|
|
|
- }
|
|
|
- if (!$info['good_type']){
|
|
|
- $info['good_type'] = [];
|
|
|
- }else{
|
|
|
- $info['good_type'] = explode(',', $info['good_type']);
|
|
|
- }
|
|
|
- if (!$info['good_style']){
|
|
|
- $info['good_style'] = [];
|
|
|
- }else{
|
|
|
- $info['good_style'] = explode(',', $info['good_style']);
|
|
|
- }
|
|
|
- if (!$info['related_certificate']){
|
|
|
- $info['related_certificate'] = [];
|
|
|
- }else{
|
|
|
- $info['related_certificate'] = explode(',', $info['related_certificate']);
|
|
|
- }
|
|
|
- if (!$info['works']){
|
|
|
- $info['works'] = [];
|
|
|
- }else{
|
|
|
- $info['works'] = explode(',', $info['works']);
|
|
|
- }
|
|
|
+
|
|
|
return $info;
|
|
|
}
|
|
|
|