소스 검색

提交数据

lvhao 3 일 전
부모
커밋
150a0d8426
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 10 1
      core/CoreApp/controllers/Lyerpapi/v1/Thdj.php

+ 10 - 1
core/CoreApp/controllers/Lyerpapi/v1/Thdj.php

@@ -66,7 +66,16 @@ class Thdj extends Lyapi_Controller{
         if(empty($info)){
             $this->_json_error('未查询此快递相关的退货登记信息'.$torderinfo,'500');
         }
-        $img_str = implode('|', $img);
+        $img_list = [];
+        foreach($img as $k=>$v){
+            if(is_string($v)){
+                $img_str = str_replace($this->show_url, '', $v);
+            }else{
+                $img_str = str_replace($this->show_url, '', $v['url']);
+            }
+            $img_list[] = $img_str;
+        }
+        $img_str = implode('|', $img_list);
         $r = $this->returns->save([
             'img'=>$img_str,
         ],$info['id']);