parent
0d5c823e7a
commit
b2b55f7cf9
|
@ -116,7 +116,7 @@ def CgiGetCode():
|
|||
if gotchiPoints < 0 or gotchiPoints > 5:
|
||||
output['ResultCode']="ERROR"
|
||||
return
|
||||
if itemId < 0 or itemId > 99:
|
||||
if itemId < 0 or itemId > 999:
|
||||
output['ResultCode']="ERROR"
|
||||
return
|
||||
if codeType < 0 or codeType > 4:
|
||||
|
@ -141,13 +141,13 @@ def CgiGetCode():
|
|||
tamaIndex = GetTamaIndex(loginNo,type)
|
||||
|
||||
iid = str(itemId)
|
||||
while len(iid) != 2:
|
||||
while len(iid) != 3:
|
||||
iid = "0"+iid
|
||||
ggp = str(gotchiPoints)
|
||||
while len(ggp) != 2:
|
||||
ggp = "0"+ggp
|
||||
|
||||
logoutNo = str(codeType)+str(region)+iid[0]+"0"+iid[1]+str(tamaIndex[0])+ggp+str(tamaIndex[1])
|
||||
logoutNo = str(codeType)+str(region)+iid[1]+iid[0]+iid[2]+str(tamaIndex[0])+ggp+str(tamaIndex[1])
|
||||
logoutNo += str(CheckBit(logoutNo,False,9))
|
||||
output['PasswordUp'] = logoutNo[:5]
|
||||
output['PasswordDown'] = logoutNo[5:]
|
||||
|
|
Loading…
Reference in New Issue