|  |  |  | 
|---|
|  |  |  | import com.doumee.dao.business.model.Sites; | 
|---|
|  |  |  | import com.doumee.dao.business.web.request.RepairRequest; | 
|---|
|  |  |  | import org.apache.commons.codec.binary.Base64; | 
|---|
|  |  |  | import org.apache.commons.lang3.StringUtils; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import javax.crypto.Mac; | 
|---|
|  |  |  | import javax.crypto.spec.SecretKeySpec; | 
|---|
|  |  |  | 
|---|
|  |  |  | import java.util.HashMap; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  | import java.util.Map; | 
|---|
|  |  |  | import java.util.Objects; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * Created by IntelliJ IDEA. | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static void lowVoltageNotice(String bikeCode,String place,String siteName,String token,String robotCode,String chatToken)throws Exception{ | 
|---|
|  |  |  | String desc = "【低电量提醒】车辆编号:{车辆编号},当前位置:{定位位置},当前站点:{站点名称}。"; | 
|---|
|  |  |  | if(StringUtils.isBlank(bikeCode)){ | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | desc=  desc.replace("{车辆编号}",bikeCode); | 
|---|
|  |  |  | desc= desc.replace("{定位位置}",StringUtils.defaultString(place,"未知")); | 
|---|
|  |  |  | desc= desc.replace("{站点名称}",StringUtils.defaultString(siteName,"未知")); | 
|---|
|  |  |  | sendNoticeNew(desc,token,robotCode,chatToken); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 钉钉通知 - 站点储车告警 | 
|---|
|  |  |  | * @param siteName | 
|---|