Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
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
haoban3.0
haoban-manage3.0
Commits
99d10a66
Commit
99d10a66
authored
Jan 06, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
画布
parent
6a8d77fd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
14 deletions
+10
-14
MaterialDTO.java
.../main/java/com/gic/haoban/manage/api/dto/MaterialDTO.java
+0
-12
MaterialServiceImpl.java
...oban/manage/service/service/impl/MaterialServiceImpl.java
+9
-1
QywxSendServiceImpl.java
...oban/manage/service/service/impl/QywxSendServiceImpl.java
+1
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/MaterialDTO.java
View file @
99d10a66
...
...
@@ -44,19 +44,7 @@ public class MaterialDTO implements Serializable{
private
String
fromMaterialId
=
"-1"
;
//appid link路径 img_url 封面图 materialTitle
private
String
appId
;
/**
* 画布-群发-卡券素材ID
*/
private
String
canvasCouponUUID
;
public
String
getCanvasCouponUUID
()
{
return
canvasCouponUUID
;
}
public
void
setCanvasCouponUUID
(
String
canvasCouponUUID
)
{
this
.
canvasCouponUUID
=
canvasCouponUUID
;
}
private
static
final
long
serialVersionUID
=
1L
;
public
String
getMediaid
()
{
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/MaterialServiceImpl.java
View file @
99d10a66
...
...
@@ -307,7 +307,12 @@ public class MaterialServiceImpl implements MaterialService {
imageList
.
forEach
(
dto
->
{
String
imageUrl
=
dto
.
getImgUrl
();
int
type
=
dto
.
getMaterialType
();
String
md5
=
Md5Util
.
MD5
(
imageUrl
+
type
);
String
md5
=
null
;
if
(
type
==
7
)
{
md5
=
Md5Util
.
MD5
(
imageUrl
+
type
+
dto
.
getCanvasCouponUUID
());
}
else
{
md5
=
Md5Util
.
MD5
(
imageUrl
+
type
);
}
TabMaterialContent
tab
=
this
.
materialContentMapper
.
selectByUrl
(
wxEnterpriseId
,
md5
,
mediaType
);
if
(
null
!=
tab
)
{
Integer
materialType
=
tab
.
getMaterialType
();
...
...
@@ -329,6 +334,9 @@ public class MaterialServiceImpl implements MaterialService {
tab
.
setAppid
(
dto
.
getAppid
());
tab
.
setMaterialTitle
(
dto
.
getMaterialTitle
());
tab
.
setLink
(
dto
.
getLink
());
if
(
mediaType
==
7
)
{
tab
.
setLink
(
dto
.
getCanvasCouponUUID
());
}
this
.
materialContentMapper
.
insert
(
tab
);
materialIdList
.
add
(
id
);
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/QywxSendServiceImpl.java
View file @
99d10a66
...
...
@@ -253,7 +253,7 @@ public class QywxSendServiceImpl implements QywxSendService {
Long
clerkTaskTime
=
canvas
.
getTaskTime
();
String
clerkId
=
canvas
.
getClerkId
()
;
if
(
materialType
==
7
)
{
String
unid
=
material
.
get
CanvasCouponUUID
()
;
String
unid
=
material
.
get
Link
()
;
String
str
=
"{\"canvasCouponUUID\":\""
+
unid
+
"\",\"id\":48,\"url\":\"/pages/member-center/coupon/coupon-group-get/coupon-group-get?execLogId="
+
execLogId
+
"&canvasId="
+
canvasId
+
"&time="
+
clerkTaskTime
+
"&nodeId="
+
nodeId
+
"\"}"
;
EnterpriseWxaRelationDTO
en
=
this
.
enterpriseService
.
getByWxappkey
(
material
.
getAppId
())
;
//Map<String, Object> map = this.enterpriseWxaLinkService.getWxaLinkAndQrCodeWithChannelAndSceneOfNotUrl(en.getEnterpriseId(),str,canvasId+"","canvas",nodeId+"_"+execLogId+"_"+clerkTaskTime+"_"+clerkId) ;
...
...
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