Browse Source

from config get org_num

master
用户名 3 years ago
parent
commit
55015dceaa
  1. 3
      mobile/plugins/payment/wxpay.php

3
mobile/plugins/payment/wxpay.php

@ -223,6 +223,7 @@ class wxpay
$this->parameters["appid"] = $payinfo['appId']; // 公众账号ID $this->parameters["appid"] = $payinfo['appId']; // 公众账号ID
// 调用秘钥里的配置文件 // 调用秘钥里的配置文件
echo "\r\n start...\r\n";
require_once(BASE_PATH . 'helpers/dalianpay/library/Base.php'); require_once(BASE_PATH . 'helpers/dalianpay/library/Base.php');
$Base = new Base(); $Base = new Base();
// 获取配置信息 // 获取配置信息
@ -230,7 +231,7 @@ class wxpay
// $this->parameters["mch_id"] = '100018380507D2C'; // 商户号 sc_test // $this->parameters["mch_id"] = '100018380507D2C'; // 商户号 sc_test
$this->parameters["mch_id"] = $config['org_num']; // 商户号 sc_test $this->parameters["mch_id"] = $config['org_num']; // 商户号 sc_test
echo "\r\n success!!!!\r\n"; echo "\r\n success!!!!\r\n";
// $this->parameters["spbill_create_ip"] = $_SERVER['REMOTE_ADDR']; // 终端ip // $this->parameters["spbill_create_ip"] = $_SERVER['REMOTE_ADDR']; // 终端ip
$this->parameters["nonce_str"] = $payinfo['nonceStr']; // 随机字符串 $this->parameters["nonce_str"] = $payinfo['nonceStr']; // 随机字符串
$this->parameters["sign"] = $payinfo['paySign']; // 签名 $this->parameters["sign"] = $payinfo['paySign']; // 签名

Loading…
Cancel
Save