Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
c9f56ab6
Commit
c9f56ab6
authored
Jul 14, 2022
by
xianjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取小程序码
parent
74ce14db
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
13 deletions
+5
-13
pom.xml
yzg-util-wxxcx/pom.xml
+0
-1
WxXcxWxaCodeGetUnlimitedRequest.java
...x/codeorlink/wxacode/WxXcxWxaCodeGetUnlimitedRequest.java
+2
-10
WxXcxWxaCodeGetUnlimitedServiceImpl.java
...ode/service/impl/WxXcxWxaCodeGetUnlimitedServiceImpl.java
+3
-2
No files found.
yzg-util-wxxcx/pom.xml
View file @
c9f56ab6
...
...
@@ -27,7 +27,6 @@
<dependency>
<groupId>
com.yanzuoguang
</groupId>
<artifactId>
yzg-util-base
</artifactId>
<version>
1.2-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
...
...
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/codeorlink/wxacode/WxXcxWxaCodeGetUnlimitedRequest.java
View file @
c9f56ab6
package
com
.
yanzuoguang
.
wxxcx
.
codeorlink
.
wxacode
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.TypeReference
;
import
com.sun.org.apache.regexp.internal.RE
;
import
com.yanzuoguang.util.helper.CheckerHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.wxxcx.base.*
;
/**
...
...
@@ -43,14 +40,9 @@ public class WxXcxWxaCodeGetUnlimitedRequest implements WxXcxRequestUrl, WxXcxRe
return
JSON
.
toJSONString
(
req
);
}
public
WxXcxWxaCodeGetUnlimitedRes
getResponse
()
{
public
byte
[]
getResponse
()
{
checkParam
(
req
);
return
this
.
wxXcxByteArrayRequest
.
request
(
this
,
response
->
{
WxXcxWxaCodeGetUnlimitedRes
ret
=
new
WxXcxWxaCodeGetUnlimitedRes
();
ret
.
setData
(
response
);
WxXcxAssert
.
assertBaseError
(
ret
);
return
ret
;
});
return
this
.
wxXcxByteArrayRequest
.
request
(
this
,
response
->
response
);
}
private
void
checkParam
(
WxXcxWxaCodeGetUnlimitedReq
req
)
{
...
...
yzg-util-wxxcx/src/main/java/com/yanzuoguang/wxxcx/codeorlink/wxacode/service/impl/WxXcxWxaCodeGetUnlimitedServiceImpl.java
View file @
c9f56ab6
...
...
@@ -3,7 +3,6 @@ package com.yanzuoguang.wxxcx.codeorlink.wxacode.service.impl;
import
com.yanzuoguang.wxxcx.base.WxXcxAccessToken
;
import
com.yanzuoguang.wxxcx.base.WxXcxByteArrayRequest
;
import
com.yanzuoguang.wxxcx.base.WxXcxConfig
;
import
com.yanzuoguang.wxxcx.base.WxXcxRequest
;
import
com.yanzuoguang.wxxcx.codeorlink.wxacode.WxXcxWxaCodeGetUnlimitedReq
;
import
com.yanzuoguang.wxxcx.codeorlink.wxacode.WxXcxWxaCodeGetUnlimitedRequest
;
import
com.yanzuoguang.wxxcx.codeorlink.wxacode.WxXcxWxaCodeGetUnlimitedRes
;
...
...
@@ -35,6 +34,8 @@ public class WxXcxWxaCodeGetUnlimitedServiceImpl implements WxXcxWxaCodeGetUnlim
@Override
public
WxXcxWxaCodeGetUnlimitedRes
getWxaCodeGetUnlimited
(
WxXcxAccessToken
accessToken
,
WxXcxWxaCodeGetUnlimitedReq
req
)
{
WxXcxWxaCodeGetUnlimitedRequest
request
=
new
WxXcxWxaCodeGetUnlimitedRequest
(
wxXcxConfig
,
wxXcxByteArrayRequest
,
accessToken
,
req
);
return
request
.
getResponse
();
WxXcxWxaCodeGetUnlimitedRes
res
=
new
WxXcxWxaCodeGetUnlimitedRes
();
res
.
setData
(
request
.
getResponse
());
return
res
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment