feat(login): 增加默认值,防止token解析异常

This commit is contained in:
曾文豪
2023-06-06 10:50:27 +08:00
parent 73e6470b39
commit c3b3831378
2 changed files with 9 additions and 11 deletions

View File

@@ -25,10 +25,7 @@ import com.tiesheng.util.config.Ip2regionConfig;
import com.tiesheng.util.pojos.ApiResp;
import com.tiesheng.util.pojos.FileUploadPath;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
@@ -92,11 +89,11 @@ public class TestController {
}
@PostMapping("/send")
@OperationLog(desensitize = "fdyNo")
public ApiResp<MessageReqResp> sendMessage(@RequestBody @Valid PoiBean dto) {
@GetMapping("/send")
@TokenIgnore
public ApiResp<MessageReqResp> sendMessage() {
MessageReqResp reqResp = coreMessageService.send(new UserChannel(dto.getFdyNo(), "sms"),
MessageReqResp reqResp = coreMessageService.send(new UserChannel("13567116463", "sms"),
JSONUtil.createObj().putOpt("code", "123456").putOpt("template_code", "SMS_154950909"));
return ApiResp.respOK(reqResp);