数据来源切换为多选
continuous-integration/drone/push Build is passing Details

报错信息调整
于相涌/robot_optimize
YXY 1 year ago
parent 5c022df8a8
commit ffe7e238f2

@ -1,5 +1,6 @@
package com.ruoyi.flyingbook.LarkHelper;
import com.alibaba.fastjson.JSONObject;
import com.lark.oapi.service.bitable.v1.model.*;
import com.ruoyi.flyingbook.domain.lark.LarkTableRequest;
import lombok.extern.slf4j.Slf4j;
@ -135,7 +136,10 @@ public class LarkTableHelper extends LarkHelper{
throw new RuntimeException(createAppTableRecordResp.getMsg());
}
} catch (Exception e) {
throw new RuntimeException(e.getMessage());
Map<String,String> resultMap = new HashMap<>();
resultMap.put("errorCode",e.getMessage());
resultMap.put("info", JSONObject.toJSONString(request));
throw new RuntimeException(JSONObject.toJSONString(resultMap));
}
}

@ -130,7 +130,7 @@ public class MailHelper {
contentStr = contentStr.substring(0,content.indexOf("<div"));
}
Map<String, Object> body = this.buildBody(message, contentStr);
body.put("数据来源",sourceName);
body.put("数据来源",Arrays.asList(sourceName));
body.put("数据时间",this.getReceiveDate(message));
body.put("备注",contentStr);
add.setBody(body);

Loading…
Cancel
Save