新增处方平台取消订单

This commit is contained in:
2023-09-13 10:49:42 +08:00
parent 6f77093b38
commit 29e05ef1ce
11 changed files with 391 additions and 13 deletions
+1 -2
View File
@@ -6,7 +6,6 @@ import (
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"hospital-admin-api/config"
"io"
"net/http"
@@ -79,6 +78,7 @@ func postRequest(requestUrl string, formData url.Values, signature string) (map[
if resp.StatusCode != 200 {
return nil, errors.New("请求失败")
}
// 读取响应内容
respBody, err := io.ReadAll(resp.Body)
if err != nil {
@@ -108,7 +108,6 @@ func postRequest(requestUrl string, formData url.Values, signature string) (map[
}
}
fmt.Println(body)
if len(body) == 0 {
return nil, nil
}