| | |
| | | request.timeStamp = orderInfo.getTimeStamp(); |
| | | request.sign = orderInfo.getSign(); |
| | | Boolean Pay = api.sendReq(request); |
| | | Toast.makeText(this, "发起支付", Toast.LENGTH_SHORT).show(); |
| | | // Toast.makeText(this, "发起支付", Toast.LENGTH_SHORT).show(); |
| | | finish(); |
| | | } |
| | | |
| | |
| | | if (baseResp.getType() == ConstantsAPI.COMMAND_LAUNCH_WX_MINIPROGRAM) { |
| | | WXLaunchMiniProgram.Resp launchMiniProResp = (WXLaunchMiniProgram.Resp) baseResp; |
| | | String extraData =launchMiniProResp.extMsg; //对应小程序组件 <button open-type="launchApp"> 中的 app-parameter 属性 |
| | | |
| | | |
| | | } |
| | | } |
| | | }; |
| | |
| | | // EventBus.getDefault().post(new BaseEvent(BaseEvent.PAY_FAIL,resp.errStr)); |
| | | } |
| | | EventBus.getDefault().post(new BaseEvent(BaseEvent.WEIXIN_BACK)); |
| | | // finish(); |
| | | finish(); |
| | | } |
| | | } |
| | | |