Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4208fb95
authored
Nov 22, 2021
by
danmo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改活码修改接口bug
1 parent
92dc67e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/query/qr/WeQrAddQuery.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/query/qr/WeQrAddQuery.java
View file @
4208fb9
...
@@ -34,6 +34,9 @@ public class WeQrAddQuery {
...
@@ -34,6 +34,9 @@ public class WeQrAddQuery {
@ApiModelProperty
(
"活码Id"
)
@ApiModelProperty
(
"活码Id"
)
private
Long
qrId
;
private
Long
qrId
;
@ApiModelProperty
(
"活码Id"
)
private
String
configId
;
@ApiModelProperty
(
"名称"
)
@ApiModelProperty
(
"名称"
)
@NotEmpty
(
message
=
"活码名称不能为空"
)
@NotEmpty
(
message
=
"活码名称不能为空"
)
private
String
qrName
;
private
String
qrName
;
...
@@ -73,12 +76,13 @@ public class WeQrAddQuery {
...
@@ -73,12 +76,13 @@ public class WeQrAddQuery {
* @return 企微接口参数实体类
* @return 企微接口参数实体类
*/
*/
public
WeExternalContactDto
.
WeContactWay
getWeContactWay
()
{
public
WeExternalContactDto
.
WeContactWay
getWeContactWay
()
{
Snowflake
snowflake
=
IdUtil
.
getSnowflake
(
RandomUtil
.
randomLong
(
6
),
RandomUtil
.
randomInt
(
6
));
this
.
state
=
snowflake
.
nextIdStr
();
WeExternalContactDto
.
WeContactWay
weContactWay
=
new
WeExternalContactDto
.
WeContactWay
();
WeExternalContactDto
.
WeContactWay
weContactWay
=
new
WeExternalContactDto
.
WeContactWay
();
//根据类型生成相应的活码
//根据类型生成相应的活码
if
(
this
.
qrId
==
null
){
if
(
this
.
qrId
==
null
){
Snowflake
snowflake
=
IdUtil
.
getSnowflake
(
RandomUtil
.
randomLong
(
6
),
RandomUtil
.
randomInt
(
6
));
this
.
state
=
snowflake
.
nextIdStr
();
weContactWay
.
setState
(
WeConstans
.
WE_QR_CODE_PREFIX
+
"_"
+
state
);
weContactWay
.
setState
(
WeConstans
.
WE_QR_CODE_PREFIX
+
"_"
+
state
);
weContactWay
.
setConfig_id
(
this
.
configId
);
}
}
weContactWay
.
setType
(
this
.
qrType
);
weContactWay
.
setType
(
this
.
qrType
);
weContactWay
.
setScene
(
WeConstans
.
QR_CODE_EMPLE_CODE_SCENE
);
weContactWay
.
setScene
(
WeConstans
.
QR_CODE_EMPLE_CODE_SCENE
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment