diff --git a/mobile/plugins/payment/wxpay.php b/mobile/plugins/payment/wxpay.php index 2bdbcba..7876639 100755 --- a/mobile/plugins/payment/wxpay.php +++ b/mobile/plugins/payment/wxpay.php @@ -210,17 +210,17 @@ class wxpay $this->setParameter("body", $order['order_sn']); // 商品描述 $this->setParameter("out_trade_no", $order['order_sn'] . $order_amount . 'O' . $order['log_id']); // 商户订单号 $this->setParameter("total_fee", $order_amount); // 总金额 - $this->setParameter("notify_url", __URL__ . 'wxpay.php'); // 通知地址 + $this->setParameter("notify_url", __URL__ . 'wxpay.php'); // 通知地址 待修改 $this->setParameter("trade_type", "JSAPI"); // 交易类型 // 从大连支付接口返回的参数 - // $this->parameters["appid"] = $this->payment['wxpay_appid']; // 公众账号ID - // $this->parameters["mch_id"] = $this->payment['wxpay_mchid']; // 商户号 + $this->parameters["appid"] = $payinfo['appId']; // 公众账号ID + $this->parameters["mch_id"] = '5503001'; // 商户号 sc_test // $this->parameters["spbill_create_ip"] = $_SERVER['REMOTE_ADDR']; // 终端ip - // $this->parameters["nonce_str"] = $this->createNoncestr(); // 随机字符串 - // $this->parameters["sign"] = $this->getSign($this->parameters); // 签名 + $this->parameters["nonce_str"] = $payinfo['nonceStr']; // 随机字符串 + $this->parameters["sign"] = $payinfo['paySign']; // 签名 - $prepay_id = $this->getPrepayId(); // 要通过大连支付接口获取到 + // $prepay_id = $this->getPrepayId(); // 要通过大连支付接口获取到 $jsApiParameters = $this->getParameters($prepay_id); // wxjsbridge $js = '