1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- // +----------------------------------------------------------------------
- // | Niucloud-admin 企业快速开发的多应用管理平台
- // +----------------------------------------------------------------------
- // | 官方网址:https://www.niucloud.com
- // +----------------------------------------------------------------------
- // | niucloud团队 版权所有 开源版本可自由商用
- // +----------------------------------------------------------------------
- // | Author: Niucloud Team
- // +----------------------------------------------------------------------
- namespace addon\mall\app\service\api;
- use addon\mall\app\service\core\order\CoreOrderConfigService;
- use app\service\core\sys\CoreConfigService;
- use core\base\BaseApiService;
- /**
- * 订单服务层
- */
- class ConfigService extends BaseApiService
- {
- /**
- * 查询发票配置
- * @return array|mixed
- */
- public function getInvoiceConfig() {
- $config = (new CoreConfigService())->getConfigValue(0, 'MALL_INVOICE');
- if (empty($config)) {
- $config = [
- 'is_invoice' => '2',
- 'invoice_type' => [],
- 'invoice_content' => []
- ];
- }
- return $config;
- }
- /**
- * 获取评价设置
- * @return array|int[]|mixed
- */
- public function getEvaluateConfig()
- {
- return (new CoreOrderConfigService())->getEvaluateConfig();
- }
- }
|