|
@@ -1204,12 +1204,19 @@ public class BizUserServiceImpl extends ServiceImpl<BizUserMapper, BizUser> impl
|
|
|
|
|
|
try {
|
|
|
//服务器linux环境地址,如果是windows环境使用windows环境地址
|
|
|
- File localFile = new File("/defaultUploadFolder/recommend");
|
|
|
+ String path = "/defaultUploadFolder/recommend";
|
|
|
+ if(StringUtils.equals(devConfigApi.getValueByKey("SNOWY_RECOMMEND_CONFIG"),"linux")){
|
|
|
+ path = "/defaultUploadFolder/recommend";
|
|
|
+ }else{
|
|
|
+ path = "D:/defaultUploadFolder/recommend";
|
|
|
+ }
|
|
|
+
|
|
|
+ File localFile = new File(path);
|
|
|
if(!localFile.exists()) {
|
|
|
localFile.mkdir();
|
|
|
}
|
|
|
|
|
|
- String localPath = "/defaultUploadFolder/recommend/" + code + ".png";
|
|
|
+ String localPath = path +"/"+ code + ".png";
|
|
|
InputStream inputStream = WxUtil.postInputStream(url, paramJson);
|
|
|
int index;
|
|
|
byte[] bytes = new byte[1024];
|