Ver Fonte

Wesmiler OTC 提交更新 0729

APPLE há 3 anos atrás
pai
commit
3d7f5bb99f
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      app/Services/Common/UserService.php

+ 2 - 2
app/Services/Common/UserService.php

@@ -434,14 +434,14 @@ class UserService extends BaseService
 
         if (isset($param['idcard_hand_img']) && strpos($param['idcard_hand_img'], "temp")) {
             $data['idcard_hand_img'] = save_image($param['idcard_hand_img'], 'member');
-        } else {
+        } else if(isset($param['idcard_hand_img'])){
             $image = $param['idcard_hand_img']? explode('/uploads', $param['idcard_hand_img']) : [];
             $data['idcard_hand_img'] = isset($image[1])? $image[1] : '';
         }
 
         if (isset($param['credit_score_img']) && strpos($param['credit_score_img'], "temp")) {
             $data['credit_score_img'] = save_image($param['credit_score_img'], 'member');
-        } else {
+        } else if(isset($param['credit_score_img'])){
             $image = $param['credit_score_img']? explode('/uploads', $param['credit_score_img']) : [];
             $data['credit_score_img'] = isset($image[1])? $image[1] : '';
         }