|
@@ -151,7 +151,7 @@ public class KFZSJs {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@JavascriptInterface
|
|
@JavascriptInterface
|
|
|
- public void gotoSearch(){
|
|
|
|
|
|
|
+ public void gotoSearch() {
|
|
|
Jump2View.getInstance().goActSearch(activity);
|
|
Jump2View.getInstance().goActSearch(activity);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -213,6 +213,7 @@ public class KFZSJs {
|
|
|
public void paymentCompleted(String from, boolean ret, String msg, String orderNo) {
|
|
public void paymentCompleted(String from, boolean ret, String msg, String orderNo) {
|
|
|
//1. app
|
|
//1. app
|
|
|
//2. sdk
|
|
//2. sdk
|
|
|
|
|
+ Log.e("PaymentCompleted", from + " " + ret + " " + msg + " " + orderNo);
|
|
|
if (from.equals("2")) {
|
|
if (from.equals("2")) {
|
|
|
Intent intent = new Intent();
|
|
Intent intent = new Intent();
|
|
|
intent.putExtra("ret", ret);
|
|
intent.putExtra("ret", ret);
|
|
@@ -753,8 +754,8 @@ public class KFZSJs {
|
|
|
@Subscribe
|
|
@Subscribe
|
|
|
public void whenWXAuth(WXLoginAuthEvent ev) {
|
|
public void whenWXAuth(WXLoginAuthEvent ev) {
|
|
|
EventBus.getDefault().unregister(this);
|
|
EventBus.getDefault().unregister(this);
|
|
|
- if(!TextUtils.isEmpty(ev.code)) {
|
|
|
|
|
- WXAPIUtil.loadWXUserToken(ev.code, (ret, openid, token)->{
|
|
|
|
|
|
|
+ if (!TextUtils.isEmpty(ev.code)) {
|
|
|
|
|
+ WXAPIUtil.loadWXUserToken(ev.code, (ret, openid, token) -> {
|
|
|
Map<String, String> params = new HashMap<>();
|
|
Map<String, String> params = new HashMap<>();
|
|
|
params.put("access_token", token);
|
|
params.put("access_token", token);
|
|
|
params.put("openid", openid);
|
|
params.put("openid", openid);
|
|
@@ -762,7 +763,7 @@ public class KFZSJs {
|
|
|
params.put("app_id", Config.WX_AUTH_APP_ID);
|
|
params.put("app_id", Config.WX_AUTH_APP_ID);
|
|
|
loadThirdPartUserInfo("wx", params);
|
|
loadThirdPartUserInfo("wx", params);
|
|
|
});
|
|
});
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
G.shortToast("微信授权失败");
|
|
G.shortToast("微信授权失败");
|
|
|
iWeb.loadJs("handleLogin(2)");
|
|
iWeb.loadJs("handleLogin(2)");
|
|
|
}
|
|
}
|