| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.stylefeng.guns.core.util.ObsUploadUtil; |
| | | import com.stylefeng.guns.modular.system.util.ObsUploadUtil; |
| | | import com.stylefeng.guns.modular.system.util.OssUploadUtil ; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | try { |
| | | //文件上传,具体根据实际替换 |
| | | pictureName = ObsUploadUtil.obsUpload(request, picture); |
| | | // pictureName = OssUploadUtil.ossUpload(request, picture); |
| | | |
| | | String result = "{'original': '" + picture.getOriginalFilename() + "', 'state': 'SUCCESS', 'url': '" + pictureName + "'}"; |
| | | if (callback == null) { |