|
|
|
@ -18,6 +18,7 @@ import com.taobao.api.response.OpenimUsersUpdateResponse;
|
|
|
|
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
@ -29,9 +30,13 @@ import java.util.List;
|
|
|
|
|
*/
|
|
|
|
|
@Service
|
|
|
|
|
public class OpenimClient {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
|
|
private final String appkey = "24960261";
|
|
|
|
|
private final String secret = "7639427973bd671be15c9d0c1e9c90b4";
|
|
|
|
|
@Value("${im.openim.appkey}")
|
|
|
|
|
private String appkey;
|
|
|
|
|
@Value("${im.openim.secret}")
|
|
|
|
|
private String secret;
|
|
|
|
|
// private final String appkey = "24962653";
|
|
|
|
|
// private final String secret = "1c1a1320c4e6f24df24e3fe41c3fc00a";
|
|
|
|
|
private final String url = "https://eco.taobao.com/router/rest";
|
|
|
|
|