Skip to content

Commit 62885cb

Browse files
authored
Merge pull request #7 from xyy0411/create-pull-request/patch
Changes by create-pull-request action
2 parents 1f61a91 + b015eb4 commit 62885cb

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

niu/db.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package niu
22

33
import (
44
"fmt"
5+
56
"github.com/RomiChan/syncx"
67
"github.com/jinzhu/gorm"
78
)

niu/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ package niu
44
import (
55
"errors"
66
"fmt"
7-
"github.com/google/uuid"
8-
"github.com/jinzhu/gorm"
97
"os"
108
"strconv"
119
"strings"
1210
"sync"
1311

12+
"github.com/google/uuid"
13+
"github.com/jinzhu/gorm"
14+
1415
"github.com/FloatTech/floatbox/file"
1516

1617
"github.com/FloatTech/AnimeAPI/wallet"
@@ -85,7 +86,6 @@ func init() {
8586
}
8687

8788
db = sdb.LogMode(false)
88-
8989
}
9090

9191
// DeleteWordNiuNiu ...

niu/models.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ package niu
44
import (
55
"errors"
66
"fmt"
7-
"github.com/google/uuid"
8-
"github.com/jinzhu/gorm"
97
"math"
108
"math/rand"
119
"sort"
1210
"time"
11+
12+
"github.com/google/uuid"
13+
"github.com/jinzhu/gorm"
1314
)
1415

1516
var (
@@ -251,7 +252,6 @@ func (u *userInfo) checkProps(props, propSort string) error {
251252
}
252253

253254
func (u *userInfo) purchaseItem(productID, quantity int) (money int, err error) {
254-
255255
m := map[int]int{
256256
1: 300, // 伟哥
257257
2: 300, // 媚药

0 commit comments

Comments
 (0)