Commit f6721f2f by 王召彬

配置中心

parent 23edfee1
...@@ -29,7 +29,7 @@ class CfgCenter ...@@ -29,7 +29,7 @@ class CfgCenter
* var_dump($cfgdata['Weapp']['Region']); // 输出:ap-shanghai * var_dump($cfgdata['Weapp']['Region']); // 输出:ap-shanghai
* *
* @param string $keyName * @param string $keyName
* @param int $oemId oemId==1表示是活动啦啦 * @param int $oemId oemId==0表示是活动啦啦
* @return mixed * @return mixed
*/ */
public static function getArray($keyName, $oemId = 0) public static function getArray($keyName, $oemId = 0)
...@@ -79,21 +79,6 @@ class CfgCenter ...@@ -79,21 +79,6 @@ class CfgCenter
return self::_get($keyName, (int)$result['oemId']); return self::_get($keyName, (int)$result['oemId']);
} }
/**
* 获取支付平台证书
*
* @param integer $storeId
* @param integer $isEntrusted 是否是用户托管的小程序
* @return void
*/
public static function getCertByStoreId(int $storeId, int $isEntrusted)
{
$dbConn = self::dbConnect('seller');
$result = $dbConn->get("seller", ['oemId'], ['storeId' => $storeId]);
$oemId = (int)$result['oemId'];
}
public static function dbConnect($database='') public static function dbConnect($database='')
{ {
if($database == '') { if($database == '') {
...@@ -158,6 +143,5 @@ class CfgCenter ...@@ -158,6 +143,5 @@ class CfgCenter
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment