|
|
@@ -16,11 +16,14 @@ class User extends BaseModel
|
|
|
if (isset($data['id_card_img']) && $data['id_card_img']) {
|
|
|
$array = [];
|
|
|
$idCardImg = json_decode($data['id_card_img'], true);
|
|
|
- foreach ($idCardImg as $item) {
|
|
|
- $array[] = [
|
|
|
- 'url' => $item
|
|
|
- ];
|
|
|
+ if($idCardImg){
|
|
|
+ foreach ($idCardImg as $item) {
|
|
|
+ $array[] = [
|
|
|
+ 'url' => $item
|
|
|
+ ];
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
return $array;
|
|
|
}
|
|
|
return [];
|