Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
leetking authored and leetking committed May 20, 2017
1 parent 0e797fb commit 7cdd27e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
local user = {
usr = "201413640731", -- 在这里输入用户名
pwd = "yourpasswd", -- 在这里输入密码
net = 1, -- 网络类型,0: 校园网,1: 互联网
net = "SNET", -- 网络类型,SNET: 校园网(school net),INET: 互联网(internet),默认为SNET
}

-- 软件设置
Expand Down
4 changes: 2 additions & 2 deletions src/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ local table2string = function(tb)
end

local body = {
["DDDDD"] = (user.net == 0) and user.usr or user.usr.."@tel",
["DDDDD"] = (user.net == "SNET") and user.usr or user.usr.."@tel",
["upass"] = encryt_pwd(user.pwd),
["R1"] = 0,
["R2"] = 1,
Expand All @@ -38,7 +38,7 @@ local resbody = {}

-- 开始请求
local function login()
print(("User(%s) Logining..."):format(user.usr))
print(("User(%s) Logining..."):format(body["DDDDD"]))
local res, code, reshd = http.request({
url = syscfg.url,
method = "POST",
Expand Down

0 comments on commit 7cdd27e

Please # to comment.