提交 119b6d26 作者: han

Merge branch 'develop'

流水线 #8104 已通过 于阶段
in 2 分 21 秒
...@@ -353,7 +353,9 @@ public class PilotCertificationServiceImpl implements PilotCertificationService ...@@ -353,7 +353,9 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
if(touser != null){ if(touser != null){
JSONObject jsonObject = spellMsg("飞手执照及能力认证","审核通过"); JSONObject jsonObject = spellMsg("飞手执照及能力认证","审核通过");
ws.setTouser(touser); ws.setTouser(touser);
ws.setTemplateId("9qvgBhfW9yoQJY91iMfhrog8y5eZUPSbo9PLvQzS_vk"); // ws.setTemplateId("9qvgBhfW9yoQJY91iMfhrog8y5eZUPSbo9PLvQzS_vk");
// 新的公众号消息模版
ws.setTemplateId("4s0xcovQfT89MYPkUEesBsPD_ONRMPsx_9jxi61Qd-c");
ws.setDataObject(jsonObject); ws.setDataObject(jsonObject);
wxService.sendSubTemplateMsg(ws); wxService.sendSubTemplateMsg(ws);
} }
......
...@@ -258,9 +258,12 @@ public class WithdrawalServiceImpl implements WithdrawalService { ...@@ -258,9 +258,12 @@ public class WithdrawalServiceImpl implements WithdrawalService {
UserSubInfoDO info = userSubInfoDao.getUserSubInfoByUnionId(unionId); UserSubInfoDO info = userSubInfoDao.getUserSubInfoByUnionId(unionId);
if(info != null && info.getOpenId() != null){ if(info != null && info.getOpenId() != null){
String touser = info.getOpenId(); String touser = info.getOpenId();
JSONObject jsonObject = spellMsg(applyInfo.getEmpName(), applyInfo.getPayAmount(), applyInfo.getPayAccount()); // JSONObject jsonObject = spellMsg(applyInfo.getEmpName(), applyInfo.getPayAmount(), applyInfo.getPayAccount());
// 新的公众号修改
JSONObject jsonObject = spellMsg(applyInfo.getPayAmount(), applyInfo.getPayAccount());
ws.setTouser(touser); ws.setTouser(touser);
ws.setTemplateId("y6PHvZownxqR5hf4dSXaa2Lp1jeq3ccytd6G-kUQla4"); // ws.setTemplateId("y6PHvZownxqR5hf4dSXaa2Lp1jeq3ccytd6G-kUQla4");
ws.setTemplateId("imUvk_v7ogKV-LcavombKoFZT1NrSFDAFyMJU-W8bBI");
ws.setDataObject(jsonObject); ws.setDataObject(jsonObject);
wxService.sendSubTemplateMsg(ws); wxService.sendSubTemplateMsg(ws);
} }
...@@ -306,28 +309,48 @@ public class WithdrawalServiceImpl implements WithdrawalService { ...@@ -306,28 +309,48 @@ public class WithdrawalServiceImpl implements WithdrawalService {
return cashAmountDTO; return cashAmountDTO;
} }
public JSONObject spellMsg(String empName, Double payAmount, String payAccount){ // public JSONObject spellMsg(String empName, Double payAmount, String payAccount){
// JSONObject data=new JSONObject();
//
// //提现商户:{{keyword1.DATA}}
// JSONObject keyword1=new JSONObject();
// keyword1.put("value",empName);
// data.put("keyword1",keyword1);
//
// //提现金额:{{keyword2.DATA}}
// JSONObject keyword2=new JSONObject();
// keyword2.put("value",payAmount);
// data.put("keyword2",keyword2);
//
// //提现账户:{{keyword3.DATA}}
// JSONObject keyword3=new JSONObject();
// keyword3.put("value",payAccount);
// data.put("keyword3",keyword3);
//
// //处理时间:{{keyword4.DATA}}
// JSONObject keyword4=new JSONObject();
// keyword4.put("value",new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
// data.put("keyword4",keyword4);
// return data;
// }
// 新的公众号消息推送
public JSONObject spellMsg(Double payAmount, String payAccount){
JSONObject data=new JSONObject(); JSONObject data=new JSONObject();
//提现商户:{{keyword1.DATA}} //提现金额:{{amount1.DATA}}
JSONObject keyword1=new JSONObject(); JSONObject amount1=new JSONObject();
keyword1.put("value",empName); amount1.put("value",payAmount);
data.put("keyword1",keyword1); data.put("amount1",amount1);
//提现金额:{{keyword2.DATA}} //提现账户:{{character_string2.DATA}}
JSONObject keyword2=new JSONObject(); JSONObject character_string2=new JSONObject();
keyword2.put("value",payAmount); character_string2.put("value",payAccount);
data.put("keyword2",keyword2); data.put("character_string2",character_string2);
//提现账户:{{keyword3.DATA}} //处理时间:{{time7.DATA}}
JSONObject keyword3=new JSONObject(); JSONObject time7=new JSONObject();
keyword3.put("value",payAccount); time7.put("value",new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
data.put("keyword3",keyword3); data.put("keyword4",time7);
//处理时间:{{keyword4.DATA}}
JSONObject keyword4=new JSONObject();
keyword4.put("value",new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
data.put("keyword4",keyword4);
return data; return data;
} }
......
...@@ -53,8 +53,11 @@ spring: ...@@ -53,8 +53,11 @@ spring:
wx: wx:
#公众号 #公众号
sub: sub:
appid: wx5c6a105a0ddca4c5 # appid: wx5c6a105a0ddca4c5
secret: ${WECHAT_SUB_SECRET} # secret: 96c75255dd26f82f8d55e15b59e101c7
# 新的公众号配置信息
appid: wx50b22db275f8c320
secret: 7b609851705dd22114fff636d0a2fc4a
#小程序 #小程序
app: app:
id: wx18b7883acd204278 id: wx18b7883acd204278
......
...@@ -22,8 +22,11 @@ spring: ...@@ -22,8 +22,11 @@ spring:
wx: wx:
sub: sub:
appid: wx5c6a105a0ddca4c5 # appid: wx5c6a105a0ddca4c5
secret: 96c75255dd26f82f8d55e15b59e101c7 # secret: 96c75255dd26f82f8d55e15b59e101c7
# 新的公众号配置信息
appid: wx50b22db275f8c320
secret: 7b609851705dd22114fff636d0a2fc4a
app: app:
id: wx18b7883acd204278 id: wx18b7883acd204278
secret: 28afe74ba373830237a8133a7431ee82 secret: 28afe74ba373830237a8133a7431ee82
......
...@@ -51,8 +51,11 @@ spring: ...@@ -51,8 +51,11 @@ spring:
wx: wx:
sub: sub:
appid: wx5c6a105a0ddca4c5 # appid: wx5c6a105a0ddca4c5
secret: ${WECHAT_SUB_SECRET} # secret: ${WECHAT_SUB_SECRET}
# 新的公众号配置信息
appid: wx50b22db275f8c320
secret: 7b609851705dd22114fff636d0a2fc4a
app: app:
id: wx18b7883acd204278 id: wx18b7883acd204278
secret: ${WECHAT_APPLET_SECRET} secret: ${WECHAT_APPLET_SECRET}
......
...@@ -18,4 +18,4 @@ patches: ...@@ -18,4 +18,4 @@ patches:
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/cms newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/cms
newTag: 679ca4db1456e36db20111c8d4d086d33ca31b31 newTag: 6f289d717ae93216d64106035254c3f9f5b19a00
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论