Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bfecce8

Browse files
committed
1 parent bfca6d0 commit bfecce8

File tree

9 files changed

+71
-71
lines changed

9 files changed

+71
-71
lines changed

src/logic/mission.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (MissionLogic) FindLoginMission(ctx context.Context, me *model.Me) *model.U
146146
}
147147

148148
// Complete 完成任务(非每日任务)
149-
func (MissionLogic) Complete(ctx context.Context, me *model.Me, id interface{}) error {
149+
func (MissionLogic) Complete(ctx context.Context, me *model.Me, id string) error {
150150
objLog := GetLogger(ctx)
151151

152152
mission := &model.Mission{}
@@ -163,7 +163,7 @@ func (MissionLogic) Complete(ctx context.Context, me *model.Me, id interface{})
163163
user := DefaultUser.FindOne(ctx, "uid", me.Uid)
164164

165165
// 初始任务,不允许重复提交
166-
if id == model.InitialMissionId {
166+
if id == strconv.Itoa(model.InitialMissionId) {
167167
if user.Balance > 0 {
168168
objLog.Errorln("repeat claim init award", user.Username)
169169
return nil

static/css/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ a.tab_current:hover {background-color: #445; color: #fff; text-decoration: none;
3131
.clr:after {clear: both;content: '\0020';display: block;visibility: hidden;height: 0;}
3232

3333
/* nav */
34-
.navbar-default { position: static; }
34+
.navbar-default { position: static; z-index: 1000; }
3535
.navbar-default .navbar-nav>li>a { color: #bbbbbb; }
3636
.navbar-default .navbar-nav>.active>a { color: #ffffff; }
3737

static/dist/css/sg_styles.css

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,3 @@
1-
.books { margin-top: 10px; padding: 5px 0; }
2-
.book { overflow: hidden; clear: both; padding: 0 15px; }
3-
@media(min-width: 768px) {
4-
.book .meta-num { max-width: 100px; margin-top: 10.5px; }
5-
}
6-
.book h4 { color: #474747; font-weight: bold; }
7-
.book h4 a { color: #474747;text-decoration: none;overflow: hidden; }
8-
.book h4 a:hover { color: #DB6D4C; }
9-
.book .stats { background: #eeeeee; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; margin: 0; padding: 5px; text-align: center; }
10-
.book .stats .votes { color: #555555; }
11-
.stats strong { display: block; font-size: 140%; font-weight: bold; }
12-
.stats .answered { color: #ffffff; background-color: #7e91bd; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; padding: 4px 0; margin: 0; }
13-
.views-orange { color: #ee7711; padding-top: 4px; text-align: center;}
14-
.author-date { color: #999; font-size: 13px; }
15-
.author-date a { color: #999; text-decoration: none; }
16-
.author-date a:hover { color: #DB6D4C; }
17-
18-
.book .desc { margin-top: 5px; font-size: 14px; }
19-
.book .desc a { text-decoration: none; color: #3d5998; }
20-
.book .desc a:hover { color: #DB6D4C; }
21-
22-
.book .book-cover-box { margin-top: 10.5px; }
23-
.book .book-cover-box a { position: relative; overflow: visible; margin: 5px 0; width: 120px; margin-right: .6em;}
24-
.book .book-cover-box img { border: 1px solid #fff; box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7); -webkit-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); -moz-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); display: block; max-width: 100%; vertical-align: middle; }
25-
@media(min-width: 768px) {
26-
.book .book-cover-box { float: right; }
27-
.book .book-cover-box a { float: right; }
28-
.book .book-cover-box img { width: 100%; }
29-
}
30-
31-
hr { margin: 18px 0; border: 0; border-top: 1px solid #555555; border-bottom: 1px solid #ffffff; clear: both; }
32-
hr.dashed { border-top: 1px dashed #999999; }
33-
34-
.book-header .lang { font-size: 13px; }
35-
.book-like { margin-top: 16px; }
36-
.book-like .like { text-align: center; }
37-
.book-like .like strong { line-height: 1.2em; display: block; color: #555555; font-weight: bold; font-size: 32px; line-height: 50px; }
38-
.book-like .like a { text-decoration: none; color: #3d5998; }
39-
.book-sales { text-align: center; }
401
@charset "utf-8";
412
/* CSS Document */
423
.uploadify-button {
@@ -101,6 +62,45 @@ a.uploadify-button { color:#fff; }
10162
background-color: #0099FF;
10263
}
10364

65+
.books { margin-top: 10px; padding: 5px 0; }
66+
.book { overflow: hidden; clear: both; padding: 0 15px; }
67+
@media(min-width: 768px) {
68+
.book .meta-num { max-width: 100px; margin-top: 10.5px; }
69+
}
70+
.book h4 { color: #474747; font-weight: bold; }
71+
.book h4 a { color: #474747;text-decoration: none;overflow: hidden; }
72+
.book h4 a:hover { color: #DB6D4C; }
73+
.book .stats { background: #eeeeee; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; margin: 0; padding: 5px; text-align: center; }
74+
.book .stats .votes { color: #555555; }
75+
.stats strong { display: block; font-size: 140%; font-weight: bold; }
76+
.stats .answered { color: #ffffff; background-color: #7e91bd; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; padding: 4px 0; margin: 0; }
77+
.views-orange { color: #ee7711; padding-top: 4px; text-align: center;}
78+
.author-date { color: #999; font-size: 13px; }
79+
.author-date a { color: #999; text-decoration: none; }
80+
.author-date a:hover { color: #DB6D4C; }
81+
82+
.book .desc { margin-top: 5px; font-size: 14px; }
83+
.book .desc a { text-decoration: none; color: #3d5998; }
84+
.book .desc a:hover { color: #DB6D4C; }
85+
86+
.book .book-cover-box { margin-top: 10.5px; }
87+
.book .book-cover-box a { position: relative; overflow: visible; margin: 5px 0; width: 120px; margin-right: .6em;}
88+
.book .book-cover-box img { border: 1px solid #fff; box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7); -webkit-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); -moz-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); display: block; max-width: 100%; vertical-align: middle; }
89+
@media(min-width: 768px) {
90+
.book .book-cover-box { float: right; }
91+
.book .book-cover-box a { float: right; }
92+
.book .book-cover-box img { width: 100%; }
93+
}
94+
95+
hr { margin: 18px 0; border: 0; border-top: 1px solid #555555; border-bottom: 1px solid #ffffff; clear: both; }
96+
hr.dashed { border-top: 1px dashed #999999; }
97+
98+
.book-header .lang { font-size: 13px; }
99+
.book-like { margin-top: 16px; }
100+
.book-like .like { text-align: center; }
101+
.book-like .like strong { line-height: 1.2em; display: block; color: #555555; font-weight: bold; font-size: 32px; line-height: 50px; }
102+
.book-like .like a { text-decoration: none; color: #3d5998; }
103+
.book-sales { text-align: center; }
104104
html, body { background: #e2e2e2; font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", Tahoma, "Hiragino Sans GB", "Microsoft Yahei", sans-serif;}
105105

106106
a:link, a:visited, a:active {color: #666; text-decoration: none; word-break: break-all; }
@@ -134,7 +134,7 @@ a.tab_current:hover {background-color: #445; color: #fff; text-decoration: none;
134134
.clr:after {clear: both;content: '\0020';display: block;visibility: hidden;height: 0;}
135135

136136
/* nav */
137-
.navbar-default { position: static; }
137+
.navbar-default { position: static; z-index: 1000; }
138138
.navbar-default .navbar-nav>li>a { color: #bbbbbb; }
139139
.navbar-default .navbar-nav>.active>a { color: #ffffff; }
140140

static/dist/css/sg_styles.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/dist/js/sg_base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ $(function(){
564564
}
565565

566566
// 控制导航栏
567-
$('.navbar').css('position', $(window).scrollTop() > 0 ? 'fixed' : 'static')
567+
$('.navbar').css('position', $(window).scrollTop() > 0 ? 'fixed' : 'relative')
568568

569569
});
570570

0 commit comments

Comments
 (0)