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
aa411fc5
Commit
aa411fc5
authored
Dec 25, 2019
by
王召彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改方法名
parent
d8cc4f65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
src/Common/Config/CfgCenter.php
+16
-16
No files found.
src/Common/Config/CfgCenter.php
View file @
aa411fc5
...
...
@@ -7,31 +7,32 @@ use Swoft\App;
class
CfgCenter
{
const
COS
=
'cos'
;
const
CLS
=
'cls'
;
const
CMQ
=
'cmq'
;
const
ENCRYPT_KEY
=
'encrypt_key'
;
const
BACKEND_WEAPP
=
'backend_weapp'
;
const
FRONTEND_WEAPP
=
'frontend_weapp'
;
const
ALIYUN_SMS
=
'aliyun_sms'
;
const
TENCENT_SMS
=
'tencent_sms'
;
const
MP
=
'mp'
;
const
PAY
=
'pay'
;
const
PAY_YUNMAI
=
'pay_yunmai'
;
const
PAY_YUNMAI_ISP
=
'pay_yunmai_isp'
;
const
PAY_ZHIMEI
=
'pay_zhimei'
;
const
COS
=
'cos'
;
//腾讯云存储
const
CLS
=
'cls'
;
//腾讯云日志服务
const
CMQ
=
'cmq'
;
//腾讯云cmq订阅消息
const
ENCRYPT_KEY
=
'encrypt_key'
;
//数据加密的key
const
BACKEND_WEAPP
=
'backend_weapp'
;
//蓝猫小程序配置
const
FRONTEND_WEAPP
=
'frontend_weapp'
;
//橙猫小程序配置
const
ALIYUN_SMS
=
'aliyun_sms'
;
//阿里云短信
const
TENCENT_SMS
=
'tencent_sms'
;
//腾讯云短信
const
MP
=
'mp'
;
//公众号-用于H5公众号登录和发送公众号通知
const
PAY
=
'pay'
;
//默认的支付平台配置
const
PAY_YUNMAI
=
'pay_yunmai'
;
//云脉的支付平台配置
const
PAY_YUNMAI_ISP
=
'pay_yunmai_isp'
;
//云脉的支付服务商配置,用于托管子商户
const
PAY_ZHIMEI
=
'pay_zhimei'
;
//致美的支付配置
const
SELLER_DISTRIBUTION
=
'seller_distribution'
;
//卖家分享配置
/**
* 读取指定的配置项 - 返回数组格式
* (所有配置项,需预先添加到数据库中)
* $cfgdata = CfgCenter::get
Array
(CfgCenter::COS);
* $cfgdata = CfgCenter::get(CfgCenter::COS);
* var_dump($cfgdata['Weapp']['Region']); // 输出:ap-shanghai
*
* @param string $keyName
* @param int $oemId oemId==1表示是活动啦啦
* @return mixed
*/
public
static
function
get
Array
(
$keyName
,
$oemId
=
1
)
public
static
function
get
(
$keyName
,
$oemId
=
1
)
{
return
self
::
_get
(
$keyName
,
$oemId
);
}
...
...
@@ -50,7 +51,6 @@ class CfgCenter
return
self
::
_get
(
$keyName
,
(
int
)
$result
[
'oemId'
]);
}
/**
* 根据sellerId获取所属OEM平台的配置
*
...
...
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