cleanup with findbugs plugin
This commit is contained in:
parent
205d9c4ee3
commit
ce653e049d
@ -131,7 +131,7 @@ public class CashApi extends MchApi {
|
||||
*
|
||||
* @param certificate
|
||||
* 后缀为*.p12的证书文件
|
||||
* @param mpPayment
|
||||
* @param payment
|
||||
* 付款信息
|
||||
* @return 付款结果
|
||||
* @see com.foxinmy.weixin4j.payment.mch.CorpPayment
|
||||
|
||||
@ -28,7 +28,7 @@ public abstract class HttpClientFactory {
|
||||
private static volatile HttpClientFactory defaultFactory = newDefaultFactory();
|
||||
|
||||
/**
|
||||
* NettyHttpClient -> ApacheHttpClient ->
|
||||
* NettyHttpClient -> ApacheHttpClient(HttpComponent3&4) ->
|
||||
* SimpleHttpClient(HttpURLConnection)
|
||||
*
|
||||
* @return
|
||||
|
||||
@ -804,7 +804,7 @@ public class WeixinPayProxy {
|
||||
/**
|
||||
* 企业付款
|
||||
*
|
||||
* @see {@link #senCorpPayment(InputStream, CorpPayment)}
|
||||
* @see {@link #sendCorpPayment(InputStream, CorpPayment)}
|
||||
*/
|
||||
public CorpPaymentResult sendCorpPayment(CorpPayment payment) throws WeixinException, IOException {
|
||||
return cashApi.sendCorpPayment(new FileInputStream(settings.getCertificateFile0()), payment);
|
||||
|
||||
@ -34,7 +34,7 @@ import com.foxinmy.weixin4j.mp.model.Group;
|
||||
import com.foxinmy.weixin4j.mp.model.KfAccount;
|
||||
import com.foxinmy.weixin4j.mp.model.KfChatRecord;
|
||||
import com.foxinmy.weixin4j.mp.model.KfSession;
|
||||
import com.foxinmy.weixin4j.mp.model.KfSession.kfSessionCounter;
|
||||
import com.foxinmy.weixin4j.mp.model.KfSession.KfSessionCounter;
|
||||
import com.foxinmy.weixin4j.mp.model.Menu;
|
||||
import com.foxinmy.weixin4j.mp.model.MenuMatchRule;
|
||||
import com.foxinmy.weixin4j.mp.model.MenuSetting;
|
||||
@ -717,12 +717,12 @@ public class WeixinProxy {
|
||||
* @throws WeixinException
|
||||
* @see com.foxinmy.weixin4j.mp.api.CustomApi
|
||||
* @see com.foxinmy.weixin4j.mp.model.KfSession
|
||||
* @see com.foxinmy.weixin4j.mp.model.KfSession.kfSessionCounter
|
||||
* @see com.foxinmy.weixin4j.mp.model.KfSession.KfSessionCounter
|
||||
* @see <a href=
|
||||
* "https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1458044820&token=&lang=zh_CN">
|
||||
* 获取客服的会话列表</a>
|
||||
*/
|
||||
public kfSessionCounter listKfWaitSession() throws WeixinException {
|
||||
public KfSessionCounter listKfWaitSession() throws WeixinException {
|
||||
return customApi.listKfWaitSession();
|
||||
}
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ import com.foxinmy.weixin4j.model.Token;
|
||||
import com.foxinmy.weixin4j.mp.model.KfAccount;
|
||||
import com.foxinmy.weixin4j.mp.model.KfChatRecord;
|
||||
import com.foxinmy.weixin4j.mp.model.KfSession;
|
||||
import com.foxinmy.weixin4j.mp.model.KfSession.kfSessionCounter;
|
||||
import com.foxinmy.weixin4j.mp.model.KfSession.KfSessionCounter;
|
||||
import com.foxinmy.weixin4j.token.TokenHolder;
|
||||
import com.foxinmy.weixin4j.util.DigestUtil;
|
||||
import com.foxinmy.weixin4j.util.FileUtil;
|
||||
@ -358,17 +358,17 @@ public class CustomApi extends MpApi {
|
||||
* @return 会话列表
|
||||
* @throws WeixinException
|
||||
* @see com.foxinmy.weixin4j.mp.model.KfSession
|
||||
* @see com.foxinmy.weixin4j.mp.model.KfSession.kfSessionCounter
|
||||
* @see com.foxinmy.weixin4j.mp.model.KfSession.KfSessionCounter
|
||||
* @see <a href=
|
||||
* "https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1458044820&token=&lang=zh_CN">
|
||||
* 获取客服的会话列表</a>
|
||||
*/
|
||||
public kfSessionCounter listKfWaitSession() throws WeixinException {
|
||||
public KfSessionCounter listKfWaitSession() throws WeixinException {
|
||||
Token token = tokenHolder.getToken();
|
||||
String kfsession_wait_uri = getRequestUri("kfsession_wait_uri");
|
||||
WeixinResponse response = weixinExecutor.get(String.format(kfsession_wait_uri, token.getAccessToken()));
|
||||
|
||||
return response.getAsObject(new TypeReference<kfSessionCounter>() {
|
||||
return response.getAsObject(new TypeReference<KfSessionCounter>() {
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -83,7 +83,7 @@ public class KfSession implements Serializable {
|
||||
* @since JDK 1.6
|
||||
* @see
|
||||
*/
|
||||
public static class kfSessionCounter implements Iterable<KfSession>, Serializable {
|
||||
public static class KfSessionCounter implements Iterable<KfSession>, Serializable {
|
||||
|
||||
private static final long serialVersionUID = -2200434961546270829L;
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ import com.foxinmy.weixin4j.mp.api.CustomApi;
|
||||
import com.foxinmy.weixin4j.mp.model.KfAccount;
|
||||
import com.foxinmy.weixin4j.mp.model.KfChatRecord;
|
||||
import com.foxinmy.weixin4j.mp.model.KfSession;
|
||||
import com.foxinmy.weixin4j.mp.model.KfSession.kfSessionCounter;
|
||||
import com.foxinmy.weixin4j.mp.model.KfSession.KfSessionCounter;
|
||||
|
||||
/**
|
||||
* 客服消息测试
|
||||
@ -116,7 +116,7 @@ public class CustomTest extends TokenTest {
|
||||
|
||||
@Test
|
||||
public void getSessionWaitList() throws WeixinException {
|
||||
kfSessionCounter sessionCounter = customApi.listKfWaitSession();
|
||||
KfSessionCounter sessionCounter = customApi.listKfWaitSession();
|
||||
System.err.println(sessionCounter);
|
||||
}
|
||||
}
|
||||
|
||||
@ -154,7 +154,7 @@ public class WeixinProxy {
|
||||
* 注意:TokenCreator 需为
|
||||
* <font color="red">WeixinTokenCreator或WeixinTokenSuiteCreator</font>
|
||||
*
|
||||
* @see com.foxinmy.weixin4j.qy.token.WeixinTokenCreator.WeixinTokenCreator
|
||||
* @see com.foxinmy.weixin4j.qy.token.WeixinTokenCreator
|
||||
* @param tokenHolder
|
||||
*/
|
||||
private WeixinProxy(TokenHolder tokenHolder) {
|
||||
@ -716,7 +716,7 @@ public class WeixinProxy {
|
||||
* @see com.foxinmy.weixin4j.qy.api.UserApi
|
||||
* @return 成员对象
|
||||
* @see {@link #getUser(String)}
|
||||
* @see {@link #getUserIdByCode(String,int)}
|
||||
* @see {@link #getUserIdByCode(String)}
|
||||
* @see <a href=
|
||||
* "http://qydev.weixin.qq.com/wiki/index.php?title=%E4%BC%81%E4%B8%9A%E8%8E%B7%E5%8F%96code">
|
||||
* 企业获取code</a>
|
||||
@ -775,7 +775,7 @@ public class WeixinProxy {
|
||||
*
|
||||
* @param partyId
|
||||
* 部门ID
|
||||
* @see {@link #listUser(int, boolean,UserStatus)}
|
||||
* @see {@link #listUser(int, boolean, UserStatus, boolean)}
|
||||
* @see com.foxinmy.weixin4j.qy.api.UserApi
|
||||
* @return 成员列表
|
||||
* @throws WeixinException
|
||||
|
||||
@ -173,7 +173,7 @@ public class UserApi extends QyApi {
|
||||
* @see com.foxinmy.weixin4j.qy.model.User
|
||||
* @return 成员对象
|
||||
* @see {@link #getUser(String)}
|
||||
* @see {@link #getUserIdByCode(String,int)}
|
||||
* @see {@link #getUserIdByCode(String)}
|
||||
* @see <a href=
|
||||
* "http://qydev.weixin.qq.com/wiki/index.php?title=OAuth%E9%AA%8C%E8%AF%81%E6%8E%A5%E5%8F%A3">
|
||||
* oauth授权获取用户信息</a>
|
||||
@ -295,7 +295,7 @@ public class UserApi extends QyApi {
|
||||
*
|
||||
* @param partyId
|
||||
* 部门ID
|
||||
* @see {@link #listUser(int, boolean,UserStatus)}
|
||||
* @see {@link #listUser(int, boolean, UserStatus,boolean)}
|
||||
* @return 成员列表
|
||||
* @throws WeixinException
|
||||
*/
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
package com.foxinmy.weixin4j.server.test;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import org.springframework.context.ApplicationContext;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
import com.foxinmy.weixin4j.dispatcher.BeanFactory;
|
||||
import com.foxinmy.weixin4j.exception.WeixinException;
|
||||
import com.foxinmy.weixin4j.handler.DebugMessageHandler;
|
||||
@ -167,6 +167,6 @@ public class MessageServerStartup {
|
||||
* @throws Exception
|
||||
*/
|
||||
public static void main(String[] args) throws Exception {
|
||||
new MessageServerStartup().test1();
|
||||
new MessageServerStartup().test2();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user