微信支付操作中的签名等都是在后台做的,安卓端是可以正常支付,但是 iOS 端微信一直在弹窗提示:“ appid 未关联 paysignkey ”
返回的 Response errCode=-2 errStr=nil type=0
代码:
WXApi.registerApp("wxxxxxxxxxxxx1")
let request = PayReq()
request.partnerId = "14xxxxxxx2";
request.prepayId = String(describing: dict["prepay_id"]);
request.package = "Sign=WXPay";
request.nonceStr = dict["nonce_str"] as! String;
let time:Int = Int(dict["timestamp"] as! String)!
let time32 = UInt32(truncatingBitPattern: time)
request.timeStamp = time32
request.sign = dict["sign"] as! String;
return request
请问下都会有什么原因呢?