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
08b07a56
Commit
08b07a56
authored
Dec 25, 2019
by
王召彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取支付证书
parent
14acebfb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
src/Common/Config/CfgCenter.php
+15
-0
No files found.
src/Common/Config/CfgCenter.php
View file @
08b07a56
...
@@ -79,6 +79,21 @@ class CfgCenter
...
@@ -79,6 +79,21 @@ class CfgCenter
return
self
::
_get
(
$keyName
,
(
int
)
$result
[
'oemId'
]);
return
self
::
_get
(
$keyName
,
(
int
)
$result
[
'oemId'
]);
}
}
/**
* 根据店铺id获取支付证书
*
* @param integer $storeId
* @return array
*/
public
static
function
getCertByStoreId
(
$keyName
,
$storeId
)
{
$dbConn
=
self
::
dbConnect
(
'seller'
);
$result
=
$dbConn
->
get
(
"seller"
,
[
'oemId'
],
[
'storeId'
=>
$storeId
]);
$oemId
=
(
int
)
$result
[
'oemId'
];
$dbConn
=
self
::
dbConnect
();
//连接配置库
$result
=
$dbConn
->
get
(
"config"
,
[
'certPem'
,
'keyPem'
],
[
'oemId'
=>
$oemId
,
'name'
=>
$keyName
]);
return
$result
;
}
public
static
function
dbConnect
(
$database
=
''
)
public
static
function
dbConnect
(
$database
=
''
)
{
{
if
(
$database
==
''
)
{
if
(
$database
==
''
)
{
...
...
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