|
@@ -393,7 +393,7 @@ public class SocialServiceImpl implements SocialServiceI {
|
393
|
393
|
* @throws IOException
|
394
|
394
|
*/
|
395
|
395
|
private void insertTdImage(TpTransaction tpTransaction, String imageUrl, Integer userId, String type) {
|
396
|
|
- if (null == imageUrl || "".equals(imageUrl)) {
|
|
396
|
+ if (null == imageUrl || "".equals(imageUrl) || "[]".equals(imageUrl) ) {
|
397
|
397
|
return;
|
398
|
398
|
}
|
399
|
399
|
String[] imgArr = imageUrl.split(",");
|
|
@@ -584,6 +584,10 @@ public class SocialServiceImpl implements SocialServiceI {
|
584
|
584
|
ResponseBean response = new ResponseBean();
|
585
|
585
|
JSONObject object = JSONObject.parseObject(paramets);
|
586
|
586
|
Integer state = object.getInteger("state");
|
|
587
|
+ int current = 0;
|
|
588
|
+ if (null !=state){
|
|
589
|
+ current = state.intValue();
|
|
590
|
+ }
|
587
|
591
|
TpUser tpUser = tpUserMapper.selectLoginName(userElement.getLoginName(),userElement.getCommunityId());
|
588
|
592
|
JSONArray array = object.getJSONArray("imgArr");
|
589
|
593
|
String[] reply = null;
|
|
@@ -594,7 +598,6 @@ public class SocialServiceImpl implements SocialServiceI {
|
594
|
598
|
|
595
|
599
|
TpTransactionReply tpTransactionReply = JSONObject.parseObject(paramets, TpTransactionReply.class);
|
596
|
600
|
// 我1时代表物业端身份评论
|
597
|
|
- int current = state.intValue();
|
598
|
601
|
if (1==current){
|
599
|
602
|
tpTransactionReply.setCommunityId(userElement.getCommunityId());
|
600
|
603
|
tpTransactionReply.setUuid( tpUser.getId());
|