File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,11 @@ func DelRedisObj(key string) {
47
47
for iter .Next (ctx ) {
48
48
err := redis .Del (ctx , iter .Val ()).Err ()
49
49
if err != nil {
50
- panic (err )
50
+ panic ("Redis error:" + err . Error () )
51
51
}
52
52
}
53
53
if err := iter .Err (); err != nil {
54
- panic (err )
54
+ panic ("Redis error:" + err . Error () )
55
55
}
56
56
}
57
57
@@ -66,7 +66,7 @@ func GetRedisObj[T any](key string) *T {
66
66
var obj T
67
67
err := json .Unmarshal ([]byte (status .Val ()), & obj )
68
68
if err != nil {
69
- log . Panic ( err .Error ())
69
+ panic ( "Redis error:" + err .Error ())
70
70
}
71
71
return & obj
72
72
}
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ func main() {
20
20
g .Use (middleware .Recover )
21
21
configs := config .GetConfig ()
22
22
23
+ // g.Static("/bundels", "bundels")
24
+
23
25
g .GET ("/v0.1/public/codepush/update_check" , request.Client {}.CheckUpdate )
24
26
g .POST ("/v0.1/public/codepush/report_status/deploy" , request.Client {}.ReportStatus )
25
27
g .POST ("/v0.1/public/codepush/report_status/download" , request.Client {}.Download )
You can’t perform that action at this time.
0 commit comments