Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
Aidea
Project
Project
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
sa_aidea
Aidea
Commits
f3c50fdb
Commit
f3c50fdb
authored
Sep 22, 2020
by
谢希宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init aidea products by 20200922
parent
d62d8733
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
54 deletions
+2
-54
GiftboxController.java
...va/com/cftech/activity/giftbox/web/GiftboxController.java
+0
-2
CoreService.java
...rc/main/java/com/cftech/mp/reply/service/CoreService.java
+1
-1
MobileWechatController.java
.../java/com/cftech/mp/reply/web/MobileWechatController.java
+1
-51
No files found.
activity-modules/activity-giftbox-module/src/main/java/com/cftech/activity/giftbox/web/GiftboxController.java
View file @
f3c50fdb
...
@@ -48,8 +48,6 @@ public class GiftboxController {
...
@@ -48,8 +48,6 @@ public class GiftboxController {
@Autowired
@Autowired
private
GiftboxService
giftboxService
;
private
GiftboxService
giftboxService
;
//列表页面
//列表页面
@RequiresPermissions
(
value
=
GIFTBOX_VIEW
)
@RequiresPermissions
(
value
=
GIFTBOX_VIEW
)
@RequestMapping
(
value
=
"/list"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
@RequestMapping
(
value
=
"/list"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
...
...
mp-modules/mp-message-module/src/main/java/com/cftech/mp/reply/service/CoreService.java
View file @
f3c50fdb
...
@@ -129,7 +129,7 @@ public class CoreService {
...
@@ -129,7 +129,7 @@ public class CoreService {
private
ExhibiService
exhibiService
;
private
ExhibiService
exhibiService
;
/**
/**
*
AO
拦截的请求处理返回消息信息
* 拦截的请求处理返回消息信息
*
*
* @param request
* @param request
* @return update mubo 2017.04.09(修改消费者服务号部署回调客服)
* @return update mubo 2017.04.09(修改消费者服务号部署回调客服)
...
...
mp-modules/mp-message-module/src/main/java/com/cftech/mp/reply/web/MobileWechatController.java
View file @
f3c50fdb
...
@@ -74,7 +74,7 @@ public class MobileWechatController {
...
@@ -74,7 +74,7 @@ public class MobileWechatController {
//公众号ID
//公众号ID
String
appid
=
request
.
getParameter
(
"appid"
);
String
appid
=
request
.
getParameter
(
"appid"
);
String
token
=
""
;
String
token
=
"
aidea2020mptoken
"
;
if
(
appid
!=
null
){
if
(
appid
!=
null
){
MpAccountsEntity
accounts
=
accountService
.
getMpAccountsAppid
(
appid
);
MpAccountsEntity
accounts
=
accountService
.
getMpAccountsAppid
(
appid
);
if
(
accounts
!=
null
){
if
(
accounts
!=
null
){
...
@@ -115,56 +115,6 @@ public class MobileWechatController {
...
@@ -115,56 +115,6 @@ public class MobileWechatController {
out
.
print
(
respMessage
);
out
.
print
(
respMessage
);
out
.
close
();
out
.
close
();
}
}
/**
*亚太接口发送模板消息
*/
@RequestMapping
(
value
=
"/sendTemplateMessage"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
JSONObject
sendTemplte
(
String
unionId
,
String
templateId
,
HttpServletRequest
request
,
String
dataJson
){
JSONObject
rtnJson
=
new
JSONObject
();
rtnJson
.
put
(
"errorNo"
,
0
);
rtnJson
.
put
(
"errorMsg"
,
"发送成功"
);
String
restToken
=
request
.
getHeader
(
"token"
);
if
(!
StringUtils
.
equals
(
restToken
,
"ae810823caf24aaf2f392a25ebac0afb"
)){
rtnJson
.
put
(
"errorNo"
,
1
);
rtnJson
.
put
(
"errorMsg"
,
"token无效"
);
return
rtnJson
;
}
if
(
StringUtils
.
isEmpty
(
unionId
)
||
StringUtils
.
isEmpty
(
templateId
)
||
StringUtils
.
isEmpty
(
dataJson
)){
rtnJson
.
put
(
"errorNo"
,
1
);
rtnJson
.
put
(
"errorMsg"
,
"参数错误"
);
return
rtnJson
;
}
String
openId
=
replyService
.
getOpenId
(
unionId
);
if
(
StringUtils
.
isEmpty
(
openId
)){
rtnJson
.
put
(
"errorNo"
,
1
);
rtnJson
.
put
(
"errorMsg"
,
"未找到对应的OPENID"
);
return
rtnJson
;
}
MpAccountsEntity
accounts
=
accountService
.
getMpAccountsAppid
(
SystemConfig
.
p
.
getProperty
(
"WX_MP_SERVER_APPID"
));
IndustryTemplateMessageSend
mc
=
new
IndustryTemplateMessageSend
();
mc
.
setTemplate_id
(
templateId
);
mc
.
setTouser
(
openId
);
mc
.
setAccess_token
(
tokenUtil
.
getToken
(
accounts
.
getId
()));
StringBuffer
json
=
new
StringBuffer
();
Gson
gson
=
new
Gson
();
String
objJson
=
gson
.
toJson
(
mc
);
json
.
append
(
objJson
);
json
.
setLength
(
json
.
length
()
-
1
);
json
.
append
(
","
);
json
.
append
(
"\"data\":"
);
json
.
append
(
dataJson
);
json
.
append
(
"}"
);
String
result
=
JwTemplateMessageAPI
.
sendTemplateMsgJson
(
json
.
toString
(),
mc
.
getAccess_token
());
if
(
result
!=
null
){
JSONObject
resultJson
=
JSON
.
parseObject
(
result
);
if
(
resultJson
.
containsKey
(
"errcode"
)
&&
!
StringUtils
.
equals
(
resultJson
.
getString
(
"errcode"
),
"0"
)){
return
resultJson
;
}
}
return
rtnJson
;
}
}
}
...
...
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