如图:我司的一个用户 设备信息如上,最近15天内产生了172条打不开微信支付的情况。
该情况属于偶现的,经排查支付信息签名和商户都是对的。
支付代码如下:
PayReq *request = [[PayReq alloc] init];
request.partnerId = resultDict[@"partnerid"];
request.prepayId= resultDict[@"prepayid"];
request.package = resultDict[@"package"];
request.nonceStr= resultDict[@"noncestr"];
request.timeStamp= [resultDict[@"timestamp"] intValue];
request.sign= resultDict[@"sign"];
BOOL result = [WXApi sendReq:request];
NSLog(@"当前的微信app_id = %@",[Director sharedInstance].wechat_appid);
if (!result) {
[self postErrorLogToServes:[NSString stringWithFormat:@"打开微信支付失败 \n当前微信app_id:%@\n当前支付信息:%@",[Director sharedInstance].wechat_appid,[request mj_JSONString]]];
}
只有在唤醒不了微信支付的时候才会记录该日志。
求解!!!!!!
你好,请按照以下几点检查:
1 开放平台应用签名得去掉冒号,要小写
2 android studio包签名会变化
3 改完应用签名要过一段时间才生效
4 微信退出重启一下