Commit d3675c66 authored by liuyuzhen's avatar liuyuzhen

小程序微信支付缺少openid

parent 84850ca1
......@@ -34,6 +34,9 @@ class Pay {
$alipay= Alipay::getInstance();
$return = $alipay->doPay($orderInfo);
}else if($data['channel'] == \Our\NameConst::wxLiteChannel){
$sess = \Yaf\Session::getInstance();
$authInfo = $sess->get('wxAuthInfo');
$orderInfo['openid'] = $authInfo['openid'];
$wxLitePay = WxLitePay::getInstance();
$return = $wxLitePay->doPay($orderInfo);
}else if($data['channel'] == \Our\NameConst::qqAppChannel){
......
......@@ -39,7 +39,9 @@ class TencentPay {
}else{
$this->parameters['total_fee'] = $total_fee;
}
if(isset($orderInfo['openid'])&&$orderInfo['openid']){
$this->parameters['openid'] = $orderInfo['openid'];
}
$this->parameters['spbill_create_ip']=\Our\Common::getClientIp();
$this->parameters['notify_url']=$this->notify_url;
$this->parameters['trade_type']= $this->tradeType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment