chore: 添加静态资源文件和版本配置文件
添加大量图片、字体、音频等静态资源文件,包括用户界面图片、模板文件和安装界面素材 添加系统版本配置文件(.version)和常量定义文件(.constant) 更新供应商依赖文件,包括Symfony VarDumper组件和相关许可证文件 添加验证码配置文件(captcha.php)和.gitignore规则
This commit is contained in:
85
app/controller/api/v1/Common.php
Normal file
85
app/controller/api/v1/Common.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/**
|
||||
* +----------------------------------------------------------------------
|
||||
* | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
* +----------------------------------------------------------------------
|
||||
* | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
|
||||
* +----------------------------------------------------------------------
|
||||
* | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
* +----------------------------------------------------------------------
|
||||
* | Author: CRMEB Team <admin@crmeb.com>
|
||||
* +----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
namespace app\controller\api\v1;
|
||||
|
||||
use crmeb\basic\BaseController;
|
||||
|
||||
/**
|
||||
* Class Common
|
||||
* @author 等风来
|
||||
* @email 136327134@qq.com
|
||||
* @date 2022/11/8
|
||||
* @package app\controller\api\v1
|
||||
*/
|
||||
class Common extends BaseController
|
||||
{
|
||||
/**
|
||||
* 获取版权
|
||||
* @return mixed
|
||||
*/
|
||||
public function getCopyright()
|
||||
{
|
||||
try {
|
||||
$copyright = $this->__z6uxyJQ4xYa5ee1mx5();
|
||||
} catch (\Throwable $e) {
|
||||
$copyright = [
|
||||
'copyrightContext' => '',
|
||||
'copyrightImage' => '',
|
||||
];
|
||||
}
|
||||
$copyright['record_No'] = sys_config('record_No');
|
||||
$copyright['version'] = get_crmeb_version();
|
||||
$copyright['routine_contact_type'] = sys_config('routine_contact_type');
|
||||
$copyright['site_name'] = sys_config('site_name', '');
|
||||
$copyright['site_logo'] = sys_config('wap_login_logo', '');
|
||||
$copyright['store_user_agreement'] = (int)sys_config('store_user_agreement');
|
||||
$copyright['routine_auth_type'] = sys_config('routine_auth_type', []);
|
||||
$copyright['wechat_auth_switch'] = (int)in_array(1, $copyright['routine_auth_type']);//微信登录开关
|
||||
$copyright['phone_auth_switch'] = (int)in_array(2, $copyright['routine_auth_type']);//手机号登录开关
|
||||
$copyright['wechat_status'] = sys_config('wechat_appid') && sys_config('wechat_appsecret');
|
||||
$copyright['product_category_level'] = (int)sys_config('product_category_level');//商品分类层级
|
||||
return $this->success($copyright);
|
||||
}
|
||||
|
||||
/**
|
||||
* 登录页面获取logo以及版本全新
|
||||
* @return mixed
|
||||
*/
|
||||
public function getLogo()
|
||||
{
|
||||
try {
|
||||
$copyright = $this->__z6uxyJQ4xYa5ee1mx5();
|
||||
} catch (\Throwable $e) {
|
||||
$copyright = [
|
||||
'copyrightContext' => '',
|
||||
'copyrightImage' => '',
|
||||
];
|
||||
}
|
||||
$copyright['record_No'] = sys_config('record_No');
|
||||
$copyright['version'] = get_crmeb_version();
|
||||
$logo = sys_config('wap_login_logo');
|
||||
if (strstr($logo, 'http') === false && $logo) $logo = sys_config('site_url') . $logo;
|
||||
$copyright['site_name'] = sys_config('site_name');
|
||||
$copyright['logo_url'] = str_replace('\\', '/', $logo);
|
||||
$copyright['store_user_agreement'] = (int)sys_config('store_user_agreement');
|
||||
$copyright['routine_auth_type'] = sys_config('routine_auth_type', []);
|
||||
$copyright['wechat_auth_switch'] = (int)in_array(1, $copyright['routine_auth_type']);//微信登录开关
|
||||
$copyright['phone_auth_switch'] = (int)in_array(2, $copyright['routine_auth_type']);//手机号登录开关
|
||||
$copyright['wechat_status'] = sys_config('wechat_appid') && sys_config('wechat_appsecret');
|
||||
$copyright['product_category_level'] = (int)sys_config('product_category_level');//商品分类层级
|
||||
return app('json')->successful($copyright);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user