| | |
| | | |
| | | import java.security.Key; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * @description 通用控制器,本action未经session过验证器 |
| | |
| | | AjaxResult gwLinkUs(@RequestBody Map<String , Object> param) { |
| | | |
| | | String title = "hive新客户在官网提交联系请求"; |
| | | String content = "hive=>name:" + param.get("name") + " tel:" + param.get("tel") ; |
| | | DingDingRobotUtil.sendLink("https://oapi.dingtalk.com/robot/send?access_token=62bb902f0e3945f0ece31306b99abae043fc69a66da0ef04d89fd20bf58d88d8", content, title, "", "www.baidu.com"); |
| | | if(Objects.nonNull(param.get("name"))){ |
| | | String content = "hive=>name:" + param.get("name") + " tel:" + param.get("tel") ; |
| | | DingDingRobotUtil.sendLink("https://oapi.dingtalk.com/robot/send?access_token=62bb902f0e3945f0ece31306b99abae043fc69a66da0ef04d89fd20bf58d88d8", content, title, "", "www.baidu.com"); |
| | | |
| | | } |
| | | |
| | | return AjaxResult.buildSuccessInstance("提交成功"); |
| | | } |