From 1bab9c44231e4422009d4ed7267c09ebf81bdf70 Mon Sep 17 00:00:00 2001 From: kira <164851225@qq.com> Date: Mon, 23 Jul 2018 10:15:53 +0800 Subject: [PATCH] add openim application --- .../payment/manage/openim/core/OpenimClient.java | 9 +++++++-- src/main/resources/application.properties | 5 +++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/openim/core/OpenimClient.java b/src/main/java/au/com/royalpay/payment/manage/openim/core/OpenimClient.java index 848d3d8d7..c31e0d627 100644 --- a/src/main/java/au/com/royalpay/payment/manage/openim/core/OpenimClient.java +++ b/src/main/java/au/com/royalpay/payment/manage/openim/core/OpenimClient.java @@ -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"; diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index a5ac9569e..08a52b830 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -112,6 +112,11 @@ mail.mailgun.default.merchantlist=merchants@mail.royalpay.com.au royalpay.sms.appid=1400094878 royalpay.sms.appkey=43390d81e20c5191c278fbf4cd275be2 +im.openim.appkey=24960261 +im.openim.secret=7639427973bd671be15c9d0c1e9c90b4 + +#im.openim.appkey=24962653 +#im.openim.secret=1c1a1320c4e6f24df24e3fe41c3fc00a #清算银行配置 settle.abafile.default-bank=CBA