leon 5 år sedan
förälder
incheckning
fbbc5b7236

+ 0 - 4
src/main/java/com/mokamrp/privates/controller/pangu/FosterwxStationController.java

@@ -65,10 +65,6 @@ public class FosterwxStationController extends BaseController<FosterwxStation> {
             return AjaxResult.error(HttpStatus.ERROR, bindingResult.getFieldError().getDefaultMessage());
         }
         this.onUpdate(editHandle);
-        String boxShareUrl = editHandle.getRaw().getBoxShareUrl();
-        if (boxShareUrl != null && !boxShareUrl.isEmpty()){
-            editHandle.getRaw().setBoxShareUrl(fosterwxStationService.makeBoxShareUrl(boxShareUrl,editHandle.getIds(),editHandle.getRaw().getStationName()));
-        }
         service.update(editHandle.getRaw(), new QueryWrapper<FosterwxStation>().in("id", editHandle.getIds()));
         return AjaxResult.success(Constants.SUCCESS, true);
     }

+ 1 - 1
src/main/java/com/mokamrp/privates/service/impl/WechatApiServiceImpl.java

@@ -36,7 +36,7 @@ public class WechatApiServiceImpl implements WechatApiService {
         body.put("page",page);
         String jsonStr = JSON.toJSONString(body);
         String qrcodeStr = HttpUtils.sendPost(wechatApi+url,jsonStr,"utf-8");
-        byte[] imageB = qrcodeStr.getBytes(StandardCharsets.UTF_16);
+        byte[] imageB = qrcodeStr.getBytes();
         InputStream is = new ByteArrayInputStream(imageB);
         String ossUrl = fileService.uploadIsToOss(is,".png");
         return ossUrl;