|
@@ -108,7 +108,7 @@ class Wechat extends Core
|
|
$input->SetNotify_url($this->config->GetNotifyUrl());
|
|
$input->SetNotify_url($this->config->GetNotifyUrl());
|
|
$input->SetTrade_type($trade_type);
|
|
$input->SetTrade_type($trade_type);
|
|
$input->SetProduct_id($product_id);
|
|
$input->SetProduct_id($product_id);
|
|
- if ($type != 4 && $openid != -1) {
|
|
|
|
|
|
+ if ($type == 1 && $openid != -1) {
|
|
|
|
|
|
if (!$openid && Dever::project('passport')) {
|
|
if (!$openid && Dever::project('passport')) {
|
|
$where = array();
|
|
$where = array();
|
|
@@ -145,7 +145,7 @@ class Wechat extends Core
|
|
*/
|
|
*/
|
|
public function qrcode($order, $refer)
|
|
public function qrcode($order, $refer)
|
|
{
|
|
{
|
|
- $notify = new \NativePay();
|
|
|
|
|
|
+ $notify = new \NativePay($this->config);
|
|
$result = $notify->GetPayUrl($order);
|
|
$result = $notify->GetPayUrl($order);
|
|
$url = $result['code_url'];
|
|
$url = $result['code_url'];
|
|
return $url;
|
|
return $url;
|