|
|
@@ -129,7 +129,7 @@ public class TestController {
|
|
|
return new Result<>(commonService.longitudeToAddress(lat, lon));
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "根据经纬度查询位置", notes = "根据经纬度查询位置")
|
|
|
+ @ApiOperation(value = "测试发送运单短信", notes = "根据经纬度查询位置")
|
|
|
@PostMapping("/testSms")
|
|
|
public Result testSms(@RequestParam Long truckId) {
|
|
|
Truck truck = new Truck();
|
|
|
@@ -165,7 +165,7 @@ public class TestController {
|
|
|
smsSend.setType(30);
|
|
|
JSONObject content = new JSONObject();
|
|
|
content.put("type", "装");
|
|
|
- content.put("trans_id", "测试Test运单");
|
|
|
+ content.put("order_id", "测试Test运单");
|
|
|
smsSend.setContent(JSON.toJSONString(content));
|
|
|
smsSend.setMobile(monbiles.substring(1));
|
|
|
log.info("Test 发送装车运单短信:{}", JSON.toJSONString(smsSend));
|
|
|
@@ -175,4 +175,20 @@ public class TestController {
|
|
|
return new Result<>(false);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "测试运单短信模板", notes = "根据经纬度查询位置")
|
|
|
+ @PostMapping("/testSmsTemp")
|
|
|
+ public Result testSmsTemp(@RequestParam String monbiles) {
|
|
|
+ // 发送短信
|
|
|
+ SmsSendLog smsSend = new SmsSendLog();
|
|
|
+ smsSend.setType(30);
|
|
|
+ JSONObject content = new JSONObject();
|
|
|
+ content.put("type", "装装");
|
|
|
+ content.put("order_id", "测试短信模板运单");
|
|
|
+ smsSend.setContent(JSON.toJSONString(content));
|
|
|
+ smsSend.setMobile(monbiles.substring(1));
|
|
|
+ log.info("Test 测试短信模板运单:{}", JSON.toJSONString(smsSend));
|
|
|
+ Result<Boolean> send = messageFeign.send(smsSend, null, null, null);
|
|
|
+ return send;
|
|
|
+ }
|
|
|
+
|
|
|
}
|