作者 郭鑫
1 个管道 的构建 通过 耗费 0 秒

图片上传修改

@@ -67,7 +67,10 @@ class MemberController extends CommentController @@ -67,7 +67,10 @@ class MemberController extends CommentController
67 $imgurls .= ','. $url; 67 $imgurls .= ','. $url;
68 } 68 }
69 $data['imgurls'] = ltrim($imgurls,','); 69 $data['imgurls'] = ltrim($imgurls,',');
70 - $data['httpimgurls'] = cmf_get_image_preview_url($data['imgurls'][0]); 70 + $data['httpimgurls'] = cmf_get_image_preview_url($data['imgurls']);
  71 + $a['e'] = json_encode($data['imgurls']);
  72 + $a['f'] = $data['httpimgurls'];
  73 + Db::name('Test')->insertGetId($a);
71 $this->apiResponse(1,'上传成功',$data); 74 $this->apiResponse(1,'上传成功',$data);
72 } 75 }
73 76