hch
2023-11-21 0843579a8122b81300a8a22d49f30e73a24eb52d
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
package com.secondworld.sdk.command;
 
import com.secondworld.sdk.GameAppProxy;
import com.secondworld.sdk.MySdkMgr;
import com.secondworld.sdk.utils.CodeU2A;
 
import org.json.JSONObject;
 
public class CmdPlatformPay implements ICommand {
    @Override
    public int getCode() {
        return CodeU2A.PlatformPay;
    }
 
    @Override
    public void process(JSONObject json) throws Exception {
        JSONObject extraData = new JSONObject();
        extraData.put("appid", GameAppProxy.appId);
        extraData.put("cpinfo", json.getString("cpInfo"));
        extraData.put("cporderid", json.getString("orderId"));
        extraData.put("serverid", json.getString("sid"));
        extraData.put("channelID", "9998");
 
        MySdkMgr.I.pay(json.getString("roleID"), json.getString("mount"),
                json.getString("sid"), json.getString("cpInfo"),
                json.getString("title"), extraData.toString());
    }
}