songxingwei 3 anni fa
parent
commit
bf858f6d6b
1 ha cambiato i file con 1 aggiunte e 25 eliminazioni
  1. 1 25
      application/common/model/User.php

+ 1 - 25
application/common/model/User.php

@@ -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;
     }