Skip to content

Commit 10ddcee

Browse files
authored
Merge pull request #60 from deadblue/develop
Bump version to 0.7.8.
2 parents a3ce167 + ad46ec8 commit 10ddcee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/protocol/share.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type ShareSnapProto struct {
5454
ShareInfo struct {
5555
SnapId string `json:"snap_id"`
5656
ShareTitle string `json:"share_title"`
57-
ShareState string `json:"share_state"`
57+
ShareState util.IntNumber `json:"share_state"`
5858
ShareSize util.IntNumber `json:"file_size"`
5959
ReceiveCode string `json:"receive_code"`
6060
ReceiveCount util.IntNumber `json:"receive_count"`
@@ -66,7 +66,7 @@ type ShareSnapProto struct {
6666
CanNotice int `json:"can_notice"`
6767
HaveVioFile int `json:"have_vio_file"`
6868
} `json:"shareinfo"`
69-
ShareState string `json:"share_state"`
69+
ShareState util.IntNumber `json:"share_state"`
7070

7171
Count int `json:"count"`
7272
Files []*ShareFileProto `json:"list"`
@@ -83,7 +83,7 @@ func (r *ShareSnapResp) Extract(v *types.ShareSnapResult) (err error) {
8383
v.SnapId = data.ShareInfo.SnapId
8484
v.UserId = data.UserInfo.UserId.Int()
8585
v.ShareTitle = data.ShareInfo.ShareTitle
86-
v.ShareState = data.ShareInfo.ShareSize.Int()
86+
v.ShareState = data.ShareInfo.ShareState.Int()
8787
v.ReceiveCount = data.ShareInfo.ReceiveCount.Int()
8888
v.CreateTime = data.ShareInfo.CreateTime.Int64()
8989
v.ExpireTime = data.ShareInfo.ExpireTime.Int64()

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
const (
99
libName = "elevengo"
10-
libVer = "0.7.7"
10+
libVer = "0.7.8"
1111
)
1212

1313
var (

0 commit comments

Comments
 (0)