chore: downgrade go version to 1.25
This commit is contained in:
+3
-2
@@ -371,8 +371,9 @@ func UploadCertificatePNGToCOS(ctx context.Context, pngBytes []byte, defaultObje
|
|||||||
|
|
||||||
_, err = client.Object.Put(ctx, objectKey, bytes.NewReader(pngBytes), &cos.ObjectPutOptions{
|
_, err = client.Object.Put(ctx, objectKey, bytes.NewReader(pngBytes), &cos.ObjectPutOptions{
|
||||||
ObjectPutHeaderOptions: &cos.ObjectPutHeaderOptions{
|
ObjectPutHeaderOptions: &cos.ObjectPutHeaderOptions{
|
||||||
ContentType: "image/png",
|
ContentType: "image/png",
|
||||||
CacheControl: "public, max-age=31536000, immutable",
|
ContentLength: len(pngBytes),
|
||||||
|
CacheControl: "public, max-age=31536000, immutable",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module git.yuanzoo.cn/zhangzhengqiang/popi-zxl
|
module git.yuanzoo.cn/zhangzhengqiang/popi-zxl
|
||||||
|
|
||||||
go 1.26
|
go 1.25.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/fogleman/gg v1.3.0
|
github.com/fogleman/gg v1.3.0
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package zxchainsdk
|
||||||
|
|
||||||
|
import "errors"
|
||||||
|
|
||||||
|
var (
|
||||||
|
ErrMissingBizID = errors.New("missing biz_id")
|
||||||
|
ErrMissingContent = errors.New("missing content")
|
||||||
|
ErrMissingEvID = errors.New("missing ev_id")
|
||||||
|
ErrMissingHash = errors.New("missing hash")
|
||||||
|
ErrMissingScene = errors.New("missing scene")
|
||||||
|
ErrMissingKVFields = errors.New("missing kv fields")
|
||||||
|
ErrMissingFileName = errors.New("missing file_name")
|
||||||
|
ErrMissingQueryKey = errors.New("missing ev_id, hash or tx_id")
|
||||||
|
ErrEmptyAttestation = errors.New("empty attestation request")
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user