调整请求方式
This commit is contained in:
@@ -4,10 +4,7 @@ import com.dpkj.common.vo.Result;
|
||||
import com.dpkj.modules.cardReader.service.CardReaderService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* 多合一读卡器
|
||||
@@ -23,7 +20,7 @@ public class CardReaderController {
|
||||
* 连接设备并读取身份证信息
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("IDCardReader")
|
||||
@PostMapping("IDCardReader")
|
||||
public Result IDCardReader() {
|
||||
try {
|
||||
return cardReaderService.IDCardReader();
|
||||
@@ -39,7 +36,7 @@ public class CardReaderController {
|
||||
* 连接设备并读取社保卡信息
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("SocialSecurityCardReader")
|
||||
@PostMapping("SocialSecurityCardReader")
|
||||
public Result<?> SocialSecurityCardReader() {
|
||||
try {
|
||||
return cardReaderService.SocialSecurityCardReader();
|
||||
|
||||
Reference in New Issue
Block a user