sdk修改
parent
f5ed76daa1
commit
f13d13ff45
|
@ -182,8 +182,12 @@ public class MhtActivity extends IUnityPlayerActivity {
|
|||
// 调起登录
|
||||
public void Login() {
|
||||
|
||||
MhtActivity.this.runOnUiThread(new Runnable() {
|
||||
public void run() {
|
||||
PSDKUser.getInstance().login(MhtActivity.this);
|
||||
}
|
||||
});
|
||||
}
|
||||
public void SwitchLogin() {
|
||||
if (PSDKUser.getInstance().isSupport("switchLogin")) {
|
||||
PSDKUser.getInstance().switchLogin(MhtActivity.this);
|
||||
|
@ -248,6 +252,8 @@ public class MhtActivity extends IUnityPlayerActivity {
|
|||
final String extension){
|
||||
|
||||
|
||||
MhtActivity.this.runOnUiThread(new Runnable() {
|
||||
public void run() {
|
||||
Map<String, String> map2 = new HashMap<>();
|
||||
//必传
|
||||
// map2.put("consumerId", roleID);//用户ID
|
||||
|
@ -267,6 +273,9 @@ public class MhtActivity extends IUnityPlayerActivity {
|
|||
map2.put("goodsId", productId);//商品编号(三星必传)
|
||||
map2.put("ext", extension);//透传 传递给sdk sdk传递给后端
|
||||
PSDKPay.getInstance().pay(MhtActivity.this, map2);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue