|
|
|
@@ -74,13 +74,14 @@ public class DmStaffInnerApiController extends BaseApiController { |
|
|
|
@ResponseBody |
|
|
|
public com.alibaba.fastjson2.JSONObject newStaff(@RequestBody DmStaffCommonDto commonDto){ |
|
|
|
//访客 |
|
|
|
if (commonDto.getStaffType().equals(DmStaffCommonDto.TYPE_STRANGER)) { |
|
|
|
if (commonDto.getStaffType().equals(DmStaffCommonDto.TYPE_STRANGER) || commonDto.getStaffType().equals(DmStaffCommonDto.TYPE_VIP_STRANGER)) { |
|
|
|
|
|
|
|
DmVisitorsPo v = new DmVisitorsPo(); |
|
|
|
v.setName(commonDto.getStaffName()); |
|
|
|
v.setNickname(commonDto.getStaffName()); |
|
|
|
v.setType(DmVisitorsDto.TYPE_NORMAL_VISITOR); |
|
|
|
v.setGender(commonDto.getGender()); |
|
|
|
v.setType(Long.parseLong(commonDto.getStaffType())); |
|
|
|
|
|
|
|
//兼容熟人介绍生人,传递访客照片 |
|
|
|
if (StringUtils.isNotEmpty(commonDto.getStaffBase64Img())) { |
|
|
|
|