作者 钟来

初始提交

... ... @@ -28,6 +28,13 @@ public class AllPostTopic implements BusinessAgreement<AllPostDto> {
@Override
public AllPostDto toData(BusinessDto data) {
AllPostDto serverDto = new AllPostDto();
if(data.getContentData() instanceof JSONObject)
{
return serverDto.setData((JSONObject) data.getContentData());
}else if(data.getContentData() instanceof byte[])
{
return serverDto.setData(JSONObject.parseObject(new String((byte[]) data.getContentData())));
}
return null;
}
}
... ...