mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
创建JsApi及H5支付参数时兼容子商户模式
This commit is contained in:
parent
2708e8d94a
commit
7159f4c72e
@ -87,7 +87,7 @@ class Order extends BasicWePay
|
||||
public function jsapiParams($prepayId)
|
||||
{
|
||||
$option = [];
|
||||
$option["appId"] = $this->config->get('appid');
|
||||
$option["appId"] = $this->config->get('sub_appid') ? $this->config->get('sub_appid') : $this->config->get('appid');
|
||||
$option["timeStamp"] = (string)time();
|
||||
$option["nonceStr"] = Tools::createNoncestr();
|
||||
$option["package"] = "prepay_id={$prepayId}";
|
||||
|
Loading…
x
Reference in New Issue
Block a user