Browse Source

no message

xingzai 1 year ago
parent
commit
5b563e06be
1 changed files with 1 additions and 2 deletions
  1. 1 2
      services/aliyun.go

+ 1 - 2
services/aliyun.go

@@ -181,7 +181,7 @@ type OcrBusinessCardResult struct {
 
 // 阿里云名片识别更换2024-01-02
 func AliyunOcrBusinessCard(imageurl string) (result *OcrBusinessCardResult, err error) {
-	url := "https://bizcard.market.alicloudapi.com/rest/160601/ocr/ocr_business_card.jso"
+	url := "https://bizcard.market.alicloudapi.com/rest/160601/ocr/ocr_business_card.json"
 	method := "POST"
 
 	payload := strings.NewReader(`{
@@ -209,7 +209,6 @@ func AliyunOcrBusinessCard(imageurl string) (result *OcrBusinessCardResult, err
 		fmt.Println(err)
 		return
 	}
-
 	err = json.Unmarshal(body, &result)
 	if err != nil {
 		fmt.Println(err)