|
|
@@ -92,4 +92,26 @@ class Payment extends BaseService
|
|
|
$storeId = getStoreId();
|
|
|
return WxappSettingModel::getWxappConfig($storeId);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return array
|
|
|
+ * @throws BaseException
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
+ * @throws \think\db\exception\DbException
|
|
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
+ */
|
|
|
+ public static function getPaySetting()
|
|
|
+ {
|
|
|
+ $setting = static::getWxConfig();
|
|
|
+ $setting['pay_type'] = [
|
|
|
+ ['name'=>'微信支付','value'=>20]
|
|
|
+ ];
|
|
|
+ unset($setting['app_id']);
|
|
|
+ unset($setting['app_secret']);
|
|
|
+ unset($setting['mchid']);
|
|
|
+ unset($setting['apikey']);
|
|
|
+ unset($setting['cert_pem']);
|
|
|
+ unset($setting['key_pem']);
|
|
|
+ return $setting;
|
|
|
+ }
|
|
|
}
|