hch
2022-04-20 50ac24de3f1dabbda7ac1cd3f7cf72e3340387f4
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
package com.secondworld.sdk.command;
 
 
import com.secondworld.sdk.GTGameMain;
import com.secondworld.sdk.utils.CodeU2A;
import com.soha.sdk.SohaSDK;
 
import org.json.JSONObject;
 
public class CmdCreateRole implements ICommand {
    @Override
    public int getCode() {
        return CodeU2A.CreateRole;
    }
 
    @Override
    public void process(JSONObject json) throws Exception {
        SohaSDK.getInstance().logCreateCharacter(GTGameMain.I.activity,
                json.getString("sid"),//服务器id
                json.getString("roleID"),//角色id
                json.getString("roleName"),//角色名
                json.getString("level")//角色等级
        );
    }
}