已解决代码参数代入即可: $signData = [ 'offerId' => $merchantConfig['offerId'], 'buyQuantity' => (int)bcmul($order['pay_price'], (string)100), // 'buyQuantity' => 1, 'env' => 0, 'currencyType' => 'CNY', 'outTradeNo' => $order['order_no'], 'attach' => 'pay' ]; $signDataStr = json_encode($signData); $orderParams = [ 'signData' => $signDataStr, 'mode' => 'short_series_coin', //代币直充 ]; $orderParams['paySig'] = hash_hmac('sha256', 'requestVirtualPayment&' . $signDataStr, $merchantConfig['appKey']); $orderParams['signature'] = hash_hmac('sha256', $signDataStr, $session['session_key']);
wx.requestVirtualPayment 参数正确报15005?参数都对的为啥前端调用就是报15005用户态签名错误,求指导[图片]
03-02