|
|
@ -14,6 +14,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.codec.digest.DigestUtils;
|
|
|
|
import org.apache.commons.codec.digest.DigestUtils;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
@ -41,6 +42,8 @@ public class CustomerServiceServiceImpl implements CustomerServiceService {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private SysCustomerServiceMapper sysCustomerServiceMapper;
|
|
|
|
private SysCustomerServiceMapper sysCustomerServiceMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${im.openim.appkey}")
|
|
|
|
|
|
|
|
private String appkey;
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public JSONObject checkAndSave(JSONObject account) {
|
|
|
|
public JSONObject checkAndSave(JSONObject account) {
|
|
|
|
JSONObject client = null;
|
|
|
|
JSONObject client = null;
|
|
|
@ -68,6 +71,7 @@ public class CustomerServiceServiceImpl implements CustomerServiceService {
|
|
|
|
saveRecord.put("user_id", uid);
|
|
|
|
saveRecord.put("user_id", uid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
openimApi.addUser(saveRecord);
|
|
|
|
openimApi.addUser(saveRecord);
|
|
|
|
|
|
|
|
saveRecord.put("appkey",appkey);
|
|
|
|
return saveRecord;
|
|
|
|
return saveRecord;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|