支付增加日志
This commit is contained in:
parent
9712ea3692
commit
4a67dc773a
@ -279,7 +279,7 @@ public class MainActivity extends Activity {
|
|||||||
nativeAndroid.setExternalInterface("@onError", message -> Log.e(TAG, "Get @onError: " + message));
|
nativeAndroid.setExternalInterface("@onError", message -> Log.e(TAG, "Get @onError: " + message));
|
||||||
// 支付
|
// 支付
|
||||||
nativeAndroid.setExternalInterface("pay", message -> {
|
nativeAndroid.setExternalInterface("pay", message -> {
|
||||||
|
Log.i(TAG, "receive pay: " + message);
|
||||||
try {
|
try {
|
||||||
JSONObject jsonObject = new JSONObject(message);
|
JSONObject jsonObject = new JSONObject(message);
|
||||||
String cpOrderId = jsonObject.getString("orderId");
|
String cpOrderId = jsonObject.getString("orderId");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user