接口返回的图片地址有问题,到底是为什么呢?
来源:8-3 商户入驻申请-图片上传处理
![](http://img1.sycdn.imooc.com/user/5333a01a0001ee5302000200-100-100.jpg)
慕粉4304192
2017-05-22
为什么会返回错误呢file = Request::instance()->file('file'); // 给定一个目录 $info = $file->move('upload'); if($info && $info->getPathname()) { return show(1, 'success','/'.$info->getPathname()); } return show(0,'upload error');
{"status":1,"message":"success","data":"\/upload\\20170523\\b04bfab39a5c098c8b033370e2703b16.jpg"}
为什么他不去找public下的 upload
写回答
2回答
-
慕粉4304192
提问者
2017-05-23
{"status":1,"message":"success","data":"\/upload\\20170523\\b04bfab39a5c098c8b033370e2703b16.jpg"}
00 -
singwa
2017-05-22
您您好,定位到你的接口response下 看看接口返回什么内容 或者报什么错误
022017-05-23
相似问题