Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
teachermate-web-seller
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
teachermate-web-seller
Commits
3208bfe0
There was an error fetching the commit references. Please try again later.
Unverified
Commit
3208bfe0
authored
6 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
bug fix and tiny opti
parent
4d46c845
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+1
-1
1 addition, 1 deletion
Makefile
index.html
+9
-4
9 additions, 4 deletions
index.html
verify.py
+1
-1
1 addition, 1 deletion
verify.py
with
11 additions
and
6 deletions
Makefile
+
1
−
1
View file @
3208bfe0
CC
?=
gcc
CC
?=
gcc
.P
R
ONY
:
daemon.c verify.c
.P
H
ONY
:
daemon.c verify.c
all
:
daemon.c verify.c
all
:
daemon.c verify.c
eval
$(
CC
)
`
python-config
--cflags
--ldflags
`
daemon.c verify.c
-o
daemon
eval
$(
CC
)
`
python-config
--cflags
--ldflags
`
daemon.c verify.c
-o
daemon
...
...
This diff is collapsed.
Click to expand it.
index.html
+
9
−
4
View file @
3208bfe0
...
@@ -100,6 +100,11 @@ curl 'https://tm.recolic.net/addtask?openid=23251fc131e118d07fc9932f3c3de92c&N=3
...
@@ -100,6 +100,11 @@ curl 'https://tm.recolic.net/addtask?openid=23251fc131e118d07fc9932f3c3de92c&N=3
alert
(
"
经纬度格式不正确,请仔细检查。举例: 123.45678
"
);
alert
(
"
经纬度格式不正确,请仔细检查。举例: 123.45678
"
);
return
;
return
;
}
}
if
(
parseFloat
(
N
)
>
50.0
||
parseFloat
(
E
)
<
100.0
||
parseFloat
(
E
)
>
130.0
)
{
if
(
!
confirm
(
"
请再次确认你的签到位置:
"
+
E
+
"
°E,
"
+
N
+
"
°N 是否正确? 此经纬度似乎不在中国境内。
"
))
{
return
;
}
}
$
.
ajax
({
$
.
ajax
({
'
url
'
:
'
/addtask
'
,
'
url
'
:
'
/addtask
'
,
'
type
'
:
'
GET
'
,
'
type
'
:
'
GET
'
,
...
@@ -133,13 +138,13 @@ curl 'https://tm.recolic.net/addtask?openid=23251fc131e118d07fc9932f3c3de92c&N=3
...
@@ -133,13 +138,13 @@ curl 'https://tm.recolic.net/addtask?openid=23251fc131e118d07fc9932f3c3de92c&N=3
<br>
<br>
<span>
<strong>
OpenID会在大约两小时后失效,请勿过早添加任务。
</strong></span>
<span>
<strong>
OpenID会在大约两小时后失效,请勿过早添加任务。
</strong></span>
<br>
<br>
<span>
OpenID:
<input
type=
"text"
name=
"openid"
class=
"inputAreaCss"
id=
"add_openid"
/>
<span>
OpenID:
<input
type=
"text"
name=
"openid"
class=
"inputAreaCss"
id=
"add_openid"
/>
</span>
<br>
<br>
<span>
卡密:
<input
type=
"text"
name=
"key"
class=
"inputAreaCss"
id=
"add_key"
/>
<span>
卡密:
<input
type=
"text"
name=
"key"
class=
"inputAreaCss"
id=
"add_key"
/>
</span>
<br>
<br>
<span>
签到地点经纬度[东经]:
<input
type=
"text"
name=
"E"
class=
"inputAreaCss"
id=
"add_E"
/>
<span>
签到地点经纬度[东经]:
<input
type=
"text"
name=
"E"
class=
"inputAreaCss"
id=
"add_E"
/>
</span>
<br>
<br>
<span>
签到地点经纬度[北纬]:
<input
type=
"text"
name=
"N"
class=
"inputAreaCss"
id=
"add_N"
/>
<span>
签到地点经纬度[北纬]:
<input
type=
"text"
name=
"N"
class=
"inputAreaCss"
id=
"add_N"
/>
</span>
<input
type=
"submit"
class=
"inputButtonCss"
value=
"添加任务"
onclick=
'subm_addtask();'
/></span>
<input
type=
"submit"
class=
"inputButtonCss"
value=
"添加任务"
onclick=
'subm_addtask();'
/></span>
</form>
</form>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
verify.py
+
1
−
1
View file @
3208bfe0
...
@@ -8,7 +8,7 @@ def verify_key(key):
...
@@ -8,7 +8,7 @@ def verify_key(key):
for
line
in
cont
.
split
(
'
\n
'
):
for
line
in
cont
.
split
(
'
\n
'
):
if
line
==
''
:
if
line
==
''
:
continue
continue
if
line
==
key
:
if
line
==
key
and
not
key_ok
:
key_ok
=
True
key_ok
=
True
print
(
'
key {} is accepted.
'
.
format
(
key
))
print
(
'
key {} is accepted.
'
.
format
(
key
))
else
:
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment