| | |
| | | @Slf4j |
| | | public class DingTalkUtils { |
| | | |
| | | private static final String SECRET = "SECc0b73559742b950f07eabbd050c406a6abb3b67d112d3735289e90f58884c543"; |
| | | private static final String SECRET = "SEC6b1c402a4fa857e7c5e9e6d4d4afd1296a520893af68e063c7a7f005b4ae2a34"; |
| | | |
| | | public static void sendActionCard(int type) { |
| | | log.info("send dingtalk"); |
| | | String url = "https://oapi.dingtalk.com/robot/send?access_token=161d5e5b60ae5d6b4c80f2a9c35f9f212961a7c7154aa7e94b99503eca3886b0"; |
| | | String url = "https://oapi.dingtalk.com/robot/send?access_token=acc3ae94c91b06372b8465ba3fc079fc9bf382fbf8aee10fb4307ab978c1f5f7"; |
| | | Long timestamp = System.currentTimeMillis(); |
| | | try { |
| | | String sign = generateSign(timestamp); |
| | |
| | | } |
| | | |
| | | public static boolean sendRechargeMsg(String phone, String time, String orderNo) { |
| | | String msg = "尊敬的用户,您的帐号于{}有一笔成功充值订单,如有疑问请联系客服,订单编号为{}"; |
| | | String msg = "尊敬的用户,您的帐号于{}有一笔成功充值订单,订单编号为{}"; |
| | | String content = StrUtil.format(msg, time, orderNo); |
| | | log.info("短信发送:{}", content); |
| | | return request(phone, content, "充值"); |