Skip to content

Commit

Permalink
chore: add enc
Browse files Browse the repository at this point in the history
  • Loading branch information
moyoez committed Mar 14, 2024
1 parent 586f642 commit 1de8372
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/mai/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ func init() {
ctx.SendChain(message.Reply(ctx.Event.MessageID), message.Text("请前往 https://mai.lemonkoi.one 获取绑定码进行绑定"))
return
}
getCodeStat, err := web.GetData("https://maihook.lemonkoi.one/api/idunlocker?userid=" + getMaiID.Userid)
getCodeStat, err := web.RequestDataWithHeaders(http.DefaultClient, "https://maihook.lemonkoi.one/api/idunlocker?userid="+getMaiID.Userid, "GET", func(request *http.Request) error {
request.Header.Set("valid", os.Getenv("validauth"))
return nil
}, nil)
if err != nil {
return
}
Expand Down

0 comments on commit 1de8372

Please sign in to comment.