Authored by 郝肖肖

灰度环境支付异步地址恢复

... ... @@ -49,7 +49,7 @@ class Service extends PayAbstract
'service' => $this->config->service,
'partner' => $this->config->partner,
'_input_charset' => $this->config->input_charset,
'notify_url' => 'graypayment.service.yoho.cn/' . $this->config->notify_url,
'notify_url' => Yohobuy::SERVICE_URL . $this->config->notify_url,
'return_url' => Helpers::url($this->config->return_url),
/* 业务参数 */
'subject' => $params->goodsName,
... ...
... ... @@ -53,7 +53,7 @@ class Service extends PayAbstract
'service' => $this->config->service,
'partner' => $this->config->partner,
'_input_charset' => $this->config->input_charset,
'notify_url' => 'graypayment.service.yoho.cn/' . $this->config->notify_url,
'notify_url' => Yohobuy::SERVICE_URL . $this->config->notify_url,
'return_url' => Helpers::url($this->config->return_url),
/* 业务参数 */
'subject' => $params->goodsName,
... ...
... ... @@ -2,7 +2,7 @@
namespace WebPlugin\Pay\weixin\lib;
use WebPlugin\PhpLog;
use Api\Yohobuy;
/**
*
* 接口访问类,包含所有微信支付API列表的封装,类中方法为static方法,
... ... @@ -48,10 +48,8 @@ class WxPayApi
throw new WxPayException("统一支付接口中,缺少必填参数product_id!trade_type为JSAPI时,product_id为必填参数!");
}
//异步通知url未设置,则使用配置文件中的url
if (!$inputObj->IsNotify_urlSet()) {
$inputObj->SetNotify_url(WxPayConfig::NOTIFY_URL); //异步通知url
}
//异步通知url
$inputObj->SetNotify_url(Yohobuy::SERVICE_URL . 'payment/weixin_notify'); //异步通知url
$inputObj->SetAppid(WxPayConfig::APPID); //公众账号ID
$inputObj->SetMch_id(WxPayConfig::MCHID); //商户号
... ...
... ... @@ -15,7 +15,6 @@ use WebPlugin\Pay\weixin\lib\WxPayConfig;
use WebPlugin\Pay\weixin\lib\WxPayNativePay;
use WebPlugin\Pay\weixin\lib\WxPayOrderQuery;
use WebPlugin\Pay\weixin\lib\WxPayUnifiedOrder;
use Api\Yohobuy;
use WebPlugin\UdpLog;
/**
... ... @@ -327,7 +326,6 @@ class PaymentModel
$input->SetTotal_fee($totalFee);
$input->SetTime_start(date("YmdHis"));
$input->SetTime_expire(date("YmdHis", time() + 600));
$input->SetNotify_url('graypayment.service.yoho.cn/' . 'payment/weixin_notify');
$input->SetTrade_type("NATIVE");
$input->SetProduct_id($orderCode);
$notify = new WxPayNativePay();
... ...