正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
@@ -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 |
-
请 注册 或 登录 后发表评论