|
...
|
...
|
@@ -28,6 +28,13 @@ public class AllPostTopic implements BusinessAgreement<AllPostDto> { |
|
|
|
@Override
|
|
|
|
public AllPostDto toData(BusinessDto data) {
|
|
|
|
AllPostDto serverDto = new AllPostDto();
|
|
|
|
return serverDto.setData((JSONObject) data.getContentData());
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|