Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
abc1e732
Commit
abc1e732
authored
Dec 25, 2019
by
王召彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据mchId获取对应的支付配置
parent
ffce4514
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
src/Common/Config/CfgCenter.php
+15
-1
No files found.
src/Common/Config/CfgCenter.php
View file @
abc1e732
...
@@ -20,7 +20,7 @@ class CfgCenter
...
@@ -20,7 +20,7 @@ class CfgCenter
const
PAY_YUNMAI
=
'pay_yunmai'
;
//云脉的支付平台配置
const
PAY_YUNMAI
=
'pay_yunmai'
;
//云脉的支付平台配置
const
PAY_YUNMAI_ISP
=
'pay_yunmai_isp'
;
//云脉的支付服务商配置,用于托管子商户
const
PAY_YUNMAI_ISP
=
'pay_yunmai_isp'
;
//云脉的支付服务商配置,用于托管子商户
const
PAY_ZHIMEI
=
'pay_zhimei'
;
//致美的支付配置
const
PAY_ZHIMEI
=
'pay_zhimei'
;
//致美的支付配置
const
SELLER_DISTRIBUTION
=
'seller_distribution'
;
//卖家分
享
配置
const
SELLER_DISTRIBUTION
=
'seller_distribution'
;
//卖家分
销
配置
/**
/**
* 读取指定的配置项 - 返回数组格式
* 读取指定的配置项 - 返回数组格式
...
@@ -80,6 +80,20 @@ class CfgCenter
...
@@ -80,6 +80,20 @@ class CfgCenter
}
}
/**
/**
* 根据mchId获取对应的支付配置
*
* @param string $mchId
* @return mixed
*/
public
static
function
getByMchId
(
int
$mchId
)
{
$dbConn
=
self
::
dbConnect
();
//连接配置库
$result
=
$dbConn
->
get
(
"config"
,
[
'value'
],
[
'mchId'
=>
$mchId
]);
$resArr
=
json_decode
(
$result
[
'value'
],
true
);
return
is_array
(
$resArr
)
?
$resArr
:
$result
[
'value'
];
}
/**
* 根据店铺id获取支付证书
* 根据店铺id获取支付证书
*
*
* @param integer $storeId
* @param integer $storeId
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment