如何看待微信公开课小程序热门讨论「小程序部分用户调不起支付」
摘要:小程序部分用户调不起支付
展开:我们这边的客户端调支付if(typeofWeixinJSBridgeobjecttypeofWeixinJSBridge.invokefunction){//waitpayready}else{WeixinJSBridge.invoke(getBrandWCPayRequest}但事实是那些没调起支付的用户直接走的是else里面的代码,而WeixinJSBridge.invoke回调里没有返回任何信息.这只是一个概率事件,日均20000多个支付成功订单,有4000个左右碰到支付调不起来的情况,刷新下当前支付页面就可以重新支付了.试过jssdk,那些调不起来的用户并没有执行wx.error和wx.ready的回调.正常调起的情况,invoke之前记录WeixinJSBridge{invoke:,call:,on:,env:,log:,_fetchQueue:{\__json_message:[{\func\:\log\,\params\:{\msg\:\\\},\\__msg_type\:\call\,\\__callback_id\:\1007\}],\__sha_key:32b4f06dac311036029b60ba4e0f3fe34f45094b},_hasInit:true,_hasPreInit:false,_isBridgeByIframe:true,_continueSetResult:}调不起来的情况,invoke之前记录WeixinJSBridge{invoke:,call:,on:,env:,log:,_fetchQueue:{\__json_message:[{\func\:\preVerifyJSAPI\,\params\:{\verifyJsApiList\:[\closeWindow\,\atchViewCard\,\hideAllNonBaseMenuItem\,\menu:share:timeline\,\menu:share:appmessage\,\openLocation\,\geoLocation\,\scanQRCode\,\chooseImage\,\uploadImage\,\imagePreview\,\downloadImage\,\getBrandWCPayRequest\],\appId\:\wxe822cf0f8d97ab66\,\verifyAppId\:\wxe822cf0f8d97ab66\,\verifySignType\:\sha1\,\verifyTimestamp\:\1508432069\,\verifyNonceStr\:\AXi0do1QoJdJRTfg\,\verifySignature\:\738e4cc0743a611163e709f9640644743a8e0a4b\},\\__msg_type\:\call\,\\__callback_id\:\1003\},{\func\:\log\,\params\:{\msg\:\hasInit,noneedtoinitagain\},\\__msg_type\:\call\,\\__callback_id\:\1004\},{\func\:\log\,\params\:{\msg\:\\_runOn3rdApiList:onVoiceRecordEnd,onVoicePlayBegin,onVoicePlayEnd,onLocalImageUploadProgress,onImageDownloadProgress,onVoiceUploadProgress,onVoiceDownloadProgress,onVideoUploadProgress,onMediaFileUploadProgress,menu:setfont,menu:share:weibo,menu:share:email,wxdownload:state_change,wxdownload:progress_change,hdOnDeviceStateChanged,activity:state_change,onWXDeviceBluetoothStateChange,onWXDeviceLanStateChange,onWXDeviceBindStateChange,onReceiveDataFromWXDevice,onScanWXDeviceResult,onWXDeviceStateChange,onNfcTouch,onBeaconMonitoring,onBeaconsInRange,menu:custom,onSearchWAWidgetOpenApp,onSearchDataReady,onSearchWAWidgetOnTapCallback,onSearchImageListReady,onTeachSearchDataReady,onSearchGuideDataReady,onSearchInputChange,onSearchInputConfirm,onSearchSuggestionDataReady,onMusicStatusChanged,switchToTabSearch,onSelectContact,onSearchWAWidgetAttrChanged,onPullDownRefresh,onPageStateChange,onGetKeyboardHeight,onGetSmiley,onAddShortcutStatus,onGetA8KeyUrl,deleteAccountSuccess,onGetMsgProofItems,WNJSHandlerInsert,WNJSHandlerMultiInsert,WNJSHandlerExportData,WNJSHandlerHeaderAndFooterChange,WNJSHandlerEditableChange,WNJSHandlerEditingChange,WNJSHandlerSaveSelectionRange,WNJSHandlerLoadSelectionRange,onCustomGameMenuClicked,showLoading,getSearchEmotionDataCallBack,onNavigationBarRightButtonClick,onSearchActionSheetClick,onGetMatchContactList,onNetWorkChange,onBackgroundAudioStateChange\},\\__msg_type\:\call\,\\__callback_id\:\1005\},{\func\:\log\,\params\:{\msg\:\setfontsizewithwebkitTextSizeAdjust:3\},\\__msg_type\:\call\,\\__callback_id\:\1006\},{\func\:\setFontSizeCallback\,\params\:{\fontSize\:\3\},\\__msg_type\:\call\,\\__callback_id\:\1007\},{\func\:\log\,\params\:{\msg\:\\\},\\__msg_type\:\call\,\\__callback_id\:\1008\}],\__sha_key:4e6d05ec6ff998ed44e8399cda6e31181dfd381f},_hasInit:true,_hasPreInit:false,_isBridgeByIframe:true,_continueSetResult:}9.20号之前一直运行很正常,之后一直都有这种问题,不知道各位怎么看?谢谢了解更多