Merge pull request #147 from cuu/master

gateway bug fix
This commit is contained in:
GNU 2019-01-09 19:01:18 +08:00 committed by GitHub
commit 1b01e25ce1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,7 +211,9 @@ class GateWayPage(Page):
tmp = tp3
if tp3 == 0:
tmp = int(parts[3]) + 1
elif tp3 > 0:
elif tp3 == 1:
tmp = int(parts[3]) + 1
elif tp3 > 1:
tmp = int(parts[3]) - 1
parts[3] = str(tmp)