Compare commits
3 Commits
copilot/up
...
copilot/fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b22e438eb | ||
|
|
3dbc37471e | ||
|
|
84e70febdf |
6
.github/agents/my-agent.agent.md
vendored
6
.github/agents/my-agent.agent.md
vendored
@@ -4,10 +4,10 @@
|
|||||||
# To make this agent available, merge this file into the default repository branch.
|
# To make this agent available, merge this file into the default repository branch.
|
||||||
# For format details, see: https://gh.io/customagents/config
|
# For format details, see: https://gh.io/customagents/config
|
||||||
|
|
||||||
name: 自定义的
|
name: 全部用中文
|
||||||
description: 需要用中文
|
description: 需要用中文,包括PR标题和分析总结过程
|
||||||
---
|
---
|
||||||
|
|
||||||
# My Agent
|
# My Agent
|
||||||
|
|
||||||
请使用中文输出思考过程和总结,提交commit信息也要使用中文
|
请使用中文输出思考过程和总结,包括PR标题,提交commit信息也要使用中文
|
||||||
|
|||||||
@@ -41,11 +41,11 @@ public class WxChannelServiceOkHttpImpl extends BaseWxChannelServiceImpl<OkHttpC
|
|||||||
this.httpProxy = OkHttpProxyInfo.httpProxy(this.config.getHttpProxyHost(), this.config.getHttpProxyPort(), this.config.getHttpProxyUsername(), this.config.getHttpProxyPassword());
|
this.httpProxy = OkHttpProxyInfo.httpProxy(this.config.getHttpProxyHost(), this.config.getHttpProxyPort(), this.config.getHttpProxyUsername(), this.config.getHttpProxyPassword());
|
||||||
okhttp3.OkHttpClient.Builder clientBuilder = new okhttp3.OkHttpClient.Builder();
|
okhttp3.OkHttpClient.Builder clientBuilder = new okhttp3.OkHttpClient.Builder();
|
||||||
clientBuilder.proxy(this.getRequestHttpProxy().getProxy());
|
clientBuilder.proxy(this.getRequestHttpProxy().getProxy());
|
||||||
clientBuilder.authenticator(new Authenticator() {
|
clientBuilder.proxyAuthenticator(new Authenticator() {
|
||||||
@Override
|
@Override
|
||||||
public Request authenticate(Route route, Response response) throws IOException {
|
public Request authenticate(Route route, Response response) throws IOException {
|
||||||
String credential = Credentials.basic(WxChannelServiceOkHttpImpl.this.httpProxy.getProxyUsername(), WxChannelServiceOkHttpImpl.this.httpProxy.getProxyPassword());
|
String credential = Credentials.basic(WxChannelServiceOkHttpImpl.this.httpProxy.getProxyUsername(), WxChannelServiceOkHttpImpl.this.httpProxy.getProxyPassword());
|
||||||
return response.request().newBuilder().header("Authorization", credential).build();
|
return response.request().newBuilder().header("Proxy-Authorization", credential).build();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.httpClient = clientBuilder.build();
|
this.httpClient = clientBuilder.build();
|
||||||
|
|||||||
@@ -86,12 +86,12 @@ public class WxCpServiceOkHttpImpl extends BaseWxCpServiceImpl<OkHttpClient, OkH
|
|||||||
OkHttpClient.Builder clientBuilder = new OkHttpClient.Builder();
|
OkHttpClient.Builder clientBuilder = new OkHttpClient.Builder();
|
||||||
clientBuilder.proxy(getRequestHttpProxy().getProxy());
|
clientBuilder.proxy(getRequestHttpProxy().getProxy());
|
||||||
//设置授权
|
//设置授权
|
||||||
clientBuilder.authenticator(new Authenticator() {
|
clientBuilder.proxyAuthenticator(new Authenticator() {
|
||||||
@Override
|
@Override
|
||||||
public Request authenticate(Route route, Response response) throws IOException {
|
public Request authenticate(Route route, Response response) throws IOException {
|
||||||
String credential = Credentials.basic(httpProxy.getProxyUsername(), httpProxy.getProxyPassword());
|
String credential = Credentials.basic(httpProxy.getProxyUsername(), httpProxy.getProxyPassword());
|
||||||
return response.request().newBuilder()
|
return response.request().newBuilder()
|
||||||
.header("Authorization", credential)
|
.header("Proxy-Authorization", credential)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -108,12 +108,12 @@ public class WxCpTpServiceOkHttpImpl extends BaseWxCpTpServiceImpl<OkHttpClient,
|
|||||||
OkHttpClient.Builder clientBuilder = new OkHttpClient.Builder();
|
OkHttpClient.Builder clientBuilder = new OkHttpClient.Builder();
|
||||||
clientBuilder.proxy(getRequestHttpProxy().getProxy());
|
clientBuilder.proxy(getRequestHttpProxy().getProxy());
|
||||||
//设置授权
|
//设置授权
|
||||||
clientBuilder.authenticator(new Authenticator() {
|
clientBuilder.proxyAuthenticator(new Authenticator() {
|
||||||
@Override
|
@Override
|
||||||
public Request authenticate(Route route, Response response) throws IOException {
|
public Request authenticate(Route route, Response response) throws IOException {
|
||||||
String credential = Credentials.basic(httpProxy.getProxyUsername(), httpProxy.getProxyPassword());
|
String credential = Credentials.basic(httpProxy.getProxyUsername(), httpProxy.getProxyPassword());
|
||||||
return response.request().newBuilder()
|
return response.request().newBuilder()
|
||||||
.header("Authorization", credential)
|
.header("Proxy-Authorization", credential)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -32,12 +32,12 @@ public class WxMaServiceOkHttpImpl extends BaseWxMaServiceImpl<OkHttpClient, OkH
|
|||||||
OkHttpClient.Builder clientBuilder = new OkHttpClient.Builder();
|
OkHttpClient.Builder clientBuilder = new OkHttpClient.Builder();
|
||||||
clientBuilder.proxy(getRequestHttpProxy().getProxy());
|
clientBuilder.proxy(getRequestHttpProxy().getProxy());
|
||||||
//设置授权
|
//设置授权
|
||||||
clientBuilder.authenticator(new Authenticator() {
|
clientBuilder.proxyAuthenticator(new Authenticator() {
|
||||||
@Override
|
@Override
|
||||||
public Request authenticate(Route route, Response response) throws IOException {
|
public Request authenticate(Route route, Response response) throws IOException {
|
||||||
String credential = Credentials.basic(httpProxy.getProxyUsername(), httpProxy.getProxyPassword());
|
String credential = Credentials.basic(httpProxy.getProxyUsername(), httpProxy.getProxyPassword());
|
||||||
return response.request().newBuilder()
|
return response.request().newBuilder()
|
||||||
.header("Authorization", credential)
|
.header("Proxy-Authorization", credential)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -80,11 +80,11 @@ public class WxQidianServiceOkHttpImpl extends BaseWxQidianServiceImpl<OkHttpCli
|
|||||||
clientBuilder.proxy(getRequestHttpProxy().getProxy());
|
clientBuilder.proxy(getRequestHttpProxy().getProxy());
|
||||||
|
|
||||||
// 设置授权
|
// 设置授权
|
||||||
clientBuilder.authenticator(new Authenticator() {
|
clientBuilder.proxyAuthenticator(new Authenticator() {
|
||||||
@Override
|
@Override
|
||||||
public Request authenticate(Route route, Response response) throws IOException {
|
public Request authenticate(Route route, Response response) throws IOException {
|
||||||
String credential = Credentials.basic(httpProxy.getProxyUsername(), httpProxy.getProxyPassword());
|
String credential = Credentials.basic(httpProxy.getProxyUsername(), httpProxy.getProxyPassword());
|
||||||
return response.request().newBuilder().header("Authorization", credential).build();
|
return response.request().newBuilder().header("Proxy-Authorization", credential).build();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
httpClient = clientBuilder.build();
|
httpClient = clientBuilder.build();
|
||||||
|
|||||||
Reference in New Issue
Block a user