- 好友
- 分享
- 精华
- 阅读权限
- 255
- 注册时间
- 2020-9-12
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区
您需要 登录 才可以下载或查看,没有账号?立即注册
×
無論怎麼開關都報error01插件未開啟錯誤
所有的用戶都是一樣的狀況
QT C++:
#define FLAG_SECRET "secret"
#define FLAG_LOGIN "login"
#define FLAG_USER "user"
#define FLAG_EXTEND "extend"
#define FLAG_CARD "card"
#define CODES "codes"
#define ACTION "action"
#define JUMPURL "jump=cookies&url=https://www.lovesa.cc/"
inline QString AddQuery(const QString& szflag, const QString& param)
{
return QString("%1=%2").arg(szflag, param);
}
inline QString ROW(const int& n)
{
return AddQuery("ids", QString::number(n));
}
inline QString INDEX(const int& n)
{
return AddQuery("int", QString::number(n));
}
#define HTTP_URL AddQuery("https://www.lovesa.cc/plugin.php?id", "xinxiu_network:")
#define TOKEN AddQuery("token", userinfo->token)
#define KEY AddQuery("key", gKey)
#define LOGIN_USER AddQuery(ACTION, "login_user")
#define LOGIN_EXIT AddQuery(ACTION, "login_exit")
#define SEND_URL AddQuery(ACTION, "send_url")
#define USER_CORNS AddQuery(ACTION, "user_crons")
#define LOGIN_GET_GLOBALS AddQuery(ACTION, "login_get_globals")
#define CARD_TIMES AddQuery(ACTION, "card_times")
#define USER_SET_FIELDS AddQuery(ACTION, "user_set_fields")
#define USER_TIMES AddQuery(ACTION, "user_times")
#define USERNAME AddQuery("username", username)
#define PASSWORD AddQuery("password", password)
#define CONTENT AddQuery("content", bstr)
public:
void Login(const QString& username, QString password)
{
QStringList list;
password = QAESEncryption::AesCoding((QString)QByteArray::fromBase64(password.toLatin1()), QAESEncryption:: DECODE);
list << FLAG_LOGIN
<< KEY
<< LOGIN_USER
<< USERNAME
<< PASSWORD;
HttpGetAsync(list);
}
|
|
-
|