|
@@ -165,7 +165,8 @@ public class TaskController extends BladeController {
|
|
|
@ApiOperationSupport(order = 10)
|
|
|
@ApiOperation(value = "短信验证")
|
|
|
public R<Boolean> sendNotice(@RequestParam String phone) {
|
|
|
- String code = CommonUtil.getCharAndNumber(4);
|
|
|
+// String code = CommonUtil.getCharAndNumber(4);
|
|
|
+ String code = String.valueOf((int)(Math.random()*9000 + 1000));
|
|
|
Map<String, String> params = new HashMap<>(3);
|
|
|
params.put("code", code);
|
|
|
R<SmsResponse> result = this.newSmsClient.sendMessage("test_code", JsonUtil.toJson(params), phone);
|