应用设置优化
This commit is contained in:
@@ -395,12 +395,12 @@ class OnlinePaymentService
|
||||
*/
|
||||
protected function subAppid(): string
|
||||
{
|
||||
$subAppid = (string) site_config('pay.wangpu_sub_appid', '');
|
||||
$subAppid = (string) site_config('wangpu.sub_appid', '');
|
||||
if ($subAppid === '') {
|
||||
$subAppid = (string) config('services.wangpu.sub_appid', '');
|
||||
}
|
||||
if ($subAppid === '') {
|
||||
$subAppid = (string) config('services.wechat.mini.appid', '');
|
||||
$subAppid = $this->wechat->appid();
|
||||
}
|
||||
return trim($subAppid);
|
||||
}
|
||||
@@ -410,7 +410,7 @@ class OnlinePaymentService
|
||||
*/
|
||||
protected function wxpayMchId(): string
|
||||
{
|
||||
$mchId = (string) site_config('pay.wxpay_mch_id', '');
|
||||
$mchId = (string) site_config('wxpay.mch_id', '');
|
||||
if ($mchId === '') {
|
||||
$mchId = (string) config('services.wxpay.mch_id', '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user