| | |
| | | import cn.hutool.http.HttpUtil; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.ruoyi.account.util.ObsUploadUtil; |
| | | import com.ruoyi.common.redis.service.RedisService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.codec.binary.Base64; |
| | |
| | | */ |
| | | public String getwxacodeunlimit(String page, String scene, EnvVersion env_version, String filePath){ |
| | | InputStream getwxacodeunlimit = getwxacodeunlimit(page, scene, env_version); |
| | | File file = FileUtil.writeFromStream(getwxacodeunlimit, new File(filePath)); |
| | | return file.getPath(); |
| | | // File file = FileUtil.writeFromStream(getwxacodeunlimit, new File(filePath)); |
| | | // return file.getPath(); |
| | | return ObsUploadUtil.obsUpload("png", getwxacodeunlimit); |
| | | } |
| | | } |