# 介绍

potato cloud GG修改器 sdk 开发包,potato cloud 全方位的后端服务平台。

# 项目地址

https://gitee.com/chengdu-xuda-network/potato_cloud_gg_lua_sdk.git (opens new window)

# 软件架构

  • potato cloud 平台服务支持
  • GG修改器 Lua HTTP 网络请求
  • AES / DES / RC4 / Base64 加解密
  • MD5 签名验证

# 安装教程

将整个 SDK 目录放入 GG修改器脚本目录,通过 dofile 加载即可。

# 使用说明

local SDK = dofile("potato_cloud.lua")
--或
--local __M={};local __C={};local function __R(k)if __C[k]~=nil then return __C[k] end;if __M[k] then __C[k]=__M[k]()ret...........


--[[
    初始化方法
    0  不加密
    1  Base64
    2  AES/ECB/PKCS5Padding
    3  DES/ECB/PKCS7
    4  AES/ECB/NOPadding(16位秘钥)
    5  RC4
]]
local app = SDK.createApp({
    askKey = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhcHBJZCI6OTEyOTY2ODA2ODM5ODQwNzY4LCJnZXRNYW5hZ2VtZW50SWQiOjY5ODExOTE5MzkxODc4NzU4NCwiVElNRSI6MTcwNjc3OTg1OTA5OX0.4qMMQitEx8memjOKOsAs9zs-qarH_va1H6UmocV1W50",
    signSecretKey = "123456",
    signType = 1,
    requestEncryptType = 0,
    responseEncryptType = 5,
    encryptSecretKey = "1111111111111111",
})

--[[
    卡密验证
]]
local verifyParam = {
    cardStr = "420A14B0FB9AD7306B0CE240318BE90E",
    mac = "12121",
}
local res = app:verifyCardV2(verifyParam)
if res.code == 200 then
    print(res.data)
end

--[[
    用户登录
]]
local loginParam = {
    userNumber = "123456789",
    passWord = "123456",
}
local res = app:login(loginParam)
if res.code == 200 then
    -- 设置token
    app:setUserToken(res.data.apiUserToken)
end

--[[
    自动携带用户token
    获取标签列表
]]
local getLabelParam = {
    name = "12",
    id = "1",
}
local res = app:getLabelList(getLabelParam)
print(res)

--[[
    用户注册V2
]]
local registerParam = {
    userNumber = "313097897",
    passWord = "123456",
    email = "313097897@qq.com",
}
local res = app:registerV2(registerParam)
print(res)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

# 参与贡献

potato cloud 全体开发人员 土豆的金主爸爸

lastUpdate: 6/3/2026, 8:32:12 PM