mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-03-13 07:15:53 +00:00
up niucloud
This commit is contained in:
parent
8afcecff6e
commit
e6c822aa8e
@ -18,15 +18,28 @@ use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
|
||||
/**
|
||||
* 插件管理
|
||||
* Class Addon
|
||||
* @description 插件管理
|
||||
* @package app\adminapi\controller\addon
|
||||
*/
|
||||
class Addon extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 插件初始化
|
||||
* @description 插件初始化
|
||||
* @return Response
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
return success((new CoreAddonService())->getInitList());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取已下载插架
|
||||
* @description 获取已下载插架
|
||||
*/
|
||||
public function getLocalAddonList()
|
||||
{
|
||||
@ -35,6 +48,7 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 安装插件
|
||||
* @description 安装插件
|
||||
* @param string $addon
|
||||
*/
|
||||
public function install($addon)
|
||||
@ -44,6 +58,7 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 云安装插件
|
||||
* @description 云安装插件
|
||||
* @param $addon
|
||||
* @return Response
|
||||
*/
|
||||
@ -54,6 +69,7 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取安装任务
|
||||
* @description 获取安装任务
|
||||
* @return Response
|
||||
*/
|
||||
public function getInstallTask() {
|
||||
@ -62,6 +78,7 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取云安装日志
|
||||
* @description 获取云安装日志
|
||||
* @param $addon
|
||||
* @return mixed
|
||||
*/
|
||||
@ -71,6 +88,7 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 插件安装环境检测
|
||||
* @description 插件安装环境检测
|
||||
* @param $addon
|
||||
* @return Response
|
||||
*/
|
||||
@ -81,6 +99,7 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 取消安装
|
||||
* @description 取消安装
|
||||
* @param $addon
|
||||
* @return mixed
|
||||
*/
|
||||
@ -91,6 +110,7 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 卸载插件
|
||||
* @description 卸载插件
|
||||
* @param string $addon
|
||||
*/
|
||||
public function uninstall($addon)
|
||||
@ -101,6 +121,7 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 插件安装环境检测
|
||||
* @description 插件安装环境检测
|
||||
* @param $addon
|
||||
* @return Response
|
||||
*/
|
||||
@ -111,6 +132,7 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 插件列表
|
||||
* @description 插件列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -123,6 +145,7 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 插件详情
|
||||
* @description 插件详情
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -133,6 +156,7 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置插件状态
|
||||
* @description 设置插件状态
|
||||
* @param int $id
|
||||
* @param int $status
|
||||
* @return Response
|
||||
@ -145,7 +169,8 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 下载插件
|
||||
* @param $app_key
|
||||
* @description 下载插件
|
||||
* @param $addon
|
||||
* @return Response
|
||||
*/
|
||||
public function download($addon){
|
||||
@ -158,6 +183,7 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 查询已安装插件
|
||||
* @description 查询已安装插件
|
||||
* @return Response
|
||||
*/
|
||||
public function getInstallList(){
|
||||
@ -166,6 +192,7 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 查询已安装有效应用
|
||||
* @description 查询已安装有效应用
|
||||
*/
|
||||
public function getAddonList()
|
||||
{
|
||||
@ -174,6 +201,7 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 插件类型
|
||||
* @description 插件类型
|
||||
* @return Response
|
||||
*/
|
||||
public function getType(){
|
||||
@ -182,7 +210,8 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 更新插件
|
||||
* @param $app_key
|
||||
* @description 更新插件
|
||||
* @param $addon
|
||||
* @return Response
|
||||
*/
|
||||
public function upgrade($addon = ''){
|
||||
@ -194,8 +223,14 @@ class Addon extends BaseAdminController
|
||||
return success(data:(new AddonService())->getShowAppTools());
|
||||
}
|
||||
|
||||
public function showMarketing()
|
||||
{
|
||||
return success(( new AddonService() )->getShowMarketingTools());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取首页应用标签
|
||||
* @description 获取首页应用标签
|
||||
*/
|
||||
public function getIndexAddonLabelList()
|
||||
{
|
||||
@ -204,6 +239,7 @@ class Addon extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取首页应用
|
||||
* @description 获取首页应用
|
||||
* @return Response
|
||||
*/
|
||||
public function getIndexAddonList()
|
||||
|
||||
@ -16,11 +16,18 @@ use app\service\admin\addon\AddonDevelopService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 开发插件
|
||||
* Class AddonDevelop
|
||||
* @description 开发插件
|
||||
* @package app\adminapi\controller\addon
|
||||
*/
|
||||
class AddonDevelop extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 开发插件列表
|
||||
* @description 开发插件列表
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
@ -30,6 +37,12 @@ class AddonDevelop extends BaseAdminController
|
||||
return success(( new AddonDevelopService() )->getList($data[ 'search' ]));
|
||||
}
|
||||
|
||||
/**
|
||||
* 开发插件详情
|
||||
* @description 开发插件详情
|
||||
* @param $key
|
||||
* @return Response
|
||||
*/
|
||||
public function info($key)
|
||||
{
|
||||
return success(( new AddonDevelopService() )->getInfo($key));
|
||||
@ -37,6 +50,7 @@ class AddonDevelop extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 开发插件新增
|
||||
* @description 开发插件新增
|
||||
* @return Response
|
||||
*/
|
||||
public function add(string $key)
|
||||
@ -60,6 +74,7 @@ class AddonDevelop extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 开发插件更新
|
||||
* @description 开发插件更新
|
||||
* @param string $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -85,6 +100,7 @@ class AddonDevelop extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 删除开发插件
|
||||
* @description 删除开发插件
|
||||
* @param $key
|
||||
* @return Response
|
||||
*/
|
||||
@ -95,7 +111,8 @@ class AddonDevelop extends BaseAdminController
|
||||
}
|
||||
|
||||
/**
|
||||
*校验key是否被占用
|
||||
* 校验key是否被占用
|
||||
* @description 校验key是否被占用
|
||||
* @param $key
|
||||
* @return void
|
||||
*/
|
||||
@ -106,6 +123,7 @@ class AddonDevelop extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 打包
|
||||
* @description 打包
|
||||
* @param $key
|
||||
* @return Response
|
||||
*/
|
||||
@ -117,6 +135,7 @@ class AddonDevelop extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 下载
|
||||
* @description 下载
|
||||
* @param $key
|
||||
* @return Response
|
||||
*/
|
||||
@ -127,7 +146,8 @@ class AddonDevelop extends BaseAdminController
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 插件key黑名单
|
||||
* @description 插件key黑名单
|
||||
* @return Response
|
||||
*/
|
||||
public function keyBlackList()
|
||||
|
||||
@ -15,11 +15,18 @@ use app\service\admin\upgrade\BackupRecordsService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 备份管理
|
||||
* Class Backup
|
||||
* @description 备份管理
|
||||
* @package app\adminapi\controller\addon
|
||||
*/
|
||||
class Backup extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 获取升级记录分页列表
|
||||
* @description 获取升级记录分页列表
|
||||
* @return Response
|
||||
*/
|
||||
public function getRecords()
|
||||
@ -32,6 +39,7 @@ class Backup extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 修改备注
|
||||
* @description 修改备注
|
||||
* @return Response
|
||||
*/
|
||||
public function modifyRemark()
|
||||
@ -46,6 +54,7 @@ class Backup extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 恢复前检测文件是否存在
|
||||
* @description 恢复前检测文件是否存在
|
||||
* @return Response
|
||||
*/
|
||||
public function checkDirExist()
|
||||
@ -58,6 +67,7 @@ class Backup extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 检测目录权限
|
||||
* @description 检测目录权限
|
||||
* @return Response
|
||||
*/
|
||||
public function checkPermission()
|
||||
@ -67,6 +77,7 @@ class Backup extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 恢复备份
|
||||
* @description 恢复备份
|
||||
* @return Response
|
||||
*/
|
||||
public function restoreBackup()
|
||||
@ -81,6 +92,7 @@ class Backup extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 删除升级记录
|
||||
* @description 删除升级记录
|
||||
* @return Response
|
||||
*/
|
||||
public function deleteRecords()
|
||||
@ -94,6 +106,7 @@ class Backup extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 手动备份
|
||||
* @description 手动备份
|
||||
* @return Response
|
||||
*/
|
||||
public function manualBackup()
|
||||
@ -107,6 +120,7 @@ class Backup extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取正在进行的恢复任务
|
||||
* @description 获取正在进行的恢复任务
|
||||
* @return Response
|
||||
*/
|
||||
public function getRestoreTask()
|
||||
@ -116,6 +130,7 @@ class Backup extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取正在进行的备份任务
|
||||
* @description 获取正在进行的备份任务
|
||||
* @return Response
|
||||
*/
|
||||
public function getBackupTask()
|
||||
|
||||
@ -16,11 +16,18 @@ use app\service\admin\upgrade\UpgradeService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 升级管理
|
||||
* Class Upgrade
|
||||
* @description 升级管理
|
||||
* @package app\adminapi\controller\addon
|
||||
*/
|
||||
class Upgrade extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 更新插件
|
||||
* @param $app_key
|
||||
* @description 更新插件
|
||||
* @param $addon
|
||||
* @return Response
|
||||
*/
|
||||
public function upgrade($addon = '')
|
||||
@ -34,7 +41,7 @@ class Upgrade extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 执行升级
|
||||
* @param $app_key
|
||||
* @description 执行升级
|
||||
* @return Response
|
||||
*/
|
||||
public function execute()
|
||||
@ -44,6 +51,7 @@ class Upgrade extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取升级内容
|
||||
* @description 获取升级内容
|
||||
* @param $addon
|
||||
* @return Response
|
||||
*/
|
||||
@ -54,6 +62,7 @@ class Upgrade extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取正在进行的升级任务
|
||||
* @description 获取正在进行的升级任务
|
||||
* @return Response
|
||||
*/
|
||||
public function getUpgradeTask()
|
||||
@ -63,6 +72,7 @@ class Upgrade extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 升级前环境检测
|
||||
* @description 升级前环境检测
|
||||
* @param $addon
|
||||
* @return Response
|
||||
*/
|
||||
@ -73,6 +83,7 @@ class Upgrade extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 清除
|
||||
* @description 清除升级任务
|
||||
* @return Response
|
||||
*/
|
||||
public function clearUpgradeTask()
|
||||
@ -80,12 +91,19 @@ class Upgrade extends BaseAdminController
|
||||
return success(data: ( new UpgradeService() )->clearUpgradeTask(0, 1));
|
||||
}
|
||||
|
||||
/**
|
||||
* 操作
|
||||
* @description 操作
|
||||
* @param $operate
|
||||
* @return Response
|
||||
*/
|
||||
public function operate($operate) {
|
||||
return success(( new UpgradeService() )->operate($operate));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取升级记录分页列表
|
||||
* @description 获取升级记录分页列表
|
||||
* @return Response
|
||||
*/
|
||||
public function getRecords()
|
||||
@ -96,6 +114,11 @@ class Upgrade extends BaseAdminController
|
||||
return success(( new UpgradeRecordsService() )->getPage($data));
|
||||
}
|
||||
|
||||
/**
|
||||
* 刪除升级记录
|
||||
* @description 刪除升级记录
|
||||
* @return Response
|
||||
*/
|
||||
public function delRecords() {
|
||||
$data = $this->request->params([
|
||||
[ 'ids', '' ],
|
||||
|
||||
@ -15,10 +15,17 @@ use app\service\admin\aliapp\AliappConfigService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 支付宝配置
|
||||
* Class Config
|
||||
* @description 支付宝配置
|
||||
* @package app\adminapi\controller\aliapp
|
||||
*/
|
||||
class Config extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 获取支付宝配置信息
|
||||
* @description 获取支付宝配置信息
|
||||
* @return Response
|
||||
*/
|
||||
public function get()
|
||||
@ -28,6 +35,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置支付宝配置信息
|
||||
* @description 设置支付宝配置信息
|
||||
* @return Response
|
||||
*/
|
||||
public function set()
|
||||
@ -49,6 +57,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 静态资源
|
||||
* @description 静态资源
|
||||
* @return Response
|
||||
*/
|
||||
public function static()
|
||||
|
||||
@ -17,23 +17,25 @@ use think\Response;
|
||||
|
||||
/**
|
||||
* 站点小程序版本升级下载控制器
|
||||
* @description 站点小程序版本升级下载
|
||||
*/
|
||||
class SiteVersion extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 列表
|
||||
* @description 列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
$data = $this->request->params([
|
||||
|
||||
]);
|
||||
return success((new AppletVersionSiteService())->getPage($data));
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
* @description 详情
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -44,6 +46,7 @@ class SiteVersion extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 查询最后一个下载或升级的版本
|
||||
* @description 查询最后一个下载或升级的版本
|
||||
* @param string $type
|
||||
* @return Response
|
||||
*/
|
||||
@ -54,6 +57,7 @@ class SiteVersion extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 查看可升级的最高版本
|
||||
* @description 查看可升级的最高版本
|
||||
* @param string $type
|
||||
* @return Response
|
||||
*/
|
||||
|
||||
@ -18,11 +18,13 @@ use think\Response;
|
||||
|
||||
/**
|
||||
* 小程序版本管理控制器
|
||||
* @description 小程序版本管理
|
||||
*/
|
||||
class Version extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 列表
|
||||
* @description 列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -35,6 +37,7 @@ class Version extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 详情
|
||||
* @description 详情
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -45,6 +48,7 @@ class Version extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加
|
||||
* @description 添加
|
||||
* @return Response
|
||||
*/
|
||||
public function add()
|
||||
@ -62,6 +66,7 @@ class Version extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
* @description 编辑
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -80,6 +85,7 @@ class Version extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @description 删除
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -91,6 +97,7 @@ class Version extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置状态
|
||||
* @description 设置状态
|
||||
* @param int $id
|
||||
* @param $status
|
||||
* @return Response
|
||||
@ -103,6 +110,7 @@ class Version extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 小程序包上传
|
||||
* @description 小程序包上传
|
||||
* @return Response
|
||||
* @throws Exception
|
||||
*/
|
||||
|
||||
@ -17,12 +17,14 @@ use think\response\File;
|
||||
|
||||
/**
|
||||
* 小程序版本下载控制器
|
||||
* @description 小程序版本下载
|
||||
*/
|
||||
class VersionDownload extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 下载
|
||||
* @description 下载
|
||||
* @param $id
|
||||
* @return File
|
||||
*/
|
||||
|
||||
@ -16,11 +16,18 @@ use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
|
||||
/**
|
||||
* 用户管理
|
||||
* Class Auth
|
||||
* @description 用户管理
|
||||
* @package app\adminapi\controller\auth
|
||||
*/
|
||||
class Auth extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 登录用户菜单列表的接口
|
||||
* @description 登录用户菜单列表
|
||||
*/
|
||||
public function authMenuList()
|
||||
{
|
||||
@ -34,6 +41,7 @@ class Auth extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取登录用户信息
|
||||
* @description 获取登录用户信息
|
||||
* @return Response
|
||||
*/
|
||||
public function get()
|
||||
@ -43,6 +51,7 @@ class Auth extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 修改登录用户信息
|
||||
* @description 修改登录用户信息
|
||||
* @param $field
|
||||
* @return Response
|
||||
*/
|
||||
@ -59,6 +68,7 @@ class Auth extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 更新用户
|
||||
* @description 更新用户
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
|
||||
@ -15,10 +15,16 @@ use app\service\admin\channel\H5Service;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* H5配置
|
||||
* Class H5
|
||||
* @package app\adminapi\controller\channel
|
||||
*/
|
||||
class H5 extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 获取H5配置信息
|
||||
* @description 获取H5配置信息
|
||||
* @return Response
|
||||
*/
|
||||
public function get()
|
||||
@ -28,6 +34,7 @@ class H5 extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置H5配置信息
|
||||
* @description 设置H5配置信息
|
||||
* @return Response
|
||||
*/
|
||||
public function set()
|
||||
|
||||
@ -15,10 +15,17 @@ use app\service\admin\channel\PcService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* PC端配置
|
||||
* Class Pc
|
||||
* @description PC端配置
|
||||
* @package app\adminapi\controller\channel
|
||||
*/
|
||||
class Pc extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 获取PC配置信息
|
||||
* @description 获取PC配置信息
|
||||
* @return Response
|
||||
*/
|
||||
public function get()
|
||||
@ -28,6 +35,7 @@ class Pc extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置PC配置信息
|
||||
* @description 设置PC配置信息
|
||||
* @return Response
|
||||
*/
|
||||
public function set()
|
||||
|
||||
@ -18,12 +18,14 @@ use app\service\admin\dict\DictService;
|
||||
/**
|
||||
* 数据字典控制器
|
||||
* Class Dict
|
||||
* @description 数据字典
|
||||
* @package app\adminapi\controller\dict
|
||||
*/
|
||||
class Dict extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 获取数据字典列表
|
||||
* @description 获取数据字典列表
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function lists(){
|
||||
@ -36,6 +38,7 @@ class Dict extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 数据字典详情
|
||||
* @description 数据字典详情
|
||||
* @param int $id
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -45,6 +48,7 @@ class Dict extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加数据字典
|
||||
* @description 添加数据字典
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function add(){
|
||||
@ -61,6 +65,7 @@ class Dict extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 数据字典编辑
|
||||
* @description 数据字典编辑
|
||||
* @param $id 数据字典id
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -77,6 +82,7 @@ class Dict extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 数据字典删除
|
||||
* @description 数据字典删除
|
||||
* @param $id 数据字典id
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -87,6 +93,7 @@ class Dict extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加数据字典内容
|
||||
* @description 添加数据字典内容
|
||||
*/
|
||||
public function addDictData($id)
|
||||
{
|
||||
@ -101,6 +108,7 @@ class Dict extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取全部数据字典
|
||||
* @description 获取全部数据字典
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function getAll(){
|
||||
@ -109,6 +117,7 @@ class Dict extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 数据字典详情
|
||||
* @description 数据字典详情
|
||||
* @param key 数据字典关键字
|
||||
* @return \think\Response
|
||||
*/
|
||||
|
||||
@ -19,12 +19,14 @@ use think\Response;
|
||||
/**
|
||||
* 自定义配置相关
|
||||
* Class Config
|
||||
* @description 自定义配置
|
||||
* @package app\adminapi\controller\diy
|
||||
*/
|
||||
class Config extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 获取底部导航列表
|
||||
* @description 获取底部导航列表
|
||||
* @return Response
|
||||
*/
|
||||
public function getBottomList()
|
||||
@ -34,6 +36,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取底部导航
|
||||
* @description 获取底部导航
|
||||
* @return Response
|
||||
*/
|
||||
public function getBottomConfig()
|
||||
@ -46,6 +49,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置底部导航
|
||||
* @description 设置底部导航
|
||||
* @return Response
|
||||
*/
|
||||
public function setBottomConfig()
|
||||
|
||||
@ -24,12 +24,14 @@ use think\Response;
|
||||
/**
|
||||
* 自定义页面控制器
|
||||
* Class DiyController
|
||||
* @description 自定义页面
|
||||
* @package app\adminapi\controller\diy
|
||||
*/
|
||||
class Diy extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* @notes 获取自定义页面分页列表
|
||||
* 获取自定义页面分页列表
|
||||
* @description 获取自定义页面分页列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -44,7 +46,8 @@ class Diy extends BaseAdminController
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 获取自定义页面分页列表,轮播搜索组件用
|
||||
* 获取自定义页面分页列表,轮播搜索组件用
|
||||
* @description 获取自定义页面分页列表,轮播搜索组件用
|
||||
* @return Response
|
||||
*/
|
||||
public function getPageByCarouselSearch()
|
||||
@ -53,7 +56,8 @@ class Diy extends BaseAdminController
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 获取自定义页面列表
|
||||
* 获取自定义页面列表
|
||||
* @description 获取自定义页面列表
|
||||
* @return Response
|
||||
* @throws DataNotFoundException
|
||||
* @throws DbException
|
||||
@ -71,6 +75,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 自定义页面详情
|
||||
* @description 自定义页面详情
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -81,6 +86,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加自定义页面
|
||||
* @description 添加自定义页面
|
||||
* @return Response
|
||||
*/
|
||||
public function add()
|
||||
@ -104,6 +110,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 自定义页面编辑
|
||||
* @description 自定义页面编辑
|
||||
* @param $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -126,6 +133,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 自定义页面删除
|
||||
* @description 自定义页面删除
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -137,6 +145,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设为使用
|
||||
* @description 设为使用
|
||||
* @param $id
|
||||
* @return Response
|
||||
* @throws Exception
|
||||
@ -149,6 +158,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取页面初始化数据
|
||||
* @description 获取页面初始化数据
|
||||
* @return Response
|
||||
*/
|
||||
public function getPageInit()
|
||||
@ -166,6 +176,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取自定义链接列表
|
||||
* @description 获取自定义链接列表
|
||||
*/
|
||||
public function getLink()
|
||||
{
|
||||
@ -175,6 +186,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取页面模板
|
||||
* @description 获取页面模板
|
||||
* @return Response
|
||||
*/
|
||||
public function getTemplate()
|
||||
@ -192,6 +204,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 修改页面分享内容
|
||||
* @description 修改页面分享内容
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -206,6 +219,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取装修页面列表
|
||||
* @description 获取装修页面列表
|
||||
*/
|
||||
public function getDecoratePage()
|
||||
{
|
||||
@ -217,6 +231,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 切换模板
|
||||
* @description 切换模板
|
||||
*/
|
||||
public function changeTemplate()
|
||||
{
|
||||
@ -234,6 +249,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取模板页面列表
|
||||
* @description 获取模板页面列表
|
||||
* @return Response
|
||||
*/
|
||||
public function getTemplatePages()
|
||||
@ -248,6 +264,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取模板页面(存在的应用插件列表)
|
||||
* @description 获取模板页面(存在的应用插件列表)
|
||||
* @return Response
|
||||
*/
|
||||
public function getApps()
|
||||
@ -257,6 +274,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 复制模版
|
||||
* @description 复制模版
|
||||
* @return Response
|
||||
*/
|
||||
public function copy()
|
||||
@ -270,6 +288,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取主题风格列表
|
||||
* @description 获取主题风格列表
|
||||
* @return Response
|
||||
*/
|
||||
public function getDiyTheme()
|
||||
@ -279,6 +298,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置主题风格
|
||||
* @description 设置主题风格
|
||||
* @return Response
|
||||
*/
|
||||
public function setDiyTheme()
|
||||
@ -296,6 +316,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取主题配色列表
|
||||
* @description 获取主题配色列表
|
||||
* @return Response
|
||||
*/
|
||||
public function getDefaultThemeColor()
|
||||
@ -308,6 +329,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加自定义主题配色
|
||||
* @description 添加自定义主题配色
|
||||
* @return Response
|
||||
*/
|
||||
public function addDiyTheme()
|
||||
@ -326,6 +348,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 编辑自定义主题配色
|
||||
* @description 编辑自定义主题配色
|
||||
* @param $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -345,6 +368,7 @@ class Diy extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 删除自定义主题配色
|
||||
* @description 删除自定义主题配色
|
||||
* @param $id
|
||||
* @return Response
|
||||
*/
|
||||
|
||||
@ -24,12 +24,14 @@ use think\Response;
|
||||
/**
|
||||
* 万能表单控制器
|
||||
* Class DiyForm
|
||||
* @description 万能表单
|
||||
* @package app\adminapi\controller\diy
|
||||
*/
|
||||
class DiyForm extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* @notes 获取万能表单分页列表
|
||||
* 获取万能表单分页列表
|
||||
* @description 获取万能表单分页列表
|
||||
* @return Response
|
||||
*/
|
||||
public function pages()
|
||||
@ -43,7 +45,8 @@ class DiyForm extends BaseAdminController
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 获取万能表单分页列表(用于弹框选择)
|
||||
* 获取万能表单分页列表(用于弹框选择)
|
||||
* @description 获取万能表单分页列表(用于弹框选择)
|
||||
* @return Response
|
||||
*/
|
||||
public function select()
|
||||
@ -58,7 +61,8 @@ class DiyForm extends BaseAdminController
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 获取万能表单列表
|
||||
* 获取万能表单列表
|
||||
* @description 获取万能表单列表
|
||||
* @return Response
|
||||
* @throws DataNotFoundException
|
||||
* @throws DbException
|
||||
@ -77,6 +81,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 万能表单详情
|
||||
* @description 万能表单详情
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -87,6 +92,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加万能表单
|
||||
* @description 添加万能表单
|
||||
* @return Response
|
||||
*/
|
||||
public function add()
|
||||
@ -105,6 +111,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 万能表单编辑
|
||||
* @description 万能表单编辑
|
||||
* @param $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -124,6 +131,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 万能表单删除
|
||||
* @description 万能表单删除
|
||||
* @return Response
|
||||
*/
|
||||
public function del()
|
||||
@ -137,6 +145,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取万能表单初始化数据
|
||||
* @description 获取万能表单初始化数据
|
||||
* @return Response
|
||||
* @throws DbException
|
||||
*/
|
||||
@ -153,6 +162,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取万能表单模板
|
||||
* @description 获取万能表单模板
|
||||
* @return Response
|
||||
*/
|
||||
public function getTemplate()
|
||||
@ -167,6 +177,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 修改页面分享内容
|
||||
* @description 修改页面分享内容
|
||||
* @return Response
|
||||
*/
|
||||
public function modifyShare()
|
||||
@ -181,6 +192,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取模板页面(存在的应用插件列表)
|
||||
* @description 获取模板页面(存在的应用插件列表)
|
||||
* @return Response
|
||||
*/
|
||||
public function getApps()
|
||||
@ -189,7 +201,8 @@ class DiyForm extends BaseAdminController
|
||||
}
|
||||
|
||||
/**
|
||||
* 复制模版 todo 靠后
|
||||
* 复制万能表单
|
||||
* @description 复制万能表单
|
||||
* @return Response
|
||||
*/
|
||||
public function copy()
|
||||
@ -203,6 +216,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取模板页面(存在的应用插件列表)
|
||||
* @description 获取模板页面(存在的应用插件列表)
|
||||
* @return Response
|
||||
*/
|
||||
public function getFormType()
|
||||
@ -212,6 +226,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 修改状态
|
||||
* @description 修改状态
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function modifyStatus()
|
||||
@ -226,6 +241,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取使用记录
|
||||
* @description 获取使用记录
|
||||
* @return Response
|
||||
*/
|
||||
public function getRecordPages()
|
||||
@ -240,6 +256,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取使用记录详情
|
||||
* @description 获取使用记录详情
|
||||
* @param int $record_id
|
||||
* @return Response
|
||||
*/
|
||||
@ -250,6 +267,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 使用记录删除
|
||||
* @description 使用记录删除
|
||||
* @return Response
|
||||
*/
|
||||
public function delRecord()
|
||||
@ -264,6 +282,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取万能表单字段记录
|
||||
* @description 获取万能表单字段记录
|
||||
* @return Response
|
||||
*/
|
||||
public function getFieldsList()
|
||||
@ -278,6 +297,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取表单填写配置
|
||||
* @description 获取表单填写配置
|
||||
* @param $form_id int 所属万能表单id
|
||||
* @return Response
|
||||
*/
|
||||
@ -288,6 +308,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 编辑表单填写配置
|
||||
* @description 编辑表单填写配置
|
||||
* @return Response
|
||||
*/
|
||||
public function editWriteConfig()
|
||||
@ -314,6 +335,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取表单提交成功 也配置
|
||||
* @description 获取表单提交成功页配置
|
||||
* @param $form_id int 所属万能表单id
|
||||
* @return Response
|
||||
*/
|
||||
@ -324,6 +346,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 编辑表单提交成功页配置
|
||||
* @description 编辑表单提交成功页配置
|
||||
* @return Response
|
||||
*/
|
||||
public function editSubmitConfig()
|
||||
@ -347,6 +370,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取万能表单填表人统计列表
|
||||
* @description 获取万能表单填表人统计列表
|
||||
* @return Response
|
||||
*/
|
||||
public function memberStatPages()
|
||||
@ -360,6 +384,7 @@ class DiyForm extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取万能表单字段统计列表
|
||||
* @description 获取万能表单字段统计列表
|
||||
* @return Response
|
||||
*/
|
||||
public function fieldStatList()
|
||||
|
||||
@ -19,12 +19,14 @@ use think\Response;
|
||||
/**
|
||||
* 自定义路由表控制器
|
||||
* Class DiyRouteController
|
||||
* @description 自定义路由
|
||||
* @package app\adminapi\controller\diy
|
||||
*/
|
||||
class DiyRoute extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* @notes 获取自定义路由表列表
|
||||
* 获取自定义路由表列表
|
||||
* @description 获取自定义路由表列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -39,6 +41,7 @@ class DiyRoute extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 自定义路由表详情
|
||||
* @description 自定义路由表详情
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -49,6 +52,7 @@ class DiyRoute extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 自定义路由表详情
|
||||
* @description 自定义路由表详情
|
||||
* @param string $name
|
||||
* @return Response
|
||||
*/
|
||||
@ -59,6 +63,7 @@ class DiyRoute extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加自定义路由表
|
||||
* @description 添加自定义路由表
|
||||
* @return Response
|
||||
*/
|
||||
public function add()
|
||||
@ -77,6 +82,7 @@ class DiyRoute extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 自定义路由表编辑
|
||||
* @description 自定义路由表编辑
|
||||
* @param $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -96,6 +102,7 @@ class DiyRoute extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 自定义路由表删除
|
||||
* @description 自定义路由表删除
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -107,6 +114,7 @@ class DiyRoute extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 修改页面分享内容
|
||||
* @description 修改页面分享内容
|
||||
*/
|
||||
public function modifyShare()
|
||||
{
|
||||
@ -125,6 +133,7 @@ class DiyRoute extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取模板页面(存在的应用插件列表)
|
||||
* @description 获取模板页面(存在的应用插件列表)
|
||||
* @return Response
|
||||
*/
|
||||
public function getApps()
|
||||
|
||||
@ -22,12 +22,14 @@ use think\Response;
|
||||
/**
|
||||
* 代码生成-控制器
|
||||
* Class Generate
|
||||
* @description 代码生成器
|
||||
* @package app\adminapi\controller\generate
|
||||
*/
|
||||
class Generator extends BaseController
|
||||
{
|
||||
/**
|
||||
* 代码生成器列表
|
||||
* @description 代码生成器列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -43,6 +45,7 @@ class Generator extends BaseController
|
||||
|
||||
/**
|
||||
* 代码生成详情
|
||||
* @description 代码生成详情
|
||||
* @param int $id
|
||||
* @return Response
|
||||
* @throws DataNotFoundException
|
||||
@ -56,6 +59,7 @@ class Generator extends BaseController
|
||||
|
||||
/**
|
||||
* 代码预览
|
||||
* @description 代码预览
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -68,6 +72,7 @@ class Generator extends BaseController
|
||||
|
||||
/**
|
||||
* 添加代码生成
|
||||
* @description 添加代码生成
|
||||
* @return Response
|
||||
* @throws Exception
|
||||
*/
|
||||
@ -83,6 +88,7 @@ class Generator extends BaseController
|
||||
|
||||
/**
|
||||
* 代码生成编辑
|
||||
* @description 代码生成编辑
|
||||
* @param $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -111,6 +117,7 @@ class Generator extends BaseController
|
||||
|
||||
/**
|
||||
* 代码生成删除
|
||||
* @description 代码生成删除
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -122,6 +129,7 @@ class Generator extends BaseController
|
||||
|
||||
/**
|
||||
* 生成代码
|
||||
* @description 生成代码
|
||||
* @return Response
|
||||
*/
|
||||
public function create()
|
||||
@ -137,6 +145,7 @@ class Generator extends BaseController
|
||||
|
||||
/**
|
||||
* 获取数据表列表
|
||||
* @description 获取数据表列表
|
||||
* @return Response
|
||||
*/
|
||||
public function tableList()
|
||||
@ -151,6 +160,7 @@ class Generator extends BaseController
|
||||
|
||||
/**
|
||||
* 代码生成检测
|
||||
* @description 代码生成检测
|
||||
*/
|
||||
public function checkFile()
|
||||
{
|
||||
@ -163,6 +173,7 @@ class Generator extends BaseController
|
||||
|
||||
/**
|
||||
* 获取表字段
|
||||
* @description 获取表字段
|
||||
*/
|
||||
public function getTableColumn()
|
||||
{
|
||||
@ -172,9 +183,9 @@ class Generator extends BaseController
|
||||
return success((new GenerateService())->getTableColumn($data));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取全部模型
|
||||
* @description 获取全部模型
|
||||
*/
|
||||
public function getModels()
|
||||
{
|
||||
@ -186,6 +197,7 @@ class Generator extends BaseController
|
||||
|
||||
/**
|
||||
* 根据模型获取表字段
|
||||
* @description 根据模型获取表字段
|
||||
*/
|
||||
public function getModelTableColumn()
|
||||
{
|
||||
|
||||
@ -15,12 +15,18 @@ use app\service\admin\captcha\CaptchaService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 验证码
|
||||
* Class Captcha
|
||||
* @description 验证码
|
||||
* @package app\adminapi\controller\login
|
||||
*/
|
||||
class Captcha extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* 创建验证码
|
||||
* @description 创建验证码
|
||||
* @return Response
|
||||
*/
|
||||
public function create()
|
||||
@ -30,6 +36,7 @@ class Captcha extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 一次校验验证码
|
||||
* @description 一次校验验证码
|
||||
* @return Response
|
||||
*/
|
||||
public function check()
|
||||
@ -39,6 +46,7 @@ class Captcha extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 二次校验验证码
|
||||
* @description 二次校验验证码
|
||||
* @return Response
|
||||
*/
|
||||
public function verification()
|
||||
|
||||
@ -15,12 +15,18 @@ use app\service\admin\auth\ConfigService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
|
||||
/**
|
||||
* 登录设置
|
||||
* Class Config
|
||||
* @description 登录设置
|
||||
* @package app\adminapi\controller\login
|
||||
*/
|
||||
class Config extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 获取登录设置
|
||||
* @description 获取登录设置
|
||||
* @return Response
|
||||
*/
|
||||
public function getConfig()
|
||||
@ -30,6 +36,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 注册与登录设置
|
||||
* @description 注册与登录设置
|
||||
* @return Response
|
||||
*/
|
||||
public function setConfig()
|
||||
|
||||
@ -16,10 +16,18 @@ use app\service\admin\auth\LoginService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 登录
|
||||
* Class Login
|
||||
* @description 登录
|
||||
* @package app\adminapi\controller\login
|
||||
*/
|
||||
class Login extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 登录
|
||||
* @description 登录
|
||||
* @return Response
|
||||
*/
|
||||
public function login()
|
||||
@ -41,7 +49,8 @@ class Login extends BaseAdminController
|
||||
}
|
||||
|
||||
/**
|
||||
* 登出
|
||||
* 退出登录
|
||||
* @description 退出登录
|
||||
* @return Response
|
||||
*/
|
||||
public function logout()
|
||||
@ -50,9 +59,9 @@ class Login extends BaseAdminController
|
||||
return success('LOGOUT');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取登录设置
|
||||
* @description 获取登录设置
|
||||
* @return Response
|
||||
*/
|
||||
public function getConfig()
|
||||
|
||||
@ -17,10 +17,17 @@ use app\service\admin\member\MemberService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 会员账户
|
||||
* Class Account
|
||||
* @description 会员账户
|
||||
* @package app\adminapi\controller\member
|
||||
*/
|
||||
class Account extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 积分流水
|
||||
* @description 积分流水
|
||||
* @return Response
|
||||
*/
|
||||
public function point()
|
||||
@ -37,6 +44,7 @@ class Account extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 会员积分统计(用于会员积分统计窗口)
|
||||
* @description 会员积分统计(用于会员积分统计窗口)
|
||||
*/
|
||||
public function sumPoint()
|
||||
{
|
||||
@ -64,6 +72,7 @@ class Account extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 余额流水
|
||||
* @description 余额流水
|
||||
* @return Response
|
||||
*/
|
||||
public function balance()
|
||||
@ -80,6 +89,7 @@ class Account extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 可提现余额流水
|
||||
* @description 可提现余额流水
|
||||
* @return Response
|
||||
*/
|
||||
public function money()
|
||||
@ -96,6 +106,7 @@ class Account extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 查询成长值
|
||||
* @description 查询成长值
|
||||
* @return Response
|
||||
*/
|
||||
public function growth()
|
||||
@ -112,6 +123,7 @@ class Account extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 积分账户调整
|
||||
* @description 积分账户调整
|
||||
*/
|
||||
public function adjustPoint()
|
||||
{
|
||||
@ -126,6 +138,7 @@ class Account extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 余额账户调整
|
||||
* @description 余额账户调整
|
||||
*/
|
||||
public function adjustBalance()
|
||||
{
|
||||
@ -140,6 +153,7 @@ class Account extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 零钱调整
|
||||
* @description 零钱调整
|
||||
* @return Response
|
||||
*/
|
||||
public function adjustMoney()
|
||||
@ -155,6 +169,7 @@ class Account extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 会员佣金
|
||||
* @description 会员佣金
|
||||
* @return Response
|
||||
*/
|
||||
public function commission()
|
||||
@ -171,6 +186,7 @@ class Account extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 会员佣金统计(用于会员账户统计窗口)
|
||||
* @description 会员佣金统计(用于会员账户统计窗口)
|
||||
*/
|
||||
public function sumCommission()
|
||||
{
|
||||
@ -202,6 +218,7 @@ class Account extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 会员余额统计(用于会员账户统计窗口)
|
||||
* @description 会员余额统计(用于会员账户统计窗口)
|
||||
*/
|
||||
public function sumBalance()
|
||||
{
|
||||
@ -223,6 +240,7 @@ class Account extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 账户变化类型
|
||||
* @description 账户变化类型
|
||||
* @param string $account_type
|
||||
* @return Response
|
||||
*/
|
||||
@ -234,6 +252,7 @@ class Account extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 账户类型
|
||||
* @description 账户类型
|
||||
*/
|
||||
public function accountType()
|
||||
{
|
||||
|
||||
@ -17,11 +17,13 @@ use core\base\BaseAdminController;
|
||||
|
||||
/**
|
||||
* 会员收货地址控制器
|
||||
* @description 会员收货地址
|
||||
*/
|
||||
class Address extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 获取会员收货地址列表
|
||||
* @description 获取会员收货地址列表
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function lists(){
|
||||
@ -33,6 +35,7 @@ class Address extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 会员收货地址详情
|
||||
* @description 会员收货地址详情
|
||||
* @param $id 会员收货地址id
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -45,6 +48,7 @@ class Address extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加会员收货地址
|
||||
* @description 添加会员收货地址
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function add(){
|
||||
@ -68,6 +72,7 @@ class Address extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 会员收货地址编辑
|
||||
* @description 会员收货地址编辑
|
||||
* @param $id 会员收货地址id
|
||||
* @return \think\Response
|
||||
*/
|
||||
|
||||
@ -17,10 +17,17 @@ use app\service\admin\member\MemberCashOutService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 提现
|
||||
* Class CashOut
|
||||
* @description 提现
|
||||
* @package app\adminapi\controller\member
|
||||
*/
|
||||
class CashOut extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 提现列表
|
||||
* @description 提现列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -40,6 +47,7 @@ class CashOut extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 提现详情
|
||||
* @description 提现详情
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -48,6 +56,13 @@ class CashOut extends BaseAdminController
|
||||
return success((new MemberCashOutService())->getInfo($id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 提现申请
|
||||
* @description 提现申请
|
||||
* @param $id
|
||||
* @param $action
|
||||
* @return Response
|
||||
*/
|
||||
public function audit($id, $action)
|
||||
{
|
||||
$data = $this->request->params([
|
||||
@ -59,6 +74,7 @@ class CashOut extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 转账方式
|
||||
* @description 转账方式
|
||||
* @return Response
|
||||
*/
|
||||
public function getTransferType()
|
||||
@ -68,6 +84,7 @@ class CashOut extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 转账方式
|
||||
* @description 转账方式
|
||||
* @param $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -84,6 +101,7 @@ class CashOut extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 备注转账信息
|
||||
* @description 备注转账信息
|
||||
* @param $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -97,6 +115,7 @@ class CashOut extends BaseAdminController
|
||||
}
|
||||
/**
|
||||
* 状态
|
||||
* @description 状态
|
||||
* @return Response
|
||||
*/
|
||||
public function getStatusList()
|
||||
@ -106,6 +125,7 @@ class CashOut extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 统计数据
|
||||
* @description 统计数据
|
||||
*/
|
||||
public function stat()
|
||||
{
|
||||
@ -114,6 +134,7 @@ class CashOut extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 校验数组是否
|
||||
* @description 校验数组是否
|
||||
* @return void
|
||||
*/
|
||||
public function checkTransferStatus($id){
|
||||
@ -123,6 +144,7 @@ class CashOut extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 取消
|
||||
* @description 取消
|
||||
* @param $id
|
||||
* @return void
|
||||
*/
|
||||
|
||||
@ -16,10 +16,17 @@ use app\service\admin\member\MemberService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 会员设置
|
||||
* Class Config
|
||||
* @description 会员设置
|
||||
* @package app\adminapi\controller\member
|
||||
*/
|
||||
class Config extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 获取登录设置
|
||||
* @description 获取登录设置
|
||||
* @return Response
|
||||
*/
|
||||
public function getLoginConfig()
|
||||
@ -29,6 +36,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 注册与登录设置
|
||||
* @description 设置注册与登录配置
|
||||
* @return Response
|
||||
*/
|
||||
public function setLoginConfig()
|
||||
@ -50,6 +58,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取提现设置
|
||||
* @description 获取提现设置
|
||||
* @return Response
|
||||
*/
|
||||
public function getCashOutConfig()
|
||||
@ -59,6 +68,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 提现设置
|
||||
* @description 设置提现设置
|
||||
* @return Response
|
||||
*/
|
||||
public function setCashOutConfig()
|
||||
@ -78,6 +88,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取会员配置
|
||||
* @description 获取会员配置
|
||||
* @return Response
|
||||
*/
|
||||
public function getMemberConfig()
|
||||
@ -87,13 +98,15 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置会员配置
|
||||
* @description 设置会员配置
|
||||
* @return Response
|
||||
*/
|
||||
public function setMemberConfig()
|
||||
{
|
||||
$data = $this->request->params([
|
||||
[ 'prefix', '' ],
|
||||
[ 'length', 10 ]
|
||||
[ 'length', 10 ],
|
||||
[ 'form_id', '' ],
|
||||
]);
|
||||
$this->validate($data, 'app\validate\member\MemberConfig.set');
|
||||
( new MemberConfigService() )->setMemberConfig($data);
|
||||
@ -102,6 +115,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取成长值规则配置
|
||||
* @description 获取成长值规则配置
|
||||
* @return Response
|
||||
*/
|
||||
public function getGrowthRuleConfig()
|
||||
@ -111,6 +125,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 配置成长值规则
|
||||
* @description 配置成长值规则
|
||||
* @return Response
|
||||
*/
|
||||
public function setGrowthRuleConfig()
|
||||
@ -127,6 +142,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取积分规则配置
|
||||
* @description 获取积分规则配置
|
||||
* @return Response
|
||||
*/
|
||||
public function getPointRuleConfig()
|
||||
@ -136,6 +152,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 配置积分规则
|
||||
* @description 配置积分规则
|
||||
* @return Response
|
||||
*/
|
||||
public function setPointRuleConfig()
|
||||
|
||||
@ -21,10 +21,17 @@ use think\db\exception\DbException;
|
||||
use think\db\exception\ModelNotFoundException;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 会员管理
|
||||
* Class Member
|
||||
* @description 会员管理
|
||||
* @package app\adminapi\controller\member
|
||||
*/
|
||||
class Member extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 会员列表
|
||||
* @description 会员列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -42,6 +49,7 @@ class Member extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 会员详情
|
||||
* @description 会员详情
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -52,6 +60,7 @@ class Member extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加会员
|
||||
* @description 添加会员
|
||||
* @return Response
|
||||
*/
|
||||
public function add()
|
||||
@ -76,6 +85,7 @@ class Member extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 修改会员
|
||||
* @description 修改会员
|
||||
* @param $member_id
|
||||
* @param $field
|
||||
* @return Response
|
||||
@ -95,6 +105,7 @@ class Member extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 更新
|
||||
* @description 更新
|
||||
* @return Response
|
||||
*/
|
||||
public function edit($member_id)
|
||||
@ -112,6 +123,12 @@ class Member extends BaseAdminController
|
||||
return success('EDIT_SUCCESS');
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除会员
|
||||
* @description 删除会员
|
||||
* @param $member_id
|
||||
* @return Response
|
||||
*/
|
||||
public function del($member_id)
|
||||
{
|
||||
$res = (new MemberService())->deleteMember($member_id);
|
||||
@ -120,6 +137,7 @@ class Member extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 导出会员列表
|
||||
* @description 导出会员列表
|
||||
* @return Response
|
||||
*/
|
||||
public function export()
|
||||
@ -137,6 +155,7 @@ class Member extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 会员使用场景
|
||||
* @description 会员使用场景
|
||||
* @return Response
|
||||
*/
|
||||
public function getMemberRegisterType()
|
||||
@ -146,6 +165,7 @@ class Member extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 会员列表
|
||||
* @description 会员列表
|
||||
* @return Response
|
||||
* @throws DataNotFoundException
|
||||
* @throws DbException
|
||||
@ -162,6 +182,7 @@ class Member extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取会员注册渠道
|
||||
* @description 获取会员注册渠道
|
||||
* @return Response
|
||||
*/
|
||||
public function getMemberRegisterChannelType()
|
||||
@ -171,6 +192,7 @@ class Member extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置会员的状态
|
||||
* @description 设置会员的状态
|
||||
* @param $status
|
||||
* @return Response
|
||||
*/
|
||||
@ -187,6 +209,7 @@ class Member extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取状态枚举
|
||||
* @description 获取状态枚举
|
||||
* @return Response
|
||||
*/
|
||||
public function getStatusList()
|
||||
@ -196,6 +219,7 @@ class Member extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取会员编码
|
||||
* @description 获取会员编码
|
||||
* @return Response
|
||||
*/
|
||||
public function getMemberNo()
|
||||
@ -206,55 +230,85 @@ class Member extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取会员权益字典
|
||||
* @description 获取会员权益字典
|
||||
* @return mixed
|
||||
*/
|
||||
public function getMemberBenefitsDict() {
|
||||
public function getMemberBenefitsDict()
|
||||
{
|
||||
return success((new MemberService())->getMemberBenefitsDict());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取会员礼包字典
|
||||
* @description 获取会员礼包字典
|
||||
* @return array|null
|
||||
*/
|
||||
public function getMemberGiftDict() {
|
||||
public function getMemberGiftDict()
|
||||
{
|
||||
return success((new MemberService())->getMemberGiftDict());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取成长值规则字典
|
||||
* @description 获取成长值规则字典
|
||||
* @return array|null
|
||||
*/
|
||||
public function getGrowthRuleDict() {
|
||||
public function getGrowthRuleDict()
|
||||
{
|
||||
return success((new MemberService())->getGrowthRuleDict());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取积分规则字典
|
||||
* @description 获取积分规则字典
|
||||
* @return array|null
|
||||
*/
|
||||
public function getPointRuleDict() {
|
||||
public function getPointRuleDict()
|
||||
{
|
||||
return success((new MemberService())->getPointRuleDict());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取会员权益内容
|
||||
* @description 获取会员权益内容
|
||||
* @return Response
|
||||
*/
|
||||
public function getMemberBenefitsContent() {
|
||||
public function getMemberBenefitsContent()
|
||||
{
|
||||
$data = $this->request->params([
|
||||
[ 'benefits', [] ],
|
||||
['benefits', []],
|
||||
]);
|
||||
return success((new MemberService())->getMemberBenefitsContent($data['benefits']));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取会员礼包内容
|
||||
* @description 获取会员礼包内容
|
||||
* @return Response
|
||||
*/
|
||||
public function getMemberGiftsContent() {
|
||||
public function getMemberGiftsContent()
|
||||
{
|
||||
$data = $this->request->params([
|
||||
[ 'gifts', [] ],
|
||||
['gifts', []],
|
||||
]);
|
||||
return success((new MemberService())->getMemberGiftsContent($data['gifts']));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量操作
|
||||
* @description 批量操作
|
||||
* @return Response
|
||||
*/
|
||||
public function batchModify()
|
||||
{
|
||||
$data = $this->request->params([
|
||||
['is_all', 0],
|
||||
['where', []],
|
||||
['member_ids', []],
|
||||
['value', ''],
|
||||
['field', ''],
|
||||
]);
|
||||
(new MemberService())->batchModify($data);
|
||||
return success('MODIFY_SUCCESS');
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,10 +18,17 @@ use think\db\exception\DbException;
|
||||
use think\db\exception\ModelNotFoundException;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 会员标签
|
||||
* Class MemberLabel
|
||||
* @description 会员标签
|
||||
* @package app\adminapi\controller\member
|
||||
*/
|
||||
class MemberLabel extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 会员标签列表
|
||||
* @description 会员标签列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -34,6 +41,7 @@ class MemberLabel extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 会员标签详情
|
||||
* @description 会员标签详情
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -44,6 +52,7 @@ class MemberLabel extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加会员标签
|
||||
* @description 添加会员标签
|
||||
* @return Response
|
||||
*/
|
||||
public function add()
|
||||
@ -61,6 +70,7 @@ class MemberLabel extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 编辑会员标签
|
||||
* @description 编辑会员标签
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
@ -76,6 +86,7 @@ class MemberLabel extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 会员标签删除
|
||||
* @description 会员标签删除
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -87,6 +98,7 @@ class MemberLabel extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取标签
|
||||
* @description 获取标签
|
||||
* @return Response
|
||||
* @throws DataNotFoundException
|
||||
* @throws DbException
|
||||
|
||||
@ -18,10 +18,17 @@ use think\db\exception\DbException;
|
||||
use think\db\exception\ModelNotFoundException;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 会员等级
|
||||
* Class MemberLevel
|
||||
* @description 会员等级
|
||||
* @package app\adminapi\controller\member
|
||||
*/
|
||||
class MemberLevel extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 会员等级分页列表
|
||||
* @description 会员等级分页列表
|
||||
* @return Response
|
||||
*/
|
||||
public function pages()
|
||||
@ -34,6 +41,7 @@ class MemberLevel extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 会员等级详情
|
||||
* @description 会员等级详情
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -44,6 +52,7 @@ class MemberLevel extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加会员等级
|
||||
* @description 添加会员等级
|
||||
* @return Response
|
||||
*/
|
||||
public function add()
|
||||
@ -62,6 +71,7 @@ class MemberLevel extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 编辑会员等级
|
||||
* @description 编辑会员等级
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
@ -79,6 +89,7 @@ class MemberLevel extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 会员等级删除
|
||||
* @description 会员等级删除
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -90,6 +101,7 @@ class MemberLevel extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取标签
|
||||
* @description 获取标签
|
||||
* @return Response
|
||||
* @throws DataNotFoundException
|
||||
* @throws DbException
|
||||
|
||||
@ -15,10 +15,17 @@ use app\service\admin\member\MemberSignService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 会员签到
|
||||
* Class MemberSign
|
||||
* @description 会员签到
|
||||
* @package app\adminapi\controller\member
|
||||
*/
|
||||
class MemberSign extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 会员签到记录
|
||||
* @description 会员签到记录
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -32,6 +39,7 @@ class MemberSign extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 会员签到详情
|
||||
* @description 会员签到详情
|
||||
* @param int $sign_id
|
||||
* @return Response
|
||||
*/
|
||||
@ -40,7 +48,9 @@ class MemberSign extends BaseAdminController
|
||||
return success(( new MemberSignService() )->getInfo($sign_id));
|
||||
}
|
||||
|
||||
/**设置签到设置
|
||||
/**
|
||||
* 设置签到设置
|
||||
* @description 设置签到设置
|
||||
* @return Response
|
||||
*/
|
||||
public function setSign()
|
||||
@ -58,6 +68,7 @@ class MemberSign extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取签到设置
|
||||
* @description 获取签到设置
|
||||
* @return Response
|
||||
*/
|
||||
public function getSign()
|
||||
|
||||
@ -14,10 +14,17 @@ namespace app\adminapi\controller\niucloud;
|
||||
use app\service\core\niucloud\CoreCloudBuildService;
|
||||
use core\base\BaseAdminController;
|
||||
|
||||
/**
|
||||
* 云编译
|
||||
* Class Cloud
|
||||
* @description 云编译
|
||||
* @package app\adminapi\controller\niucloud
|
||||
*/
|
||||
class Cloud extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 云编译
|
||||
* @description 云编译
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function build() {
|
||||
@ -34,6 +41,7 @@ class Cloud extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取云编译日志
|
||||
* @description 获取云编译日志
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function getBuildLog() {
|
||||
@ -42,6 +50,7 @@ class Cloud extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取云编译任务
|
||||
* @description 获取云编译任务
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function getBuildTask() {
|
||||
@ -50,6 +59,7 @@ class Cloud extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 清除云编译任务
|
||||
* @description 清除云编译任务
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function clearBuildTask() {
|
||||
@ -58,6 +68,7 @@ class Cloud extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 编译前环境检测
|
||||
* @description 编译前环境检测
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function buildPreCheck() {
|
||||
|
||||
@ -16,8 +16,20 @@ use app\service\core\niucloud\CoreAuthService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 模块
|
||||
* Class Module
|
||||
* @description 模块
|
||||
* @package app\adminapi\controller\niucloud
|
||||
*/
|
||||
class Module extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 获取授权信息
|
||||
* @description 获取授权信息
|
||||
* @return Response
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
return success(( new CoreAuthService() )->getAuthInfo());
|
||||
@ -25,6 +37,7 @@ class Module extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置 授权信息
|
||||
* @description 设置 授权信息
|
||||
*/
|
||||
public function setAuthorize()
|
||||
{
|
||||
@ -38,6 +51,7 @@ class Module extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取 授权信息
|
||||
* @description 获取 授权信息
|
||||
*/
|
||||
public function getAuthorize()
|
||||
{
|
||||
@ -46,6 +60,7 @@ class Module extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取框架最新版本
|
||||
* @description 获取框架最新版本
|
||||
* @return Response
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
@ -56,6 +71,7 @@ class Module extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取框架最新版本
|
||||
* @description 获取框架最新版本
|
||||
* @return Response
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
@ -66,6 +82,7 @@ class Module extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 申请体验
|
||||
* @description 申请体验
|
||||
* @return Response
|
||||
*/
|
||||
public function applyExperience()
|
||||
@ -75,6 +92,7 @@ class Module extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取应用/插件的版本更新记录
|
||||
* @description 获取应用/插件的版本更新记录
|
||||
* @return Response
|
||||
*/
|
||||
public function getAppVersionList()
|
||||
|
||||
@ -15,10 +15,17 @@ use app\service\admin\notice\NiuSmsService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 牛云短信管理
|
||||
* Class NiuSms
|
||||
* @description 牛云短信管理
|
||||
* @package app\adminapi\controller\notice
|
||||
*/
|
||||
class NiuSms extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 启用牛云短信
|
||||
* @description 启用牛云短信
|
||||
* @return Response
|
||||
*/
|
||||
public function enable()
|
||||
@ -30,9 +37,9 @@ class NiuSms extends BaseAdminController
|
||||
return success("SUCCESS");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取基础信息
|
||||
* @description 获取基础信息
|
||||
* @return Response
|
||||
*/
|
||||
public function getConfig()
|
||||
@ -40,6 +47,11 @@ class NiuSms extends BaseAdminController
|
||||
return success((new NiuSmsService())->getConfig());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取短信套餐列表
|
||||
* @description 获取短信套餐列表
|
||||
* @return Response
|
||||
*/
|
||||
public function getSmsPackageList()
|
||||
{
|
||||
$params = $this->request->params([
|
||||
@ -56,7 +68,11 @@ class NiuSms extends BaseAdminController
|
||||
return success($list);
|
||||
}
|
||||
|
||||
/*******牛云*******/
|
||||
/**
|
||||
* 发送短信验证码
|
||||
* @description 发送短信验证码
|
||||
* @return Response
|
||||
*/
|
||||
public function sendMobileCode()
|
||||
{
|
||||
$params = $this->request->params([
|
||||
@ -70,6 +86,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取图形验证码
|
||||
* @description 获取图形验证码
|
||||
* @return Response
|
||||
*/
|
||||
public function captcha()
|
||||
@ -80,6 +97,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 注册牛云短信子账号
|
||||
* @description 注册牛云短信子账号
|
||||
* @return Response
|
||||
*/
|
||||
public function registerAccount()
|
||||
@ -112,6 +130,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 登录牛云短信子账号
|
||||
* @description 登录牛云短信子账号
|
||||
* @return Response
|
||||
*/
|
||||
public function loginAccount()
|
||||
@ -126,6 +145,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取短信发送列表
|
||||
* @description 获取短信发送列表
|
||||
* @param $username
|
||||
* @return Response
|
||||
*/
|
||||
@ -142,6 +162,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取子账户信息
|
||||
* @description 获取子账户信息
|
||||
* @param $username
|
||||
* @return Response
|
||||
*/
|
||||
@ -153,6 +174,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 修改子账户信息
|
||||
* @description 修改子账户信息
|
||||
* @param $username
|
||||
* @return Response
|
||||
*/
|
||||
@ -171,6 +193,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 重置密码
|
||||
* @description 重置密码
|
||||
* @param $username
|
||||
* @return Response
|
||||
*/
|
||||
@ -187,6 +210,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 忘记密码
|
||||
* @description 忘记密码
|
||||
* @param $username
|
||||
* @return Response
|
||||
*/
|
||||
@ -203,6 +227,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 签名列表
|
||||
* @description 签名列表
|
||||
* @param $username
|
||||
* @return Response
|
||||
*/
|
||||
@ -214,6 +239,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 签名信息
|
||||
* @description 签名信息
|
||||
* @param $username
|
||||
* @return Response
|
||||
*/
|
||||
@ -224,6 +250,11 @@ class NiuSms extends BaseAdminController
|
||||
return success($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 签名创建、报备需要的配置
|
||||
* @description 签名创建、报备需要的配置
|
||||
* @return Response
|
||||
*/
|
||||
public function signCreateConfig()
|
||||
{
|
||||
return success((new NiuSmsService())->signCreateConfig());
|
||||
@ -231,6 +262,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 签名创建、报备
|
||||
* @description 签名创建、报备
|
||||
* @param $username
|
||||
* @return Response
|
||||
*/
|
||||
@ -254,6 +286,12 @@ class NiuSms extends BaseAdminController
|
||||
return success("SUCCESS");
|
||||
}
|
||||
|
||||
/**
|
||||
* 签名删除
|
||||
* @description 签名删除
|
||||
* @param $username
|
||||
* @return Response
|
||||
*/
|
||||
public function signDelete($username)
|
||||
{
|
||||
$params = $this->request->params([
|
||||
@ -265,6 +303,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 同步模版状态
|
||||
* @description 同步模版状态
|
||||
* @param $sms_type
|
||||
* @param $username
|
||||
* @return Response
|
||||
@ -277,6 +316,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 模版列表
|
||||
* @description 模版列表
|
||||
* @param $sms_type
|
||||
* @param $username
|
||||
* @return Response
|
||||
@ -289,6 +329,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 模版信息
|
||||
* @description 模版信息
|
||||
* @param $sms_type
|
||||
* @param $username
|
||||
* @return Response
|
||||
@ -302,6 +343,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 创建模版需要的配置
|
||||
* @description 创建模版需要的配置
|
||||
* @return Response
|
||||
*/
|
||||
public function templateCreateConfig()
|
||||
@ -311,6 +353,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 创建模版
|
||||
* @description 创建模版
|
||||
* @param $sms_type
|
||||
* @param $username
|
||||
* @return Response
|
||||
@ -329,6 +372,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 清除模版
|
||||
* @description 清除模版
|
||||
* @param $username
|
||||
* @param $template_id
|
||||
* @return Response
|
||||
@ -341,6 +385,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 创建订单
|
||||
* @description 创建订单
|
||||
* @param $username
|
||||
* @return Response
|
||||
*/
|
||||
@ -356,6 +401,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 订单计算
|
||||
* @description 订单计算
|
||||
* @param $username
|
||||
* @return Response
|
||||
*/
|
||||
@ -366,11 +412,11 @@ class NiuSms extends BaseAdminController
|
||||
]);
|
||||
$data = (new NiuSmsService())->calculate($username, $params['package_id']);
|
||||
return success($data);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取支付信息
|
||||
* @description 获取支付信息
|
||||
* @param $username
|
||||
* @return Response
|
||||
*/
|
||||
@ -384,7 +430,8 @@ class NiuSms extends BaseAdminController
|
||||
}
|
||||
|
||||
/**
|
||||
* 充值、订单列表
|
||||
* 充值订单列表
|
||||
* @description 充值订单列表
|
||||
* @param $username
|
||||
* @return Response
|
||||
*/
|
||||
@ -402,6 +449,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 订单详情
|
||||
* @description 订单详情
|
||||
* @param $username
|
||||
* @return Response
|
||||
*/
|
||||
@ -416,6 +464,7 @@ class NiuSms extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 订单状态
|
||||
* @description 订单状态
|
||||
* @param $username
|
||||
* @return Response
|
||||
*/
|
||||
|
||||
@ -18,11 +18,18 @@ use core\base\BaseAdminController;
|
||||
use core\exception\AdminException;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 消息管理
|
||||
* Class Notice
|
||||
* @description 消息管理
|
||||
* @package app\adminapi\controller\notice
|
||||
*/
|
||||
class Notice extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 消息列表
|
||||
* @description 消息列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -31,6 +38,12 @@ class Notice extends BaseAdminController
|
||||
return success($res);
|
||||
}
|
||||
|
||||
/**
|
||||
* 消息详情
|
||||
* @description 消息详情
|
||||
* @param $key
|
||||
* @return Response
|
||||
*/
|
||||
public function info($key)
|
||||
{
|
||||
$res = (new NoticeService())->getInfo($key);
|
||||
@ -39,6 +52,7 @@ class Notice extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 消息启动与关闭
|
||||
* @description 消息启动与关闭
|
||||
* @return Response
|
||||
*/
|
||||
public function editStatus()
|
||||
@ -54,6 +68,8 @@ class Notice extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 短信配置列表
|
||||
* @description 短信配置列表
|
||||
* @return Response
|
||||
*/
|
||||
public function smsList()
|
||||
{
|
||||
@ -63,6 +79,7 @@ class Notice extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 短信配置详情
|
||||
* @description 短信配置详情
|
||||
* @param $sms_type
|
||||
* @return Response
|
||||
*/
|
||||
@ -74,6 +91,7 @@ class Notice extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 短信配置修改
|
||||
* @description 短信配置修改
|
||||
* @return Response
|
||||
*/
|
||||
public function editSms($sms_type)
|
||||
@ -96,6 +114,7 @@ class Notice extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 消息修改
|
||||
* @description 消息修改
|
||||
* @return Response
|
||||
*/
|
||||
public function edit()
|
||||
|
||||
@ -15,11 +15,18 @@ use app\service\admin\notice\NoticeLogService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 消息发送记录
|
||||
* Class NoticeLog
|
||||
* @description 消息发送记录
|
||||
* @package app\adminapi\controller\notice
|
||||
*/
|
||||
class NoticeLog extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 消息发送记录列表
|
||||
* @description 消息发送记录列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -34,6 +41,12 @@ class NoticeLog extends BaseAdminController
|
||||
return success($res);
|
||||
}
|
||||
|
||||
/**
|
||||
* 消息发送记录详情
|
||||
* @description 消息发送记录详情
|
||||
* @param $id
|
||||
* @return Response
|
||||
*/
|
||||
public function info($id)
|
||||
{
|
||||
$res = (new NoticeLogService())->getInfo($id);
|
||||
|
||||
@ -15,11 +15,18 @@ use app\service\admin\notice\NoticeSmsLogService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 短信发送记录
|
||||
* Class SmsLog
|
||||
* @description 短信发送记录
|
||||
* @package app\adminapi\controller\notice
|
||||
*/
|
||||
class SmsLog extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 短信发送记录列表
|
||||
* @description 短信发送记录列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -35,6 +42,12 @@ class SmsLog extends BaseAdminController
|
||||
return success($res);
|
||||
}
|
||||
|
||||
/**
|
||||
* 短信发送记录详情
|
||||
* @description 短信发送记录详情
|
||||
* @param $id
|
||||
* @return Response
|
||||
*/
|
||||
public function info($id)
|
||||
{
|
||||
$res = (new NoticeSmsLogService())->getInfo($id);
|
||||
|
||||
@ -14,11 +14,17 @@ namespace app\adminapi\controller\pay;
|
||||
use app\service\admin\pay\PayService;
|
||||
use core\base\BaseAdminController;
|
||||
|
||||
/**
|
||||
* 支付管理
|
||||
* Class Pay
|
||||
* @description 支付管理
|
||||
* @package app\adminapi\controller\pay
|
||||
*/
|
||||
class Pay extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 待审核支付记录
|
||||
* @param array $where
|
||||
* @description 待审核支付记录
|
||||
* @return mixed
|
||||
*/
|
||||
public function audit(){
|
||||
@ -32,7 +38,8 @@ class Pay extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 查询详情
|
||||
* @param string $out_trade_no
|
||||
* @description 查询详情
|
||||
* @param int $id
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function detail(int $id){
|
||||
@ -41,6 +48,7 @@ class Pay extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 支付审核通过
|
||||
* @description 支付审核通过
|
||||
* @param string $out_trade_no
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -50,6 +58,7 @@ class Pay extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 审核拒绝
|
||||
* @description 审核拒绝
|
||||
* @param string $out_trade_no
|
||||
*/
|
||||
public function refuse(string $out_trade_no){
|
||||
@ -59,11 +68,11 @@ class Pay extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 去支付
|
||||
* @description 去支付
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function pay()
|
||||
{
|
||||
|
||||
$data = $this->request->params([
|
||||
['type', ''],
|
||||
['trade_type', ''],//业务类型
|
||||
@ -80,6 +89,7 @@ class Pay extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 支付信息
|
||||
* @description 支付信息
|
||||
* @param $trade_type
|
||||
* @param $trade_id
|
||||
* @return \think\Response
|
||||
@ -91,6 +101,7 @@ class Pay extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 找朋友帮忙付支付信息
|
||||
* @description 找朋友帮忙付支付信息
|
||||
* @param $trade_type
|
||||
* @param $trade_id
|
||||
* @param $channel
|
||||
@ -103,10 +114,11 @@ class Pay extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 支付方式列表
|
||||
* @description 支付方式列表
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function payTypeList()
|
||||
{
|
||||
return success(data:(new PayService())->getPayTypeList());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -19,11 +19,18 @@ use think\db\exception\DbException;
|
||||
use think\db\exception\ModelNotFoundException;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 支付渠道设置
|
||||
* Class PayChannel
|
||||
* @description 支付渠道设置
|
||||
* @package app\adminapi\controller\pay
|
||||
*/
|
||||
class PayChannel extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 支付渠道设置
|
||||
* @description 支付渠道设置
|
||||
* @return Response
|
||||
*/
|
||||
public function set($channel, $type)
|
||||
@ -39,9 +46,9 @@ class PayChannel extends BaseAdminController
|
||||
return success('SET_SUCCESS');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 支付渠道列表
|
||||
* @description 支付渠道列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -51,6 +58,7 @@ class PayChannel extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 通过渠道获取支付配置
|
||||
* @description 通过渠道获取支付配置
|
||||
* @param $channel
|
||||
* @return Response
|
||||
* @throws DataNotFoundException
|
||||
@ -62,9 +70,9 @@ class PayChannel extends BaseAdminController
|
||||
return success((new PayChannelService())->getListByChannel($channel));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 支付设置
|
||||
* @description 支付设置
|
||||
* @return Response
|
||||
*/
|
||||
public function setTransfer()
|
||||
@ -81,6 +89,7 @@ class PayChannel extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 多渠道支付设置
|
||||
* @description 多渠道支付设置
|
||||
* @return Response
|
||||
*/
|
||||
public function setAll()
|
||||
@ -96,6 +105,7 @@ class PayChannel extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取全部支付方式
|
||||
* @description 获取全部支付方式
|
||||
* @return Response
|
||||
*/
|
||||
public function getPayTypeList() {
|
||||
|
||||
@ -15,9 +15,17 @@ use app\dict\pay\RefundDict;
|
||||
use app\service\admin\pay\RefundService;
|
||||
use core\base\BaseAdminController;
|
||||
|
||||
/**
|
||||
* 退款管理
|
||||
* Class PayRefund
|
||||
* @description 退款管理
|
||||
* @package app\adminapi\controller\pay
|
||||
*/
|
||||
class PayRefund extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 退款状态
|
||||
* @description 退款状态
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function getStatus()
|
||||
@ -26,6 +34,7 @@ class PayRefund extends BaseAdminController
|
||||
}
|
||||
/**
|
||||
* 退款列表
|
||||
* @description 退款列表
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function pages()
|
||||
@ -40,6 +49,7 @@ class PayRefund extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 退款详情
|
||||
* @description 退款详情
|
||||
* @param $refund_no
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -50,6 +60,7 @@ class PayRefund extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取退款方式
|
||||
* @description 获取退款方式
|
||||
*/
|
||||
public function getRefundType()
|
||||
{
|
||||
@ -58,6 +69,7 @@ class PayRefund extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 转账
|
||||
* @description 转账
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function transfer()
|
||||
|
||||
@ -11,15 +11,20 @@
|
||||
|
||||
namespace app\adminapi\controller\pay;
|
||||
|
||||
use app\dict\pay\TransferDict;
|
||||
use app\service\admin\pay\PayService;
|
||||
use app\service\admin\pay\TransferService;
|
||||
use core\base\BaseAdminController;
|
||||
|
||||
/**
|
||||
* 转账管理
|
||||
* Class Transfer
|
||||
* @description 转账管理
|
||||
* @package app\adminapi\controller\pay
|
||||
*/
|
||||
class Transfer extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 转账方式
|
||||
* @description 转账方式
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function getWechatTransferScene(){
|
||||
@ -28,6 +33,7 @@ class Transfer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置场景id
|
||||
* @description 设置场景id
|
||||
* @param $scene
|
||||
* @return void
|
||||
*/
|
||||
@ -40,6 +46,7 @@ class Transfer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置业务转账场景配置
|
||||
* @description 设置业务转账场景配置
|
||||
* @param $type
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -51,4 +58,4 @@ class Transfer extends BaseAdminController
|
||||
]);
|
||||
return success(data:(new TransferService())->setTradeScene($type, $data));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -15,12 +15,15 @@ use core\base\BaseAdminController;
|
||||
|
||||
/**
|
||||
* 海报
|
||||
* @description 海报
|
||||
* @package app\adminapi\controller\poster
|
||||
*/
|
||||
class Poster extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 获取海报
|
||||
* @description 获取海报
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function poster()
|
||||
|
||||
@ -24,6 +24,7 @@ class Agreement extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 协议列表
|
||||
* @description 协议列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -34,6 +35,7 @@ class Agreement extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 协议内容
|
||||
* @description 协议内容
|
||||
* @param string $key
|
||||
* @return Response
|
||||
*/
|
||||
@ -45,6 +47,7 @@ class Agreement extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 协议更新
|
||||
* @description 协议更新
|
||||
* @param string $key
|
||||
* @return Response
|
||||
*/
|
||||
@ -59,5 +62,4 @@ class Agreement extends BaseAdminController
|
||||
return success('EDIT_SUCCESS');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -22,6 +22,7 @@ class App extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 获取应用链接列表
|
||||
* @description 获取应用链接列表
|
||||
* @return Response
|
||||
*/
|
||||
public function getAppList()
|
||||
@ -29,5 +30,4 @@ class App extends BaseAdminController
|
||||
return success((new AppService())->getAppList());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -15,10 +15,17 @@ use app\service\admin\sys\AreaService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 地区管理
|
||||
* Class Area
|
||||
* @description 地区管理
|
||||
* @package app\adminapi\controller\sys
|
||||
*/
|
||||
class Area extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 拖过pid获取子项列表
|
||||
* 根据pid获取子项列表
|
||||
* @description 根据pid获取子项列表
|
||||
* @param int $pid
|
||||
* @return Response
|
||||
*/
|
||||
@ -29,6 +36,7 @@ class Area extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取层级列表
|
||||
* @description 获取层级列表
|
||||
* @param int $level
|
||||
* @return Response
|
||||
*/
|
||||
@ -38,6 +46,8 @@ class Area extends BaseAdminController
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取地址信息
|
||||
* @description 获取地址信息
|
||||
* @return Response
|
||||
*/
|
||||
public function addressInfo()
|
||||
@ -49,6 +59,8 @@ class Area extends BaseAdminController
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取地址信息
|
||||
* @description 获取地址信息
|
||||
* @return Response
|
||||
*/
|
||||
public function contraryAddress()
|
||||
@ -60,7 +72,8 @@ class Area extends BaseAdminController
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 根据code获取地址信息
|
||||
* @description 根据code获取地址信息
|
||||
* @return void
|
||||
*/
|
||||
public function areaByAreaCode(string $code) {
|
||||
|
||||
@ -16,11 +16,18 @@ use app\service\admin\sys\AttachmentService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 附件管理
|
||||
* Class Attachment
|
||||
* @description 附件管理
|
||||
* @package app\adminapi\controller\sys
|
||||
*/
|
||||
class Attachment extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 附件列表
|
||||
* @description 附件列表
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
@ -36,6 +43,7 @@ class Attachment extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 删除附件
|
||||
* @description 删除附件
|
||||
* @param $att_id
|
||||
* @return Response
|
||||
*/
|
||||
@ -46,6 +54,7 @@ class Attachment extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
* @description 批量删除
|
||||
* @return Response
|
||||
*/
|
||||
public function batchDel()
|
||||
@ -59,6 +68,7 @@ class Attachment extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 新增附件分组
|
||||
* @description 新增附件分组
|
||||
* @return Response
|
||||
*/
|
||||
public function addCategory()
|
||||
@ -74,6 +84,7 @@ class Attachment extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 附件分组列表
|
||||
* @description 附件分组列表
|
||||
*/
|
||||
public function categoryLists()
|
||||
{
|
||||
@ -86,6 +97,7 @@ class Attachment extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 更新附件分组
|
||||
* @description 更新附件分组
|
||||
* @return Response
|
||||
*/
|
||||
public function editCategory($id)
|
||||
@ -100,6 +112,7 @@ class Attachment extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 删除附件组
|
||||
* @description 删除附件组
|
||||
* @param $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -111,6 +124,7 @@ class Attachment extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 移动图片分组
|
||||
* @description 移动图片分组
|
||||
* @return Response
|
||||
*/
|
||||
public function moveCategory($att_id)
|
||||
@ -124,6 +138,7 @@ class Attachment extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 批量移动图片分组
|
||||
* @description 批量移动图片分组
|
||||
* @return Response
|
||||
*/
|
||||
public function batchMoveCategory()
|
||||
|
||||
@ -15,11 +15,17 @@ use app\dict\common\ChannelDict;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 渠道管理
|
||||
* Class Channel
|
||||
* @description 渠道管理
|
||||
*/
|
||||
class Channel extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 获取渠道列表
|
||||
* @description 获取渠道列表
|
||||
* @return Response
|
||||
*/
|
||||
public function getChannelType()
|
||||
|
||||
@ -17,11 +17,15 @@ use think\Response;
|
||||
|
||||
/**
|
||||
* 公共数据字典
|
||||
* Class Common
|
||||
* @description 公共数据字典
|
||||
* @package app\adminapi\controller\sys
|
||||
*/
|
||||
class Common extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 月份
|
||||
* @description 月份
|
||||
* @return Response
|
||||
*/
|
||||
public function getMonth()
|
||||
@ -31,6 +35,7 @@ class Common extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 星期
|
||||
* @description 星期
|
||||
* @return Response
|
||||
*/
|
||||
public function getWeek()
|
||||
@ -38,5 +43,4 @@ class Common extends BaseAdminController
|
||||
return success((new DateDict())->getWeek());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -15,10 +15,17 @@ use app\service\admin\sys\ConfigService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 配置管理
|
||||
* Class Config
|
||||
* @description 配置管理
|
||||
* @package app\adminapi\controller\sys
|
||||
*/
|
||||
class Config extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 获取网站设置
|
||||
* @description 获取网站设置
|
||||
* @return Response
|
||||
*/
|
||||
public function getWebsite()
|
||||
@ -28,6 +35,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 网站设置
|
||||
* @description 网站设置
|
||||
* @return Response
|
||||
*/
|
||||
public function setWebsite()
|
||||
@ -65,6 +73,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取版权信息
|
||||
* @description 获取版权信息
|
||||
* @return Response
|
||||
*/
|
||||
public function getCopyright()
|
||||
@ -72,7 +81,9 @@ class Config extends BaseAdminController
|
||||
return success(( new ConfigService() )->getCopyright());
|
||||
}
|
||||
|
||||
/**设置版权信息
|
||||
/**
|
||||
* 设置版权信息
|
||||
* @description 设置版权信息
|
||||
* @return Response
|
||||
*/
|
||||
public function setCopyright()
|
||||
@ -93,6 +104,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 场景域名
|
||||
* @description 场景域名
|
||||
* @return Response
|
||||
*/
|
||||
public function getSceneDomain()
|
||||
@ -102,6 +114,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取服务信息
|
||||
* @description 获取服务信息
|
||||
* @return Response
|
||||
*/
|
||||
public function getServiceInfo()
|
||||
@ -109,7 +122,9 @@ class Config extends BaseAdminController
|
||||
return success(( new ConfigService() )->getService());
|
||||
}
|
||||
|
||||
/**设置版权信息
|
||||
/**
|
||||
* 设置地图信息
|
||||
* @description 设置地图信息
|
||||
* @return Response
|
||||
*/
|
||||
public function setMap()
|
||||
@ -125,6 +140,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取地图设置
|
||||
* @description 获取地图设置
|
||||
* @return Response
|
||||
*/
|
||||
public function getMap()
|
||||
@ -146,6 +162,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取开发者key
|
||||
* @description 获取开发者key
|
||||
* @return Response
|
||||
*/
|
||||
public function getDeveloperToken()
|
||||
@ -155,6 +172,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置开发者key
|
||||
* @description 设置开发者key
|
||||
* @return Response
|
||||
*/
|
||||
public function setDeveloperToken()
|
||||
|
||||
@ -16,11 +16,18 @@ use app\service\admin\sys\ExportService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 报表导出
|
||||
* Class Export
|
||||
* @description 报表导出
|
||||
* @package app\adminapi\controller\sys
|
||||
*/
|
||||
class Export extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 报表导出列表
|
||||
* @description 报表导出列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -36,6 +43,7 @@ class Export extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 报表导出
|
||||
* @description 报表导出
|
||||
* @param string $type
|
||||
* @return Response
|
||||
*/
|
||||
@ -46,6 +54,7 @@ class Export extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 检查导出数据源是否为空
|
||||
* @description 检查导出数据源是否为空
|
||||
* @param string $type
|
||||
* @return Response
|
||||
*/
|
||||
@ -57,6 +66,7 @@ class Export extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 报表删除
|
||||
* @description 报表删除
|
||||
* @param $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -68,6 +78,7 @@ class Export extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取导出状态列表
|
||||
* @description 获取导出状态列表
|
||||
* @param string $type
|
||||
*/
|
||||
public function getExportStatus()
|
||||
@ -77,6 +88,7 @@ class Export extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取导出数据类型列表
|
||||
* @description 获取导出数据类型列表
|
||||
* @return Response
|
||||
*/
|
||||
public function getExportDataType(){
|
||||
|
||||
@ -19,83 +19,93 @@ use app\service\admin\sys\MenuService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 菜单管理
|
||||
* Class Menu
|
||||
* @description 菜单管理
|
||||
* @package app\adminapi\controller\sys
|
||||
*/
|
||||
class Menu extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 菜单列表
|
||||
* 菜单列表(todo 限制只有平台端可以访问)
|
||||
* @description 菜单列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return success((new MenuService())->getAllMenuList('all', 1));
|
||||
return success(( new MenuService() )->getAllMenuList('all', 1));
|
||||
}
|
||||
|
||||
/**
|
||||
* 菜单信息
|
||||
* @description 菜单信息
|
||||
* @param $menu_key
|
||||
* @return Response
|
||||
*/
|
||||
public function info($menu_key)
|
||||
{
|
||||
return success((new MenuService())->get($menu_key));
|
||||
return success(( new MenuService() )->get($menu_key));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增菜单接口
|
||||
* @description 新增菜单
|
||||
* @return Response
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$data = $this->request->params([
|
||||
['menu_name', ''],
|
||||
['menu_type', 0],
|
||||
['menu_key', ''],
|
||||
['parent_key', ''],
|
||||
['icon', ''],
|
||||
['api_url', ''],
|
||||
['view_path', ''],
|
||||
['router_path', ''],
|
||||
['methods', ''],
|
||||
['sort', 0],
|
||||
['status', MenuDict::ON],
|
||||
['is_show', 0],
|
||||
['addon', ''],
|
||||
['menu_short_name','']
|
||||
[ 'menu_name', '' ],
|
||||
[ 'menu_type', 0 ],
|
||||
[ 'menu_key', '' ],
|
||||
[ 'parent_key', '' ],
|
||||
[ 'icon', '' ],
|
||||
[ 'api_url', '' ],
|
||||
[ 'view_path', '' ],
|
||||
[ 'router_path', '' ],
|
||||
[ 'methods', '' ],
|
||||
[ 'sort', 0 ],
|
||||
[ 'status', MenuDict::ON ],
|
||||
[ 'is_show', 0 ],
|
||||
[ 'addon', '' ],
|
||||
[ 'menu_short_name', '' ]
|
||||
]);
|
||||
$this->validate($data, 'app\validate\sys\Menu.add');
|
||||
(new MenuService())->add($data);
|
||||
( new MenuService() )->add($data);
|
||||
return success('ADD_SUCCESS');
|
||||
}
|
||||
|
||||
/**
|
||||
* 菜单或接口更新
|
||||
* @description 菜单或接口更新
|
||||
*/
|
||||
public function edit($menu_key)
|
||||
{
|
||||
$data = $this->request->params([
|
||||
['menu_name', ''],
|
||||
['parent_key', ''],
|
||||
['menu_type', 0],
|
||||
['icon', ''],
|
||||
['api_url', ''],
|
||||
['router_path', ''],
|
||||
['view_path', ''],
|
||||
['methods', ''],
|
||||
['sort', 0],
|
||||
['status', MenuDict::ON],
|
||||
['is_show', 0],
|
||||
['addon', ''],
|
||||
['menu_short_name','']
|
||||
[ 'menu_name', '' ],
|
||||
[ 'parent_key', '' ],
|
||||
[ 'menu_type', 0 ],
|
||||
[ 'icon', '' ],
|
||||
[ 'api_url', '' ],
|
||||
[ 'router_path', '' ],
|
||||
[ 'view_path', '' ],
|
||||
[ 'methods', '' ],
|
||||
[ 'sort', 0 ],
|
||||
[ 'status', MenuDict::ON ],
|
||||
[ 'is_show', 0 ],
|
||||
[ 'addon', '' ],
|
||||
[ 'menu_short_name', '' ]
|
||||
]);
|
||||
$this->validate($data, 'app\validate\sys\Menu.edit');
|
||||
(new MenuService())->edit($menu_key, $data);
|
||||
( new MenuService() )->edit($menu_key, $data);
|
||||
return success('EDIT_SUCCESS');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取菜单类型静态资源
|
||||
* @description 获取菜单类型静态资源
|
||||
* @return Response
|
||||
*/
|
||||
public function getMenuType()
|
||||
@ -105,6 +115,7 @@ class Menu extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取请求方式
|
||||
* @description 获取请求方式
|
||||
* @return Response
|
||||
*/
|
||||
public function getMethodType()
|
||||
@ -114,46 +125,53 @@ class Menu extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 删除菜单
|
||||
* @description 删除菜单
|
||||
* @param $menu_key
|
||||
* @return Response
|
||||
*/
|
||||
public function del($menu_key)
|
||||
{
|
||||
(new MenuService())->del($menu_key);
|
||||
( new MenuService() )->del($menu_key);
|
||||
return success('DELETE_SUCCESS');
|
||||
}
|
||||
|
||||
/**
|
||||
* 刷新菜单
|
||||
* @description 刷新菜单
|
||||
* @return Response
|
||||
*/
|
||||
public function refreshMenu()
|
||||
{
|
||||
(new InstallSystemService())->install();
|
||||
( new InstallSystemService() )->install();
|
||||
return success('SUCCESS');
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询菜单信息
|
||||
* @description 查询菜单信息
|
||||
*/
|
||||
public function getSystem()
|
||||
{
|
||||
$data = $this->request->params([
|
||||
['status', 'all'],
|
||||
]);
|
||||
return success( (new MenuService())->getSystemMenu($data['status'], 1));
|
||||
return success(( new MenuService() )->getSystemMenu('all', 1));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询应用权限信息
|
||||
* @description 查询应用权限信息
|
||||
*/
|
||||
public function getAddonMenu($app_key)
|
||||
{
|
||||
return success( (new MenuService())->getAddonMenu($app_key,'all', 1));
|
||||
return success(( new MenuService() )->getAddonMenu($app_key, 'all', 1));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询菜单类型为目录的菜单
|
||||
* @description 查询菜单类型为目录的菜单
|
||||
* @param $addon
|
||||
* @return Response
|
||||
*/
|
||||
public function getMenuByTypeDir($addon = 'system') {
|
||||
return success( (new MenuService())->getMenuByTypeDir($addon));
|
||||
public function getMenuByTypeDir($addon = 'system')
|
||||
{
|
||||
return success(( new MenuService() )->getMenuByTypeDir($addon));
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,6 +18,7 @@ use core\base\BaseAdminController;
|
||||
/**
|
||||
* 自定义海报
|
||||
* Class Poster
|
||||
* @description 自定义海报
|
||||
* @package app\adminapi\controller\sys
|
||||
*/
|
||||
class Poster extends BaseAdminController
|
||||
@ -25,6 +26,7 @@ class Poster extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取自定义海报分页列表
|
||||
* @description 获取自定义海报分页列表
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function pages()
|
||||
@ -38,6 +40,7 @@ class Poster extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取自定义海报分页列表
|
||||
* @description 获取自定义海报分页列表
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -51,6 +54,7 @@ class Poster extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 自定义海报详情
|
||||
* @description 自定义海报详情
|
||||
* @param int $id
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -61,6 +65,7 @@ class Poster extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加自定义海报
|
||||
* @description 添加自定义海报
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function add()
|
||||
@ -80,6 +85,7 @@ class Poster extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 自定义海报编辑
|
||||
* @description 自定义海报编辑
|
||||
* @param int $id 自定义海报id
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -100,6 +106,7 @@ class Poster extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 自定义海报删除
|
||||
* @description 自定义海报删除
|
||||
* @param int $id 自定义海报id
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -111,6 +118,7 @@ class Poster extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 修改自定义海报状态
|
||||
* @description 修改自定义海报状态
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function modifyStatus()
|
||||
@ -125,6 +133,7 @@ class Poster extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 将自定义海报修改为默认海报
|
||||
* @description 将自定义海报修改为默认海报
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function modifyDefault()
|
||||
@ -138,6 +147,7 @@ class Poster extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取自定义海报类型
|
||||
* @description 获取自定义海报类型
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function type()
|
||||
@ -150,6 +160,7 @@ class Poster extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取自定义海报模版
|
||||
* @description 获取自定义海报模版
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function template()
|
||||
@ -163,6 +174,7 @@ class Poster extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取自定义海报初始化数据
|
||||
* @description 获取自定义海报初始化数据
|
||||
* @return \think\Response
|
||||
* @throws \think\db\exception\DbException
|
||||
*/
|
||||
@ -178,6 +190,7 @@ class Poster extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取自定义海报预览
|
||||
* @description 获取自定义海报预览
|
||||
* @return array|\think\Response
|
||||
*/
|
||||
public function preview()
|
||||
|
||||
@ -19,6 +19,7 @@ use core\base\BaseAdminController;
|
||||
/**
|
||||
* 小票打印机控制器
|
||||
* Class Printer
|
||||
* @description 小票打印机
|
||||
* @package app\adminapi\controller\sys
|
||||
*/
|
||||
class Printer extends BaseAdminController
|
||||
@ -26,6 +27,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取小票打印机分页列表
|
||||
* @description 获取小票打印机分页列表
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function pages()
|
||||
@ -38,6 +40,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取小票打印机列表
|
||||
* @description 获取小票打印机列表
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -50,6 +53,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 小票打印机详情
|
||||
* @description 小票打印机详情
|
||||
* @param int $id
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -60,6 +64,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加小票打印机
|
||||
* @description 添加小票打印机
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function add()
|
||||
@ -84,6 +89,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 小票打印机编辑
|
||||
* @description 小票打印机编辑
|
||||
* @param $id 小票打印机id
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -109,6 +115,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 修改小票打印机状态
|
||||
* @description 修改小票打印机状态
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function modifyStatus()
|
||||
@ -123,6 +130,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 小票打印机删除
|
||||
* @description 小票打印机删除
|
||||
* @param $id 小票打印机id
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -134,6 +142,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取小票打印模板分页列表
|
||||
* @description 获取小票打印模板分页列表
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function templatePageLists()
|
||||
@ -147,6 +156,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取小票打印模板列表
|
||||
* @description 获取小票打印模板列表
|
||||
* @return \think\Response
|
||||
* @throws \think\db\exception\DbException
|
||||
*/
|
||||
@ -161,6 +171,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 小票打印模板详情
|
||||
* @description 小票打印模板详情
|
||||
* @param int $id
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -171,6 +182,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加小票打印模板
|
||||
* @description 添加小票打印模板
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function templateAdd()
|
||||
@ -187,6 +199,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 小票打印模板编辑
|
||||
* @description 小票打印模板编辑
|
||||
* @param $id 小票打印模板id
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -204,6 +217,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 小票打印模板删除
|
||||
* @description 小票打印模板删除
|
||||
* @param $id 小票打印模板id
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -215,6 +229,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取小票打印模板类型
|
||||
* @description 获取小票打印模板类型
|
||||
* @return array|\think\Response
|
||||
*/
|
||||
public function getType()
|
||||
@ -224,6 +239,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取小票打印机设备品牌
|
||||
* @description 获取小票打印机设备品牌
|
||||
* @return array|\think\Response
|
||||
*/
|
||||
public function getBrand()
|
||||
@ -236,6 +252,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 测试打印
|
||||
* @description 测试打印
|
||||
* @param int $id
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -247,6 +264,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 刷新打印机token
|
||||
* @description 刷新打印机token
|
||||
* @param int $id
|
||||
* @return \think\Response
|
||||
*/
|
||||
@ -258,6 +276,7 @@ class Printer extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 打印小票内容
|
||||
* @description 打印小票内容
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function printTicket()
|
||||
|
||||
@ -17,8 +17,19 @@ use core\base\BaseAdminController;
|
||||
use think\db\exception\DbException;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 用户组管理
|
||||
* Class Role
|
||||
* @description 用户组管理
|
||||
* @package app\adminapi\controller\sys
|
||||
*/
|
||||
class Role extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 用户组列表
|
||||
* @description 用户组列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
$data = $this->request->params([
|
||||
@ -31,6 +42,7 @@ class Role extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 用户组详情
|
||||
* @description 用户组详情
|
||||
* @param $role_id
|
||||
* @return Response
|
||||
*/
|
||||
@ -41,6 +53,7 @@ class Role extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取全部权限
|
||||
* @description 获取全部权限
|
||||
* @return Response
|
||||
*/
|
||||
public function all()
|
||||
@ -50,6 +63,7 @@ class Role extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 新增用户组
|
||||
* @description 新增用户组
|
||||
* @return Response
|
||||
*/
|
||||
public function add()
|
||||
@ -64,9 +78,9 @@ class Role extends BaseAdminController
|
||||
return success('ADD_SUCCESS');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 更新用户组
|
||||
* @description 更新用户组
|
||||
*/
|
||||
public function edit($role_id)
|
||||
{
|
||||
@ -80,9 +94,9 @@ class Role extends BaseAdminController
|
||||
return success('EDIT_SUCCESS');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除单个用户组
|
||||
* @description 删除单个用户组
|
||||
* @param $role_id
|
||||
* @return Response
|
||||
* @throws DbException
|
||||
@ -95,15 +109,17 @@ class Role extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置角色状态
|
||||
* @description 设置角色状态
|
||||
* @param $role_id
|
||||
* @return Response
|
||||
*/
|
||||
public function setStatus($role_id)
|
||||
public function modifyStatus($role_id)
|
||||
{
|
||||
$data = $this->request->params([
|
||||
['status', RoleStatusDict::ON],
|
||||
]);
|
||||
(new RoleService())->setStatus($role_id, $data['status']);
|
||||
(new RoleService())->modifyStatus($role_id, $data['status']);
|
||||
return success('DELETE_SUCCESS');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -18,11 +18,14 @@ use think\Response;
|
||||
|
||||
/**
|
||||
* 自动任务
|
||||
* @description 自动任务
|
||||
* @package app\adminapi\controller\sys
|
||||
*/
|
||||
class Schedule extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 任务列表
|
||||
* @description 任务列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -32,11 +35,11 @@ class Schedule extends BaseAdminController
|
||||
['status', 'all'],
|
||||
]);
|
||||
return success(data: (new ScheduleService())->getPage($data));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 计划任务模板
|
||||
* @description 计划任务模板
|
||||
* @return Response
|
||||
*/
|
||||
public function template()
|
||||
@ -46,6 +49,7 @@ class Schedule extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取任务模式
|
||||
* @description 获取任务模式
|
||||
* @return Response
|
||||
*/
|
||||
public function getType()
|
||||
@ -55,6 +59,7 @@ class Schedule extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 详情
|
||||
* @description 详情
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -65,6 +70,7 @@ class Schedule extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加
|
||||
* @description 添加
|
||||
* @return Response
|
||||
*/
|
||||
public function add()
|
||||
@ -81,6 +87,7 @@ class Schedule extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
* @description 编辑
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -97,6 +104,7 @@ class Schedule extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 启用或关闭
|
||||
* @description 启用或关闭
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -111,6 +119,7 @@ class Schedule extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @description 删除
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -122,6 +131,7 @@ class Schedule extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 时间间隔类型
|
||||
* @description 时间间隔类型
|
||||
* @return Response
|
||||
*/
|
||||
public function getDateType()
|
||||
@ -131,6 +141,7 @@ class Schedule extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 执行一次任务
|
||||
* @description 执行一次任务
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
|
||||
@ -17,11 +17,13 @@ use think\Response;
|
||||
|
||||
/**
|
||||
* 计划任务执行记录
|
||||
* @description 计划任务执行记录
|
||||
*/
|
||||
class ScheduleLog extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 任务执行记录列表
|
||||
* @description 任务执行记录列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -38,6 +40,7 @@ class ScheduleLog extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 删除计划任务执行记录
|
||||
* @description 删除计划任务执行记录
|
||||
* @return Response
|
||||
*/
|
||||
public function del()
|
||||
@ -51,6 +54,7 @@ class ScheduleLog extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 清空计划任务执行记录
|
||||
* @description 清空计划任务执行记录
|
||||
* @return Response
|
||||
*/
|
||||
public function clear()
|
||||
|
||||
@ -18,12 +18,14 @@ use think\Response;
|
||||
/**
|
||||
* 系统信息查询
|
||||
* Class System
|
||||
* @description 系统信息查询
|
||||
* @package app\adminapi\controller\sys
|
||||
*/
|
||||
class System extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 获取当前系统信息
|
||||
* @description 获取当前系统信息
|
||||
* @return Response
|
||||
*/
|
||||
public function info()
|
||||
@ -33,6 +35,7 @@ class System extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取当前url配置
|
||||
* @description 获取当前url配置
|
||||
* @return Response
|
||||
*/
|
||||
public function url()
|
||||
@ -42,6 +45,7 @@ class System extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取系统环境配置
|
||||
* @description 获取系统环境配置
|
||||
* @return Response
|
||||
*/
|
||||
public function getSystemInfo()
|
||||
@ -51,6 +55,7 @@ class System extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 清理表缓存
|
||||
* @description 清理表缓存
|
||||
*/
|
||||
public function schemaCache()
|
||||
{
|
||||
@ -59,6 +64,7 @@ class System extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 清理缓存
|
||||
* @description 清理缓存
|
||||
*/
|
||||
public function clearCache()
|
||||
{
|
||||
@ -67,6 +73,7 @@ class System extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 校验消息队列是否正常运行
|
||||
* @description 校验消息队列是否正常运行
|
||||
* @return Response
|
||||
*/
|
||||
public function checkJob()
|
||||
@ -76,6 +83,7 @@ class System extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 校验计划任务是否正常运行
|
||||
* @description 校验计划任务是否正常运行
|
||||
* @return Response
|
||||
*/
|
||||
public function checkSchedule()
|
||||
@ -85,6 +93,7 @@ class System extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 环境变量查询
|
||||
* @description 环境变量查询
|
||||
* @return Response
|
||||
*/
|
||||
public function getEnvInfo()
|
||||
@ -94,6 +103,7 @@ class System extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取推广二维码
|
||||
* @description 获取推广二维码
|
||||
* @return Response
|
||||
*/
|
||||
public function getSpreadQrcode()
|
||||
|
||||
@ -16,6 +16,7 @@ use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* Ueditor
|
||||
*/
|
||||
class Ueditor extends BaseAdminController
|
||||
{
|
||||
|
||||
@ -17,11 +17,18 @@ use core\base\BaseAdminController;
|
||||
use core\exception\AdminException;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 存储管理
|
||||
* Class Storage
|
||||
* @description 存储管理
|
||||
* @package app\adminapi\controller\upload
|
||||
*/
|
||||
class Storage extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 云存储配置列表
|
||||
* @description 云存储配置列表
|
||||
*/
|
||||
public function storageList()
|
||||
{
|
||||
@ -31,6 +38,7 @@ class Storage extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 存储配置详情
|
||||
* @description 存储配置详情
|
||||
* @param $storage_type 存储驱动类型
|
||||
* @return Response
|
||||
*/
|
||||
@ -42,6 +50,7 @@ class Storage extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 存储设置修改
|
||||
* @description 存储设置修改
|
||||
* @return Response
|
||||
*/
|
||||
public function editStorage($storage_type)
|
||||
|
||||
@ -16,10 +16,17 @@ use app\service\admin\upload\UploadService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 上传管理
|
||||
* Class Upload
|
||||
* @description 上传管理
|
||||
* @package app\adminapi\controller\upload
|
||||
*/
|
||||
class Upload extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 图片上传
|
||||
* @description 图片上传
|
||||
* @return Response
|
||||
*/
|
||||
public function image()
|
||||
@ -36,6 +43,7 @@ class Upload extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 视频上传
|
||||
* @description 视频上传
|
||||
* @return Response
|
||||
*/
|
||||
public function video()
|
||||
@ -50,6 +58,7 @@ class Upload extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 文件上传(默认不上云)
|
||||
* @description 文件上传
|
||||
* @return Response
|
||||
*/
|
||||
public function document($type)
|
||||
@ -63,6 +72,7 @@ class Upload extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 上传配置
|
||||
* @description 上传配置
|
||||
* @return Response
|
||||
*/
|
||||
public function setUploadConfig()
|
||||
@ -81,6 +91,7 @@ class Upload extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取上传配置
|
||||
* @description 获取上传配置
|
||||
* @return Response
|
||||
*/
|
||||
public function getUploadConfig()
|
||||
|
||||
@ -19,10 +19,16 @@ use think\Response;
|
||||
|
||||
/**
|
||||
* 站点用户接口
|
||||
* @description 站点用户
|
||||
* Class User
|
||||
*/
|
||||
class User extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 用户列表
|
||||
* @description 用户列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
$data = $this->request->params([
|
||||
@ -50,6 +56,11 @@ class User extends BaseAdminController
|
||||
return success((new UserService())->getInfo($uid));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取全部用户
|
||||
* @description 获取全部用户
|
||||
* @return Response
|
||||
*/
|
||||
public function getUserAll()
|
||||
{
|
||||
$data = $this->request->params([
|
||||
@ -63,6 +74,7 @@ class User extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 新增用户
|
||||
* @description 新增用户
|
||||
* @return Response
|
||||
* @throws Exception
|
||||
*/
|
||||
@ -81,9 +93,9 @@ class User extends BaseAdminController
|
||||
return success('ADD_SUCCESS', ['uid' => $uid]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 更新用户
|
||||
* @description 更新用户
|
||||
*/
|
||||
public function edit($uid)
|
||||
{
|
||||
@ -100,6 +112,7 @@ class User extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 更新字段
|
||||
* @description 更新字段
|
||||
* @param $uid
|
||||
* @param $field
|
||||
* @return Response
|
||||
@ -118,6 +131,7 @@ class User extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 删除单个用户
|
||||
* @description 删除单个用户
|
||||
* @param $uid
|
||||
* @return Response
|
||||
*/
|
||||
@ -129,6 +143,7 @@ class User extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 锁定用户
|
||||
* @description 锁定用户
|
||||
*/
|
||||
public function lock($uid)
|
||||
{
|
||||
@ -138,6 +153,7 @@ class User extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 解锁用户
|
||||
* @description 解锁用户
|
||||
*/
|
||||
public function unlock($uid)
|
||||
{
|
||||
@ -145,5 +161,4 @@ class User extends BaseAdminController
|
||||
return success('MODIFY_SUCCESS');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -16,10 +16,17 @@ use app\service\admin\verify\VerifierService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 核销人员
|
||||
* Class Verifier
|
||||
* @description 核销人员
|
||||
* @package app\adminapi\controller\verify
|
||||
*/
|
||||
class Verifier extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 核销人员列表
|
||||
* @description 核销人员列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -29,6 +36,7 @@ class Verifier extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 核销人员列表
|
||||
* @description 核销人员列表
|
||||
* @return Response
|
||||
*/
|
||||
public function select()
|
||||
@ -38,7 +46,8 @@ class Verifier extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取核销员信息
|
||||
* @param int $order_id
|
||||
* @description 获取核销员信息
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
public function detail($id)
|
||||
@ -48,7 +57,7 @@ class Verifier extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加核销员
|
||||
* @param int $order_id
|
||||
* @description 添加核销员
|
||||
* @return Response
|
||||
*/
|
||||
public function add()
|
||||
@ -62,7 +71,8 @@ class Verifier extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加核销员
|
||||
* @param int $order_id
|
||||
* @description 添加核销员
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
public function edit($id)
|
||||
@ -76,6 +86,7 @@ class Verifier extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 删除核销员
|
||||
* @description 删除核销员
|
||||
*/
|
||||
public function del(int $id)
|
||||
{
|
||||
@ -84,6 +95,7 @@ class Verifier extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取核销类型
|
||||
* @description 获取核销类型
|
||||
* @return Response
|
||||
*/
|
||||
public function getVerifyType()
|
||||
|
||||
@ -15,10 +15,17 @@ use app\service\admin\verify\VerifyService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 核销记录
|
||||
* Class Verify
|
||||
* @description 核销记录
|
||||
* @package app\adminapi\controller\verify
|
||||
*/
|
||||
class Verify extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 核销记录列表
|
||||
* @description 核销记录列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -35,6 +42,7 @@ class Verify extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 核销信息
|
||||
* @description 核销信息
|
||||
* @param int $order_id
|
||||
* @return Response
|
||||
*/
|
||||
|
||||
@ -15,10 +15,17 @@ use app\service\admin\weapp\WeappConfigService;
|
||||
use core\base\BaseAdminController;
|
||||
use think\Response;
|
||||
|
||||
/**
|
||||
* 微信小程序配置
|
||||
* Class Config
|
||||
* @description 微信小程序配置
|
||||
* @package app\adminapi\controller\weapp
|
||||
*/
|
||||
class Config extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 获取微信小程序配置信息
|
||||
* @description 获取微信小程序配置信息
|
||||
* @return Response
|
||||
*/
|
||||
public function get()
|
||||
@ -28,6 +35,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置微信小程序配置信息
|
||||
* @description 设置微信小程序配置信息
|
||||
* @return Response
|
||||
*/
|
||||
public function set()
|
||||
|
||||
@ -16,12 +16,14 @@ use core\base\BaseAdminController;
|
||||
|
||||
/**
|
||||
* 小程序发货信息管理服务
|
||||
* @description 小程序发货信息管理服务
|
||||
*/
|
||||
class Delivery extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 查询小程序是否已开通发货信息管理服务
|
||||
* @description 查询小程序是否已开通发货信息管理服务
|
||||
* @return bool
|
||||
* @throws \EasyWeChat\Kernel\Exceptions\InvalidArgumentException
|
||||
*/
|
||||
|
||||
@ -17,12 +17,14 @@ use think\Response;
|
||||
|
||||
/**
|
||||
* 微信小程序订阅消息
|
||||
* @description 微信小程序订阅消息
|
||||
*/
|
||||
class Template extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 订阅消息
|
||||
* @description 订阅消息
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -31,9 +33,9 @@ class Template extends BaseAdminController
|
||||
return success($wechat_template_service->getList());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 菜单信息
|
||||
* 同步微信公众号消息模板
|
||||
* @description 同步微信公众号消息模板
|
||||
* @return Response
|
||||
*/
|
||||
public function sync()
|
||||
|
||||
@ -17,11 +17,13 @@ use think\Response;
|
||||
|
||||
/**
|
||||
* 小程序版本管理控制器
|
||||
* @description 小程序版本管理
|
||||
*/
|
||||
class Version extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 列表
|
||||
* @description 列表
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
@ -34,6 +36,7 @@ class Version extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 详情
|
||||
* @description 详情
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
@ -44,6 +47,7 @@ class Version extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 添加
|
||||
* @description 添加
|
||||
* @return Response
|
||||
*/
|
||||
public function add()
|
||||
@ -56,7 +60,7 @@ class Version extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取预览码
|
||||
* @param int $id
|
||||
* @description 获取预览码
|
||||
* @return Response
|
||||
*/
|
||||
public function preview()
|
||||
@ -66,6 +70,7 @@ class Version extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @description 删除
|
||||
* @param int $id
|
||||
* @return Response
|
||||
*/
|
||||
|
||||
@ -19,6 +19,7 @@ class Config extends BaseAdminController
|
||||
{
|
||||
/**
|
||||
* 获取微信配置信息
|
||||
* @description 获取微信配置信息
|
||||
* @return Response
|
||||
*/
|
||||
public function get()
|
||||
@ -28,6 +29,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 设置微信配置信息
|
||||
* @description 设置微信配置信息
|
||||
* @return Response
|
||||
*/
|
||||
public function set()
|
||||
@ -49,6 +51,7 @@ class Config extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取微信静态资源
|
||||
* @description 获取微信静态资源
|
||||
* @return Response
|
||||
*/
|
||||
public function static()
|
||||
|
||||
@ -29,6 +29,7 @@ class Media extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 上传图片素材
|
||||
* @description 上传图片素材
|
||||
* @return \think\Response
|
||||
* @throws \EasyWeChat\Kernel\Exceptions\InvalidArgumentException
|
||||
* @throws \Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface
|
||||
@ -42,6 +43,7 @@ class Media extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 上传视频素材
|
||||
* @description 上传视频素材
|
||||
* @return \think\Response
|
||||
* @throws \EasyWeChat\Kernel\Exceptions\InvalidArgumentException
|
||||
* @throws \Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface
|
||||
@ -55,6 +57,7 @@ class Media extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 同步草稿箱
|
||||
* @description 同步草稿箱
|
||||
* @return \think\Response
|
||||
* @throws \EasyWeChat\Kernel\Exceptions\InvalidArgumentException
|
||||
* @throws \Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface
|
||||
|
||||
@ -24,7 +24,8 @@ class Menu extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 菜单信息
|
||||
* 获取微信菜单
|
||||
* @description 获取微信菜单
|
||||
* @return Response
|
||||
*/
|
||||
public function info()
|
||||
@ -34,7 +35,8 @@ class Menu extends BaseAdminController
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置菜单
|
||||
* 更新微信菜单
|
||||
* @description 更新微信菜单
|
||||
* @return Response
|
||||
* @throws InvalidConfigException
|
||||
* @throws GuzzleException
|
||||
|
||||
@ -23,6 +23,7 @@ class Reply extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 关键词回复
|
||||
* @description 关键词回复
|
||||
* @return Response
|
||||
*/
|
||||
public function keyword($id)
|
||||
@ -43,6 +44,7 @@ class Reply extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 新增关键词回复
|
||||
* @description 新增关键词回复
|
||||
* @return Response
|
||||
*/
|
||||
public function addKeyword()
|
||||
@ -62,6 +64,7 @@ class Reply extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 更新关键词回复
|
||||
* @description 更新关键词回复
|
||||
* @return Response
|
||||
*/
|
||||
public function editKeyword($id)
|
||||
@ -81,6 +84,7 @@ class Reply extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 删除关键字回复
|
||||
* @description 删除关键字回复
|
||||
* @return Response
|
||||
*/
|
||||
public function delKeyword($id)
|
||||
@ -92,6 +96,7 @@ class Reply extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取默认回复
|
||||
* @description 获取默认回复
|
||||
* @return Response
|
||||
*/
|
||||
public function default()
|
||||
@ -102,6 +107,7 @@ class Reply extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 更新默认回复
|
||||
* @description 更新默认回复
|
||||
* @return Response
|
||||
*/
|
||||
public function editDefault()
|
||||
@ -116,6 +122,7 @@ class Reply extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 获取关注回复
|
||||
* @description 获取关注回复
|
||||
* @return Response
|
||||
*/
|
||||
public function subscribe()
|
||||
@ -126,6 +133,7 @@ class Reply extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 更新关注回复
|
||||
* @description 更新关注回复
|
||||
* @return Response
|
||||
*/
|
||||
public function editSubscribe()
|
||||
|
||||
@ -22,7 +22,8 @@ class Template extends BaseAdminController
|
||||
{
|
||||
|
||||
/**
|
||||
* 菜单信息
|
||||
* 同步微信公众号消息模板
|
||||
* @description 同步微信公众号消息模板
|
||||
* @return Response
|
||||
*/
|
||||
public function sync()
|
||||
@ -36,6 +37,7 @@ class Template extends BaseAdminController
|
||||
|
||||
/**
|
||||
* 模板消息
|
||||
* @description 获取模板消息
|
||||
* @return Response
|
||||
*/
|
||||
public function lists()
|
||||
|
||||
@ -15,6 +15,7 @@ namespace app\adminapi\middleware;
|
||||
use app\Request;
|
||||
use app\service\admin\user\UserLogService;
|
||||
use Closure;
|
||||
use ReflectionClass;
|
||||
|
||||
/**
|
||||
* admin用户操作日志
|
||||
@ -27,18 +28,63 @@ class AdminLog
|
||||
{
|
||||
//写入日志
|
||||
if ($request->method() != 'GET') {
|
||||
$path = $request->rule()->getRoute();
|
||||
if(strstr($path,'@')){
|
||||
$arr = explode('@', $path);
|
||||
$controller = $arr[0] ?? "";
|
||||
$action = $arr[1] ?? "";
|
||||
}else{
|
||||
//暂时只有APP目录下使用这样的路由定义
|
||||
list($controllerStr, $action) = explode('/', $path, 2);
|
||||
list($module, $controller) = explode('.', $controllerStr, 2);
|
||||
// 拼接完整类名(根据 TP 命名空间规则调整)
|
||||
$controllerClass = "app\\adminapi\\controller\\{$module}\\{$controller}";
|
||||
$controller = $controllerClass;
|
||||
}
|
||||
|
||||
$operation = $this->extractDescFromAnnotation($controller, $action);
|
||||
$data = [
|
||||
'uid' => $request->uid(),
|
||||
'username' => $request->username(),
|
||||
'url' => $request->url(),
|
||||
'params' => $request->param(),
|
||||
'ip' => $request->ip(),
|
||||
'type' => $request->method()
|
||||
|
||||
'type' => $request->method(),
|
||||
'operation' => $operation,
|
||||
];
|
||||
(new UserLogService())->add($data);
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
private function extractDescFromAnnotation($controllerClass, $actionMethod)
|
||||
{
|
||||
try {
|
||||
if (!class_exists($controllerClass)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$reflection = new ReflectionClass($controllerClass);
|
||||
$controller_comment = $reflection->getDocComment();
|
||||
$controller_desc = '';
|
||||
if (preg_match('/@description\s+(.+)/', $controller_comment, $matches)) {
|
||||
$controller_desc = $matches[1];
|
||||
}
|
||||
if (!$reflection->hasMethod($actionMethod)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$method = $reflection->getMethod($actionMethod);
|
||||
$docComment = $method->getDocComment();
|
||||
|
||||
if (preg_match('/@description\s+(.+)/', $docComment, $matches)) {
|
||||
return (empty($controller_desc) ? "" : $controller_desc.'-').$matches[1];
|
||||
}
|
||||
|
||||
return '';
|
||||
} catch (\Exception $e) {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -91,4 +91,6 @@ Route::group(function () {
|
||||
Route::get('addon/list/install', 'addon.Addon/getInstallList');
|
||||
// 获取应用列表
|
||||
Route::get('addon/list/showapp', 'addon.Addon/showApp');
|
||||
// 获取营销列表
|
||||
Route::get('showMarketing', 'addon.Addon/showMarketing');
|
||||
});
|
||||
|
||||
@ -36,6 +36,7 @@ Route::group('member', function() {
|
||||
Route::get('member/export', 'member.Member/export');
|
||||
|
||||
Route::put('member/modify/:member_id/:field', 'member.Member/modify');
|
||||
Route::post('member/batch_modify', 'member.Member/batchModify');
|
||||
//会员注册方式
|
||||
Route::get('registertype', 'member.Member/getMemberRegisterType');
|
||||
//会员注册渠道
|
||||
|
||||
@ -37,8 +37,8 @@ Route::group('sys', function() {
|
||||
Route::put('role/:role_id', 'sys.Role/edit');
|
||||
//删除用户组
|
||||
Route::delete('role/:role_id', 'sys.Role/del');
|
||||
//设置用户组状态
|
||||
Route::put('role/status/:role_id', 'sys.Role/setStatus');
|
||||
// 修改用户组状态
|
||||
Route::put('role/status', 'sys.Role/modifyStatus');
|
||||
/***************************************************** 菜单 ****************************************************/
|
||||
//菜单新增
|
||||
Route::post('menu', 'sys.Menu/add');
|
||||
|
||||
@ -43,6 +43,20 @@ class DiyForm extends BaseApiController
|
||||
return success('SUCCESS', ( new DiyFormService() )->addRecord($data));
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑填表记录
|
||||
* @return Response
|
||||
*/
|
||||
public function editRecord()
|
||||
{
|
||||
$data = $this->request->params([
|
||||
[ 'record_id', '' ],
|
||||
[ 'value', [] ],
|
||||
[ 'relate_id', '' ],
|
||||
]);
|
||||
return success('SUCCESS', ( new DiyFormService() )->editRecord($data));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取表单填写结果信息
|
||||
* @return Response
|
||||
@ -66,4 +80,13 @@ class DiyForm extends BaseApiController
|
||||
]);
|
||||
return success('SUCCESS', ( new DiyFormService() )->getFormRecordInfo($data));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取个人资料表单填写记录
|
||||
* @return Response
|
||||
*/
|
||||
public function getMemberInfoRecord()
|
||||
{
|
||||
return success('SUCCESS', ( new DiyFormService() )->getMemberInfoFormRecordInfo());
|
||||
}
|
||||
}
|
||||
|
||||
@ -89,11 +89,21 @@ class Config extends BaseApiController
|
||||
$res[ 'member_level' ] = ( new MemberLevelService() )->getList();
|
||||
$res[ 'login_config' ] = ( new MemberConfigService() )->getLoginConfig($data[ 'url' ]);
|
||||
$res[ 'theme_list' ] = ( new DiyService() )->getDiyTheme();
|
||||
|
||||
// 查询是否已经存在该小程序用户, 如果存在则小程序端快捷登录时不再弹出授权弹框
|
||||
$openid_field = match ( $this->request->getChannel() ) {
|
||||
'wechat' => 'wx_openid',
|
||||
'weapp' => 'weapp_openid',
|
||||
default => ''
|
||||
};
|
||||
// 根据来源查询是否已经存在用户, 如果存在则快捷登录时不再弹出授权弹框
|
||||
// 根据来源查询是否绑定手机号, 如果绑定并且开启强制绑定则快捷登录时不再弹出绑定手机弹窗
|
||||
$res[ 'member_exist' ] = 0;
|
||||
$res[ 'member_mobile_exist' ] = 0;
|
||||
if (!empty($data[ 'openid' ])) {
|
||||
$res[ 'member_exist' ] = ( new MemberService() )->getCount([ [ 'weapp_openid', '=', $data[ 'openid' ] ] ]) > 0 ? 1 : 0;
|
||||
if (!empty($openid_field)){
|
||||
$res[ 'member_exist' ] = ( new MemberService() )->getCount([ [ $openid_field, '=', $data[ 'openid' ] ] ]) > 0 ? 1 : 0;
|
||||
|
||||
$res[ 'member_mobile_exist' ] = ( new MemberService() )->getCount([ [ $openid_field, '=', $data[ 'openid' ] ], [ 'mobile', '<>', '' ] ]) > 0 ? 1 : 0;
|
||||
}
|
||||
}
|
||||
|
||||
( new MemberService() )->initMemberData();
|
||||
@ -101,4 +111,31 @@ class Config extends BaseApiController
|
||||
event('initWap');
|
||||
return success($res);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户是否绑定手机
|
||||
* @return Response
|
||||
*/
|
||||
public function getMemberMobileExist()
|
||||
{
|
||||
$data = $this->request->params([
|
||||
[ 'openid', '' ]
|
||||
]);
|
||||
|
||||
$openid_field = match ( $this->request->getChannel() ) {
|
||||
'wechat' => 'wx_openid',
|
||||
'weapp' => 'weapp_openid',
|
||||
default => ''
|
||||
};
|
||||
|
||||
// 根据来源查询是否绑定手机号, 如果绑定并且开启强制绑定则快捷登录时不再弹出绑定手机弹窗
|
||||
$res[ 'member_mobile_exist' ] = 0;
|
||||
if (!empty($data[ 'openid' ])) {
|
||||
if (!empty($openid_field)) {
|
||||
$res['member_mobile_exist'] = (new MemberService())->getCount([ [ $openid_field, '=', $data['openid'] ], ['mobile', '<>', ''] ]) > 0 ? 1 : 0;
|
||||
}
|
||||
}
|
||||
|
||||
return success($res);
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,6 +11,7 @@
|
||||
|
||||
namespace app\api\controller\wechat;
|
||||
|
||||
use app\service\api\login\LoginService;
|
||||
use app\service\api\wechat\WechatConfigService;
|
||||
use app\service\api\wechat\WechatAuthService;
|
||||
use core\base\BaseController;
|
||||
@ -96,6 +97,10 @@ class Wechat extends BaseController
|
||||
$this->validate($data, [
|
||||
'mobile' => 'mobile'
|
||||
]);
|
||||
|
||||
// 校验手机验证码(电脑端扫码)
|
||||
( new LoginService() )->checkMobileCode($data[ 'mobile' ]);
|
||||
|
||||
$wechat_auth_service = new WechatAuthService();
|
||||
return success($wechat_auth_service->register($data[ 'openid' ], $data[ 'mobile' ], wx_unionid: $data[ 'unionid' ]));
|
||||
}
|
||||
|
||||
@ -24,6 +24,7 @@ class BindDispatch extends Controller
|
||||
}
|
||||
|
||||
switch ($channel) {
|
||||
case MemberLoginTypeDict::PC:
|
||||
case MemberLoginTypeDict::WECHAT:
|
||||
$controller = 'wechat.Wechat';
|
||||
$action = 'register';
|
||||
|
||||
@ -42,12 +42,18 @@ Route::group('diy', function() {
|
||||
// 提交填表记录
|
||||
Route::post('form/record', 'diy.DiyForm/addRecord');
|
||||
|
||||
// 修改填表记录
|
||||
Route::put('form/record', 'diy.DiyForm/editRecord');
|
||||
|
||||
// 获取表单填写结果信息
|
||||
Route::get('form/result', 'diy.DiyForm/getResult');
|
||||
|
||||
// 获取填表记录
|
||||
Route::get('form/record', 'diy.DiyForm/getRecord');
|
||||
|
||||
// 获取个人资料表单填写记录
|
||||
Route::get('form/member_record', 'diy.DiyForm/getMemberInfoRecord');
|
||||
|
||||
})->middleware(ApiLog::class)
|
||||
->middleware(ApiCheckToken::class, true);
|
||||
|
||||
|
||||
@ -21,12 +21,7 @@ use think\facade\Route;
|
||||
Route::group('file', function() {
|
||||
|
||||
/***************************************************** 会员管理 ****************************************************/
|
||||
//上传图片
|
||||
Route::post('image', 'upload.Upload/image');
|
||||
//上传视频
|
||||
Route::post('video', 'upload.Upload/video');
|
||||
//拉取图片
|
||||
Route::post('image/fetch', 'upload.Upload/imageFetch');
|
||||
|
||||
|
||||
})->middleware(ApiChannel::class)
|
||||
->middleware(ApiCheckToken::class, true)
|
||||
@ -36,7 +31,12 @@ Route::group('file', function() {
|
||||
* 会员个人信息管理
|
||||
*/
|
||||
Route::group('file', function() {
|
||||
|
||||
//上传图片
|
||||
Route::post('image', 'upload.Upload/image');
|
||||
//上传视频
|
||||
Route::post('video', 'upload.Upload/video');
|
||||
//拉取图片
|
||||
Route::post('image/fetch', 'upload.Upload/imageFetch');
|
||||
//base64图片
|
||||
Route::post('image/base64', 'upload.Upload/imageBase64');
|
||||
|
||||
|
||||
@ -108,6 +108,8 @@ Route::group(function() {
|
||||
|
||||
// 获取初始化数据信息
|
||||
Route::get('init', 'sys.Config/init');
|
||||
// 获取公众号用户是否绑定手机
|
||||
Route::get('member_mobile_exist', 'sys.Config/getMemberMobileExist');
|
||||
|
||||
/***************************************************** 地区管理 ****************************************************/
|
||||
//通过pid获取列表
|
||||
|
||||
@ -936,8 +936,8 @@ function poster($id, $type, array $param = [], string $channel = '', bool $is_th
|
||||
|
||||
/**
|
||||
* 是否是url链接
|
||||
* @param unknown $string
|
||||
* @return boolean
|
||||
* @param $string
|
||||
* @return bool
|
||||
*/
|
||||
function is_url($string)
|
||||
{
|
||||
|
||||
@ -19,40 +19,58 @@ namespace app\dict\common;
|
||||
*/
|
||||
class CommonActiveDict
|
||||
{
|
||||
const IMPULSE_BUY = 'impulse_buy';
|
||||
const GIFTCARD = 'gift_card';
|
||||
const IMPULSE_BUY = 'impulse_buy';//顺手买 顺
|
||||
const GIFTCARD = 'gift_card';//礼品卡 礼
|
||||
|
||||
const DISCOUNT = 'discount';// 限时折扣
|
||||
const EXCHANGE = 'exchange';// 积分商城
|
||||
const MANJIANSONG = 'manjiansong'; // 满减送
|
||||
const NEWCOMER_DISCOUNT = 'newcomer_discount'; // 新人专享
|
||||
const DISCOUNT = 'discount';// 限时折扣 折
|
||||
const EXCHANGE = 'exchange';// 积分商城 积
|
||||
const MANJIANSONG = 'manjiansong'; // 满减送 满减
|
||||
const NEWCOMER_DISCOUNT = 'newcomer_discount'; // 新人专享 新
|
||||
const PINTUAN = 'pintuan'; // 新人专享 新
|
||||
const SECKILL = 'seckill'; // 秒杀 秒
|
||||
|
||||
public static function getActiveShort($active)
|
||||
public static function getActiveShort($active = '')
|
||||
{
|
||||
$data = [
|
||||
self::IMPULSE_BUY => [
|
||||
'name' => get_lang('common_active_short.impulse_buy'),
|
||||
'bg_color' => "#FFAE42"
|
||||
'name' => get_lang('common_active_short.impulse_buy_short'),
|
||||
'active_name' => get_lang('common_active_short.impulse_buy_name'),
|
||||
'bg_color' => "#FF7700"
|
||||
],
|
||||
self::GIFTCARD => [
|
||||
'name' => get_lang('common_active_short.gift_card'),
|
||||
'bg_color' => '#FF0000'
|
||||
'name' => get_lang('common_active_short.gift_card_short'),
|
||||
'active_name' => get_lang('common_active_short.gift_card_name'),
|
||||
'bg_color' => '#F00000'
|
||||
],
|
||||
self::DISCOUNT => [
|
||||
'name' => get_lang('common_active_short.discount'),
|
||||
'bg_color' => '#38B0DE'
|
||||
'name' => get_lang('common_active_short.discount_short'),
|
||||
'active_name' => get_lang('common_active_short.discount_name'),
|
||||
'bg_color' => '#FFA322'
|
||||
],
|
||||
self::EXCHANGE => [
|
||||
'name' => get_lang('common_active_short.exchange'),
|
||||
'bg_color' => '#00FFFF'
|
||||
'name' => get_lang('common_active_short.exchange_short'),
|
||||
'active_name' => get_lang('common_active_short.exchange_name'),
|
||||
'bg_color' => '#00C441'
|
||||
],
|
||||
self::MANJIANSONG => [
|
||||
'name' => get_lang('common_active_short.manjiansong'),
|
||||
'bg_color' => '#00FF00'
|
||||
'name' => get_lang('common_active_short.manjiansong_short'),
|
||||
'active_name' => get_lang('common_active_short.manjiansong_name'),
|
||||
'bg_color' => '#249DE9'
|
||||
],
|
||||
self::NEWCOMER_DISCOUNT => [
|
||||
'name' => get_lang('common_active_short.newcomer_discount'),
|
||||
'bg_color' => '#70DB93'
|
||||
'name' => get_lang('common_active_short.newcomer_discount_short'),
|
||||
'active_name' => get_lang('common_active_short.newcomer_discount_name'),
|
||||
'bg_color' => '#BB27FF'
|
||||
],
|
||||
self::SECKILL => [
|
||||
'name' => get_lang('common_active_short.seckill_short'),
|
||||
'active_name' => get_lang('common_active_short.seckill_name'),
|
||||
'bg_color' => '#F606CA'
|
||||
],
|
||||
self::PINTUAN => [
|
||||
'name' => get_lang('common_active_short.pintuan_short'),
|
||||
'active_name' => get_lang('common_active_short.pintuan_name'),
|
||||
'bg_color' => '#FF1C77'
|
||||
],
|
||||
];
|
||||
return !empty($active) ? $data[$active] : $data;
|
||||
|
||||
@ -189,7 +189,7 @@ class PagesDict
|
||||
'imgUrl' => "",
|
||||
'imgWidth' => '',
|
||||
'imgHeight' => '',
|
||||
'count' => -1,
|
||||
'count' => 'once',
|
||||
'show' => 0,
|
||||
'link' => [
|
||||
'name' => ""
|
||||
@ -261,7 +261,7 @@ class PagesDict
|
||||
'imgUrl' => "",
|
||||
'imgWidth' => '',
|
||||
'imgHeight' => '',
|
||||
'count' => -1,
|
||||
'count' => 'once',
|
||||
'show' => 0,
|
||||
'link' => [
|
||||
'name' => ""
|
||||
@ -726,7 +726,7 @@ class PagesDict
|
||||
'imgUrl' => "",
|
||||
'imgWidth' => '',
|
||||
'imgHeight' => '',
|
||||
'count' => -1,
|
||||
'count' => 'once',
|
||||
'show' => 0,
|
||||
'link' => [
|
||||
'name' => ""
|
||||
|
||||
@ -82,7 +82,7 @@ class TemplateDict
|
||||
"imgUrl" => "",
|
||||
"imgWidth" => "",
|
||||
"imgHeight" => "",
|
||||
"count" => -1,
|
||||
"count" => 'once',
|
||||
"show" => 0,
|
||||
"link" => [
|
||||
"name" => ""
|
||||
@ -683,6 +683,392 @@ class TemplateDict
|
||||
|
||||
],
|
||||
],
|
||||
"DIY_FORM_MEMBER_INFO" => [
|
||||
'member_info_form_data' => [ // 页面标识
|
||||
"title" => "个人资料", // 页面名称
|
||||
'cover' => '', // 页面封面图
|
||||
'preview' => '', // 页面预览图
|
||||
'desc' => '适用于会员个人资料字段补充收集', // 页面描述
|
||||
'containField' => '共7个字段,包含7个字段:姓名、身份证号、邮箱、职业、爱好、身份证人像面、身份证国徽面', // 包含字段
|
||||
// 页面数据源
|
||||
"data" => [
|
||||
"global" => [
|
||||
"title" => "个人资料",
|
||||
"completeLayout" => "style-1",
|
||||
"completeAlign" => "left",
|
||||
"borderControl" => true,
|
||||
"pageStartBgColor" => "rgba(255, 255, 255, 1)",
|
||||
"pageEndBgColor" => "",
|
||||
"pageGradientAngle" => "to bottom",
|
||||
"bgUrl" => "",
|
||||
"bgHeightScale" => 100,
|
||||
"imgWidth" => "",
|
||||
"imgHeight" => "",
|
||||
"topStatusBar" => [
|
||||
"isShow" => true,
|
||||
"bgColor" => "#ffffff",
|
||||
"rollBgColor" => "#ffffff",
|
||||
"style" => "style-1",
|
||||
"styleName" => "风格1",
|
||||
"textColor" => "#333333",
|
||||
"rollTextColor" => "#333333",
|
||||
"textAlign" => "center",
|
||||
"inputPlaceholder" => "请输入搜索关键词",
|
||||
"imgUrl" => "",
|
||||
"link" => [
|
||||
"name" => ""
|
||||
]
|
||||
],
|
||||
"bottomTabBarSwitch" => true,
|
||||
"popWindow" => [
|
||||
"imgUrl" => "",
|
||||
"imgWidth" => "",
|
||||
"imgHeight" => "",
|
||||
"count" => -1,
|
||||
"show" => 0,
|
||||
"link" => [
|
||||
"name" => ""
|
||||
]
|
||||
],
|
||||
"template" => [
|
||||
"textColor" => "#303133",
|
||||
"pageStartBgColor" => "",
|
||||
"pageEndBgColor" => "",
|
||||
"pageGradientAngle" => "to bottom",
|
||||
"componentBgUrl" => "",
|
||||
"componentBgAlpha" => 2,
|
||||
"componentStartBgColor" => "",
|
||||
"componentEndBgColor" => "",
|
||||
"componentGradientAngle" => "to bottom",
|
||||
"topRounded" => 0,
|
||||
"bottomRounded" => 0,
|
||||
"elementBgColor" => "",
|
||||
"topElementRounded" => 0,
|
||||
"bottomElementRounded" => 0,
|
||||
"margin" => [
|
||||
"top" => 0,
|
||||
"bottom" => 0,
|
||||
"both" => 0
|
||||
],
|
||||
"isHidden" => false
|
||||
]
|
||||
],
|
||||
"value" => [
|
||||
[
|
||||
"path" => "edit-form-input",
|
||||
"uses" => 0,
|
||||
"position" => "",
|
||||
"componentType" => "diy_form",
|
||||
"id" => "46wkksoz5ew0",
|
||||
"componentName" => "FormInput",
|
||||
"componentTitle" => "单行文本",
|
||||
"ignore" => [
|
||||
"componentBgUrl"
|
||||
],
|
||||
"field" => [
|
||||
"name" => "姓名",
|
||||
"remark" => [
|
||||
"text" => "",
|
||||
"color" => "#999999",
|
||||
"fontSize" => 14
|
||||
],
|
||||
"required" => true,
|
||||
"unique" => false,
|
||||
"autofill" => false,
|
||||
"privacyProtection" => false,
|
||||
"cache" => true,
|
||||
"default" => "",
|
||||
"value" => ""
|
||||
],
|
||||
"placeholder" => "请输入姓名",
|
||||
"fontSize" => 14,
|
||||
"fontWeight" => "bold",
|
||||
"textColor" => "#303133",
|
||||
"pageStartBgColor" => "#FFFFFF",
|
||||
"pageEndBgColor" => "",
|
||||
"pageGradientAngle" => "to bottom",
|
||||
"componentBgUrl" => "",
|
||||
"componentBgAlpha" => 2,
|
||||
"componentStartBgColor" => "",
|
||||
"componentEndBgColor" => "",
|
||||
"componentGradientAngle" => "to bottom",
|
||||
"topRounded" => 0,
|
||||
"bottomRounded" => 0,
|
||||
"elementBgColor" => "",
|
||||
"topElementRounded" => 0,
|
||||
"bottomElementRounded" => 0,
|
||||
"margin" => [
|
||||
"top" => 15,
|
||||
"bottom" => 10,
|
||||
"both" => 25
|
||||
],
|
||||
"isHidden" => false,
|
||||
"pageStyle" => "background-color:#FFFFFF;padding-top:30rpx;padding-bottom:20rpx;padding-right:34rpx;padding-left:34rpx;"
|
||||
],
|
||||
[
|
||||
"path" => "edit-form-identity",
|
||||
"uses" => 1,
|
||||
"componentType" => "diy_form",
|
||||
"id" => "4hy63cm1lj80",
|
||||
"componentName" => "FormIdentity",
|
||||
"componentTitle" => "身份证号",
|
||||
"ignore" => [
|
||||
"componentBgUrl"
|
||||
],
|
||||
"field" => [
|
||||
"name" => "身份证号",
|
||||
"remark" => [
|
||||
"text" => "",
|
||||
"color" => "#999999",
|
||||
"fontSize" => 14
|
||||
],
|
||||
"required" => false,
|
||||
"unique" => true,
|
||||
"autofill" => false,
|
||||
"privacyProtection" => false,
|
||||
'cache' => true,
|
||||
"default" => "",
|
||||
"value" => ""
|
||||
],
|
||||
"placeholder" => "请输入身份证号",
|
||||
"fontSize" => 14,
|
||||
"fontWeight" => "bold",
|
||||
"textColor" => "#303133",
|
||||
"pageStartBgColor" => "#FFFFFF",
|
||||
"pageEndBgColor" => "",
|
||||
"pageGradientAngle" => "to bottom",
|
||||
"componentBgUrl" => "",
|
||||
"componentBgAlpha" => 2,
|
||||
"componentStartBgColor" => "",
|
||||
"componentEndBgColor" => "",
|
||||
"componentGradientAngle" => "to bottom",
|
||||
"topRounded" => 0,
|
||||
"bottomRounded" => 0,
|
||||
"elementBgColor" => "",
|
||||
"topElementRounded" => 0,
|
||||
"bottomElementRounded" => 0,
|
||||
"margin" => [
|
||||
"top" => 5,
|
||||
"bottom" => 10,
|
||||
"both" => 25
|
||||
],
|
||||
"isHidden" => false,
|
||||
"pageStyle" => "background-color:#FFFFFF;padding-top:10rpx;padding-bottom:20rpx;padding-right:34rpx;padding-left:34rpx;"
|
||||
],
|
||||
[
|
||||
"path" => "edit-form-email",
|
||||
"uses" => 0,
|
||||
"componentType" => "diy_form",
|
||||
"id" => "13f2w3r9h9vg",
|
||||
"componentName" => "FormEmail",
|
||||
"componentTitle" => "邮箱",
|
||||
"ignore" => [
|
||||
"componentBgUrl"
|
||||
],
|
||||
"field" => [
|
||||
"name" => "邮箱",
|
||||
"remark" => [
|
||||
"text" => "",
|
||||
"color" => "#999999",
|
||||
"fontSize" => 14
|
||||
],
|
||||
"required" => false,
|
||||
"unique" => false,
|
||||
"autofill" => false,
|
||||
"privacyProtection" => false,
|
||||
'cache' => true,
|
||||
"default" => "",
|
||||
"value" => ""
|
||||
],
|
||||
"placeholder" => "请输入邮箱",
|
||||
"fontSize" => 14,
|
||||
"fontWeight" => "bold",
|
||||
"textColor" => "#303133",
|
||||
"pageStartBgColor" => "#FFFFFF",
|
||||
"pageEndBgColor" => "",
|
||||
"pageGradientAngle" => "to bottom",
|
||||
"componentBgUrl" => "",
|
||||
"componentBgAlpha" => 2,
|
||||
"componentStartBgColor" => "",
|
||||
"componentEndBgColor" => "",
|
||||
"componentGradientAngle" => "to bottom",
|
||||
"topRounded" => 0,
|
||||
"bottomRounded" => 0,
|
||||
"elementBgColor" => "",
|
||||
"topElementRounded" => 0,
|
||||
"bottomElementRounded" => 0,
|
||||
"margin" => [
|
||||
"top" => 5,
|
||||
"bottom" => 10,
|
||||
"both" => 25
|
||||
],
|
||||
"isHidden" => false,
|
||||
"pageStyle" => "background-color:#FFFFFF;padding-top:10rpx;padding-bottom:20rpx;padding-right:34rpx;padding-left:34rpx;"
|
||||
],
|
||||
[
|
||||
"path" => "edit-form-checkbox",
|
||||
"uses" => 0,
|
||||
"convert" => [],
|
||||
"componentType" => "diy_form",
|
||||
"id" => "4jcvmb2asve0",
|
||||
"componentName" => "FormCheckbox",
|
||||
"componentTitle" => "多选项",
|
||||
"ignore" => [
|
||||
"componentBgUrl"
|
||||
],
|
||||
"field" => [
|
||||
"name" => "职业",
|
||||
"remark" => [
|
||||
"text" => "",
|
||||
"color" => "#999999",
|
||||
"fontSize" => 14
|
||||
],
|
||||
"required" => true,
|
||||
"unique" => false,
|
||||
"autofill" => false,
|
||||
"privacyProtection" => false,
|
||||
'cache' => true,
|
||||
"default" => [],
|
||||
"value" => []
|
||||
],
|
||||
"fontSize" => 14,
|
||||
"fontWeight" => "bold",
|
||||
"style" => "style-3",
|
||||
"options" => [
|
||||
[
|
||||
"id" => "incszbphksdt",
|
||||
"text" => "选项1"
|
||||
],
|
||||
[
|
||||
"id" => "dzcjgipwkffx",
|
||||
"text" => "选项2"
|
||||
]
|
||||
],
|
||||
"selectableNum" => [
|
||||
"min" => 0,
|
||||
"max" => 0
|
||||
],
|
||||
"textColor" => "#303133",
|
||||
"pageStartBgColor" => "#FFFFFF",
|
||||
"pageEndBgColor" => "",
|
||||
"pageGradientAngle" => "to bottom",
|
||||
"componentBgUrl" => "",
|
||||
"componentBgAlpha" => 2,
|
||||
"componentStartBgColor" => "",
|
||||
"componentEndBgColor" => "",
|
||||
"componentGradientAngle" => "to bottom",
|
||||
"topRounded" => 0,
|
||||
"bottomRounded" => 0,
|
||||
"elementBgColor" => "",
|
||||
"topElementRounded" => 0,
|
||||
"bottomElementRounded" => 0,
|
||||
"margin" => [
|
||||
"top" => 5,
|
||||
"bottom" => 10,
|
||||
"both" => 25
|
||||
],
|
||||
"isHidden" => false,
|
||||
],
|
||||
[
|
||||
"path" => "edit-form-textarea",
|
||||
"uses" => 0,
|
||||
"componentType" => "diy_form",
|
||||
"id" => "64a0gh89tz40",
|
||||
"componentName" => "FormTextarea",
|
||||
"componentTitle" => "多行文本",
|
||||
"ignore" => [
|
||||
"componentBgUrl"
|
||||
],
|
||||
"field" => [
|
||||
"name" => "爱好",
|
||||
"remark" => [
|
||||
"text" => "",
|
||||
"color" => "#999999",
|
||||
"fontSize" => 14
|
||||
],
|
||||
"required" => false,
|
||||
"unique" => false,
|
||||
"autofill" => false,
|
||||
"privacyProtection" => false,
|
||||
'cache' => true,
|
||||
"default" => "",
|
||||
"value" => ""
|
||||
],
|
||||
"placeholder" => "请输入特长优点",
|
||||
"fontSize" => 14,
|
||||
"fontWeight" => "bold",
|
||||
"rowCount" => 4,
|
||||
"textColor" => "#303133",
|
||||
"pageStartBgColor" => "#FFFFFF",
|
||||
"pageEndBgColor" => "",
|
||||
"pageGradientAngle" => "to bottom",
|
||||
"componentBgUrl" => "",
|
||||
"componentBgAlpha" => 2,
|
||||
"componentStartBgColor" => "",
|
||||
"componentEndBgColor" => "",
|
||||
"componentGradientAngle" => "to bottom",
|
||||
"topRounded" => 0,
|
||||
"bottomRounded" => 0,
|
||||
"elementBgColor" => "",
|
||||
"topElementRounded" => 0,
|
||||
"bottomElementRounded" => 0,
|
||||
"margin" => [
|
||||
"top" => 5,
|
||||
"bottom" => 10,
|
||||
"both" => 25
|
||||
],
|
||||
"isHidden" => false,
|
||||
"pageStyle" => "background-color:#FFFFFF;padding-top:10rpx;padding-bottom:20rpx;padding-right:34rpx;padding-left:34rpx;"
|
||||
],
|
||||
[
|
||||
"path" => "edit-form-submit",
|
||||
"uses" => 1,
|
||||
"position" => "bottom_fixed",
|
||||
"componentType" => "diy_form",
|
||||
"id" => "38b02iygfzc0",
|
||||
"componentName" => "FormSubmit",
|
||||
"componentTitle" => "表单提交",
|
||||
"ignore" => [
|
||||
"componentBgUrl"
|
||||
],
|
||||
"btnPosition" => "follow_content",
|
||||
"submitBtn" => [
|
||||
"text" => "提交",
|
||||
"color" => "#ffffff",
|
||||
"bgColor" => "#409EFF"
|
||||
],
|
||||
"resetBtn" => [
|
||||
"control" => true,
|
||||
"text" => "重置",
|
||||
"color" => "",
|
||||
"bgColor" => ""
|
||||
],
|
||||
"textColor" => "#303133",
|
||||
"pageStartBgColor" => "",
|
||||
"pageEndBgColor" => "",
|
||||
"pageGradientAngle" => "to bottom",
|
||||
"componentBgUrl" => "",
|
||||
"componentBgAlpha" => 2,
|
||||
"componentStartBgColor" => "",
|
||||
"componentEndBgColor" => "",
|
||||
"componentGradientAngle" => "to bottom",
|
||||
"topRounded" => 0,
|
||||
"bottomRounded" => 0,
|
||||
"elementBgColor" => "",
|
||||
"topElementRounded" => 50,
|
||||
"bottomElementRounded" => 50,
|
||||
"margin" => [
|
||||
"top" => 5,
|
||||
"bottom" => 5,
|
||||
"both" => 25
|
||||
],
|
||||
"isHidden" => false,
|
||||
"pageStyle" => "padding-top:10rpx;padding-bottom:10rpx;padding-right:20rpx;padding-left:20rpx;"
|
||||
]
|
||||
]
|
||||
]
|
||||
],
|
||||
],
|
||||
// todo 靠后完善
|
||||
// 'SIGN_REGISTRATION' => [
|
||||
// 'active_sign_up' => [ // 页面标识
|
||||
|
||||
@ -11,6 +11,7 @@
|
||||
|
||||
namespace app\dict\diy_form;
|
||||
|
||||
use app\dict\sys\AppTypeDict;
|
||||
use core\dict\DictLoader;
|
||||
|
||||
/**
|
||||
@ -34,6 +35,15 @@ class TypeDict
|
||||
'sort' => 10001,
|
||||
'addon' => ''
|
||||
],
|
||||
//个人资料
|
||||
'DIY_FORM_MEMBER_INFO' => [
|
||||
'title' => get_lang('dict_diy_form.type_diy_form_member_info'),
|
||||
'preview' => 'static/resource/images/diy_form/diy_form_member_info_preview.jpg', // 预览图
|
||||
'sort' => 10002,
|
||||
'addon' => '',
|
||||
'app_type' => [AppTypeDict::ADMIN],
|
||||
"show_submit" => true, // 是否显示表单提交组件
|
||||
],
|
||||
//签到报名登记 todo 靠后完善
|
||||
// 'SIGN_REGISTRATION' => [
|
||||
// 'title' => get_lang('dict_diy_form.type_sign_registration'),
|
||||
|
||||
@ -27,13 +27,16 @@ class MemberLoginTypeDict
|
||||
//微信小程序授权登录
|
||||
public const WEAPP = 'weapp';
|
||||
|
||||
// PC登录
|
||||
public const PC = 'pc';
|
||||
|
||||
public static function getType($type = '')
|
||||
{
|
||||
$data = [
|
||||
self::USERNAME => get_lang('dict_member.login_username'),//用户名密码登录
|
||||
self::MOBILE => get_lang('dict_member.login_mobile'),//手机号验证码登录,
|
||||
self::WECHAT => get_lang('dict_member.login_wechat'),//'微信公众号授权登录',
|
||||
self::WEAPP => get_lang('dict_member.login_weapp'),//'微信小程序授权登录',
|
||||
self::PC => get_lang('dict_member.login_pc'),//'微信小程序授权登录',
|
||||
];
|
||||
if (empty($type)) {
|
||||
return $data;
|
||||
|
||||
@ -6,7 +6,7 @@ return [
|
||||
'menu_short_name' => '装修',
|
||||
'parent_key' => '',
|
||||
'menu_type' => '0',
|
||||
'icon' => 'element Brush',
|
||||
'icon' => 'iconfont iconzhuangxiu3',
|
||||
'api_url' => '',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
@ -19,6 +19,7 @@ return [
|
||||
'menu_name' => '编辑',
|
||||
'menu_key' => 'diy_tabbar_edit',
|
||||
'menu_short_name' => '编辑',
|
||||
'parent_select_key' => 'diy_bottom',
|
||||
'menu_type' => '1',
|
||||
'icon' => '',
|
||||
'api_url' => 'diy/bottom/edit',
|
||||
@ -279,6 +280,7 @@ return [
|
||||
'menu_name' => '海报装修',
|
||||
'menu_key' => 'poster_decorate',
|
||||
'menu_short_name' => '海报装修',
|
||||
'parent_select_key' => 'poster_management',
|
||||
'menu_type' => '1',
|
||||
'icon' => '',
|
||||
'api_url' => 'poster/<id>',
|
||||
@ -543,7 +545,7 @@ return [
|
||||
'menu_short_name' => '会员',
|
||||
'parent_key' => '',
|
||||
'menu_type' => '0',
|
||||
'icon' => 'iconfont iconjiaoseyonghu',
|
||||
'icon' => 'iconfont iconhuiyuan',
|
||||
'api_url' => '',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
@ -614,6 +616,7 @@ return [
|
||||
'menu_name' => '会员详情',
|
||||
'menu_key' => 'member_info',
|
||||
'menu_short_name' => '会员详情',
|
||||
'parent_select_key' => 'member_list',
|
||||
'menu_type' => '1',
|
||||
'icon' => '',
|
||||
'api_url' => 'member/member/<id>',
|
||||
@ -956,7 +959,7 @@ return [
|
||||
'menu_short_name' => '财务',
|
||||
'parent_key' => '',
|
||||
'menu_type' => '0',
|
||||
'icon' => 'element Box',
|
||||
'icon' => 'iconfont iconcaiwu1',
|
||||
'api_url' => '',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
@ -1071,6 +1074,7 @@ return [
|
||||
'menu_name' => '退款详情',
|
||||
'menu_key' => 'member_refund_detail',
|
||||
'menu_short_name' => '退款详情',
|
||||
'parent_select_key' => 'member_refund_list',
|
||||
'menu_type' => '1',
|
||||
'icon' => 'iconfont iconhuiyuantixian',
|
||||
'api_url' => 'pay/refund/<refund_no>',
|
||||
@ -1089,7 +1093,7 @@ return [
|
||||
'menu_short_name' => '营销',
|
||||
'parent_key' => '',
|
||||
'menu_type' => '0',
|
||||
'icon' => 'iconfont iconyingxiao',
|
||||
'icon' => 'iconfont iconyingxiao2',
|
||||
'api_url' => '',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
@ -1099,167 +1103,181 @@ return [
|
||||
'is_show' => '1',
|
||||
'children' => [
|
||||
[
|
||||
'menu_name' => '核销管理',
|
||||
'menu_key' => 'verify',
|
||||
'menu_short_name' => '核销管理',
|
||||
'menu_name' => '营销列表',
|
||||
'menu_key' => 'marketing_list',
|
||||
'menu_short_name' => '营销列表',
|
||||
'menu_type' => '1',
|
||||
'icon' => 'iconfont iconmanage-apply',
|
||||
'api_url' => 'marketing/list',
|
||||
'router_path' => 'app/marketing',
|
||||
'view_path' => 'app/marketing',
|
||||
'methods' => 'get',
|
||||
'sort' => '50',
|
||||
'status' => '1',
|
||||
'is_show' => '1',
|
||||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
'menu_name' => '核销管理',
|
||||
'menu_key' => 'verify',
|
||||
'menu_short_name' => '核销管理',
|
||||
'menu_type' => '0',
|
||||
'icon' => '',
|
||||
'api_url' => '',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
'methods' => 'get',
|
||||
'sort' => '48',
|
||||
'status' => '1',
|
||||
'is_show' => '0',
|
||||
'children' => [
|
||||
[
|
||||
'menu_name' => '核销员',
|
||||
'menu_key' => 'verifier_list',
|
||||
'menu_short_name' => '核销员',
|
||||
'menu_type' => '1',
|
||||
'icon' => '',
|
||||
'api_url' => '',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
'api_url' => 'verify/verifier',
|
||||
'router_path' => 'marketing/verifier',
|
||||
'view_path' => 'marketing/verifier',
|
||||
'methods' => 'get',
|
||||
'sort' => '48',
|
||||
'status' => '1',
|
||||
'is_show' => '1',
|
||||
'children' => [
|
||||
[
|
||||
'menu_name' => '核销员',
|
||||
'menu_key' => 'verifier_list',
|
||||
'menu_short_name' => '核销员',
|
||||
'menu_type' => '1',
|
||||
'menu_name' => '添加核销员',
|
||||
'menu_key' => 'add_verifier',
|
||||
'menu_short_name' => '添加核销员',
|
||||
'menu_type' => '2',
|
||||
'icon' => '',
|
||||
'api_url' => 'verify/verifier',
|
||||
'router_path' => 'marketing/verifier',
|
||||
'view_path' => 'marketing/verifier',
|
||||
'methods' => 'get',
|
||||
'sort' => '48',
|
||||
'status' => '1',
|
||||
'is_show' => '1',
|
||||
'children' => [
|
||||
[
|
||||
'menu_name' => '添加核销员',
|
||||
'menu_key' => 'add_verifier',
|
||||
'menu_short_name' => '添加核销员',
|
||||
'menu_type' => '2',
|
||||
'icon' => '',
|
||||
'api_url' => 'verify/verifier',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
'methods' => 'post',
|
||||
'sort' => '100',
|
||||
'status' => '1',
|
||||
'is_show' => '1',
|
||||
],
|
||||
[
|
||||
'menu_name' => '编辑核销员',
|
||||
'menu_key' => 'edit_verifier',
|
||||
'menu_short_name' => '编辑核销员',
|
||||
'menu_type' => '2',
|
||||
'icon' => '',
|
||||
'api_url' => 'verify/verifier/<id>',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
'methods' => 'post',
|
||||
'sort' => '100',
|
||||
'status' => '1',
|
||||
'is_show' => '1',
|
||||
],
|
||||
[
|
||||
'menu_name' => '删除核销员',
|
||||
'menu_key' => 'delete_verifier',
|
||||
'menu_short_name' => '删除核销员',
|
||||
'menu_type' => '2',
|
||||
'icon' => '',
|
||||
'api_url' => 'verify/verifier/<id>',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
'methods' => 'delete',
|
||||
'sort' => '100',
|
||||
'status' => '1',
|
||||
'is_show' => '1',
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'menu_name' => '核销记录',
|
||||
'menu_key' => 'verify_list',
|
||||
'menu_short_name' => '核销记录',
|
||||
'menu_type' => '1',
|
||||
'icon' => '',
|
||||
'api_url' => 'verify/verify/record',
|
||||
'router_path' => 'marketing/verify',
|
||||
'view_path' => 'marketing/verify',
|
||||
'methods' => 'get',
|
||||
'sort' => '48',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
'methods' => 'post',
|
||||
'sort' => '100',
|
||||
'status' => '1',
|
||||
'is_show' => '1',
|
||||
],
|
||||
[
|
||||
'menu_name' => '核销详情',
|
||||
'menu_key' => 'verify_detail',
|
||||
'menu_short_name' => '核销详情',
|
||||
'menu_type' => '1',
|
||||
'menu_name' => '编辑核销员',
|
||||
'menu_key' => 'edit_verifier',
|
||||
'menu_short_name' => '编辑核销员',
|
||||
'menu_type' => '2',
|
||||
'icon' => '',
|
||||
'api_url' => 'verify/verify/<verify_code>',
|
||||
'router_path' => 'marketing/verify/detail',
|
||||
'view_path' => 'marketing/verify_detail',
|
||||
'methods' => 'get',
|
||||
'sort' => '48',
|
||||
'api_url' => 'verify/verifier/<id>',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
'methods' => 'post',
|
||||
'sort' => '100',
|
||||
'status' => '1',
|
||||
'is_show' => '0',
|
||||
'is_show' => '1',
|
||||
],
|
||||
[
|
||||
'menu_name' => '删除核销员',
|
||||
'menu_key' => 'delete_verifier',
|
||||
'menu_short_name' => '删除核销员',
|
||||
'menu_type' => '2',
|
||||
'icon' => '',
|
||||
'api_url' => 'verify/verifier/<id>',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
'methods' => 'delete',
|
||||
'sort' => '100',
|
||||
'status' => '1',
|
||||
'is_show' => '1',
|
||||
]
|
||||
],
|
||||
]
|
||||
],
|
||||
[
|
||||
'menu_name' => '签到管理',
|
||||
'menu_key' => 'sign',
|
||||
'menu_short_name' => '签到管理',
|
||||
'menu_name' => '核销记录',
|
||||
'menu_key' => 'verify_list',
|
||||
'menu_short_name' => '核销记录',
|
||||
'menu_type' => '1',
|
||||
'icon' => '',
|
||||
'api_url' => 'verify/verify/record',
|
||||
'router_path' => 'marketing/verify',
|
||||
'view_path' => 'marketing/verify',
|
||||
'methods' => 'get',
|
||||
'sort' => '48',
|
||||
'status' => '1',
|
||||
'is_show' => '1',
|
||||
],
|
||||
[
|
||||
'menu_name' => '核销详情',
|
||||
'menu_key' => 'verify_detail',
|
||||
'menu_short_name' => '核销详情',
|
||||
'menu_type' => '1',
|
||||
'icon' => '',
|
||||
'api_url' => 'verify/verify/<verify_code>',
|
||||
'router_path' => 'marketing/verify/detail',
|
||||
'view_path' => 'marketing/verify_detail',
|
||||
'methods' => 'get',
|
||||
'sort' => '48',
|
||||
'status' => '1',
|
||||
'is_show' => '0',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
'menu_name' => '签到管理',
|
||||
'menu_key' => 'sign',
|
||||
'menu_short_name' => '签到管理',
|
||||
'menu_type' => '0',
|
||||
'icon' => 'element FolderChecked',
|
||||
'api_url' => '',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
'methods' => 'get',
|
||||
'sort' => '30',
|
||||
'status' => '1',
|
||||
'is_show' => '0',
|
||||
'children' => [
|
||||
[
|
||||
'menu_name' => '签到设置',
|
||||
'menu_key' => 'sign_set',
|
||||
'menu_short_name' => '签到设置',
|
||||
'menu_type' => '1',
|
||||
'icon' => 'element FolderChecked',
|
||||
'api_url' => '',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
'api_url' => 'member/sign/config',
|
||||
'router_path' => 'marketing/sign/config',
|
||||
'view_path' => 'marketing/sign_config',
|
||||
'methods' => 'get',
|
||||
'sort' => '30',
|
||||
'status' => '1',
|
||||
'is_show' => '1',
|
||||
'children' => [
|
||||
[
|
||||
'menu_name' => '签到设置',
|
||||
'menu_key' => 'sign_set',
|
||||
'menu_short_name' => '签到设置',
|
||||
'menu_type' => '1',
|
||||
'icon' => 'element FolderChecked',
|
||||
'menu_name' => '保存',
|
||||
'menu_key' => 'save_sign_set',
|
||||
'menu_short_name' => '保存',
|
||||
'menu_type' => '2',
|
||||
'icon' => '',
|
||||
'api_url' => 'member/sign/config',
|
||||
'router_path' => 'marketing/sign/config',
|
||||
'view_path' => 'marketing/sign_config',
|
||||
'methods' => 'get',
|
||||
'sort' => '30',
|
||||
'status' => '1',
|
||||
'is_show' => '1',
|
||||
'children' => [
|
||||
[
|
||||
'menu_name' => '保存',
|
||||
'menu_key' => 'save_sign_set',
|
||||
'menu_short_name' => '保存',
|
||||
'menu_type' => '2',
|
||||
'icon' => '',
|
||||
'api_url' => 'member/sign/config',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
'methods' => 'put',
|
||||
'sort' => '100',
|
||||
'status' => '1',
|
||||
'is_show' => '1',
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'menu_name' => '签到记录',
|
||||
'menu_key' => 'sign_list',
|
||||
'menu_short_name' => '签到记录',
|
||||
'menu_type' => '1',
|
||||
'icon' => 'element FolderChecked',
|
||||
'api_url' => 'member/sign',
|
||||
'router_path' => 'marketing/sign',
|
||||
'view_path' => 'marketing/sign_list',
|
||||
'methods' => 'get',
|
||||
'sort' => '30',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
'methods' => 'put',
|
||||
'sort' => '100',
|
||||
'status' => '1',
|
||||
'is_show' => '1',
|
||||
]
|
||||
],
|
||||
]
|
||||
],
|
||||
[
|
||||
'menu_name' => '签到记录',
|
||||
'menu_key' => 'sign_list',
|
||||
'menu_short_name' => '签到记录',
|
||||
'menu_type' => '1',
|
||||
'icon' => 'element FolderChecked',
|
||||
'api_url' => 'member/sign',
|
||||
'router_path' => 'marketing/sign',
|
||||
'view_path' => 'marketing/sign_list',
|
||||
'methods' => 'get',
|
||||
'sort' => '30',
|
||||
'status' => '1',
|
||||
'is_show' => '1',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
@ -1268,7 +1286,7 @@ return [
|
||||
'menu_short_name' => '应用',
|
||||
'parent_key' => '',
|
||||
'menu_type' => '0',
|
||||
'icon' => 'iconfont iconmanage-apply',
|
||||
'icon' => 'iconfont iconyingyong21',
|
||||
'api_url' => '',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
@ -1299,7 +1317,7 @@ return [
|
||||
'menu_short_name' => '渠道',
|
||||
'parent_key' => '',
|
||||
'menu_type' => '0',
|
||||
'icon' => 'element DataBoard',
|
||||
'icon' => 'iconfont iconqudao',
|
||||
'api_url' => '',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
@ -1772,7 +1790,7 @@ return [
|
||||
'menu_short_name' => '权限',
|
||||
'parent_key' => '',
|
||||
'menu_type' => '0',
|
||||
'icon' => 'element Lock',
|
||||
'icon' => 'iconfont iconquanxian',
|
||||
'api_url' => '',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
@ -1961,7 +1979,7 @@ return [
|
||||
'menu_short_name' => '设置',
|
||||
'parent_key' => '',
|
||||
'menu_type' => '0',
|
||||
'icon' => 'element Setting',
|
||||
'icon' => 'iconfont iconshezhi3',
|
||||
'api_url' => '',
|
||||
'router_path' => '',
|
||||
'view_path' => '',
|
||||
@ -2635,6 +2653,7 @@ return [
|
||||
'menu_name' => '页面装修',
|
||||
'menu_key' => 'decorate',
|
||||
'menu_short_name' => '页面装修',
|
||||
'parent_select_key' => 'diy',
|
||||
'parent_key' => '',
|
||||
'menu_type' => '0',
|
||||
'icon' => '',
|
||||
@ -2855,6 +2874,7 @@ return [
|
||||
'menu_name' => '添加打印机',
|
||||
'menu_key' => 'printer_add',
|
||||
'menu_short_name' => '添加打印机',
|
||||
'parent_select_key' => 'printer_management_list',
|
||||
'menu_type' => '1',
|
||||
'icon' => '',
|
||||
'api_url' => 'printer',
|
||||
@ -2868,7 +2888,8 @@ return [
|
||||
[
|
||||
'menu_name' => '编辑打印机',
|
||||
'menu_key' => 'printer_edit',
|
||||
'menu_short_name' => '添加打印机',
|
||||
'menu_short_name' => '编辑打印机',
|
||||
'parent_select_key' => 'printer_management_list',
|
||||
'menu_type' => '1',
|
||||
'icon' => '',
|
||||
'api_url' => 'printer/<id>',
|
||||
@ -2913,6 +2934,7 @@ return [
|
||||
'menu_name' => '添加打印模板',
|
||||
'menu_key' => 'printer_template_add',
|
||||
'menu_short_name' => '添加打印模板',
|
||||
'parent_select_key' => 'printer_template_management',
|
||||
'menu_type' => '1',
|
||||
'icon' => '',
|
||||
'api_url' => 'printer/template',
|
||||
@ -2927,6 +2949,7 @@ return [
|
||||
'menu_name' => '编辑打印模板',
|
||||
'menu_key' => 'printer_template_edit',
|
||||
'menu_short_name' => '编辑打印模板',
|
||||
'parent_select_key' => 'printer_template_management',
|
||||
'menu_type' => '1',
|
||||
'icon' => '',
|
||||
'api_url' => 'printer/template/<id>',
|
||||
|
||||
@ -44,7 +44,7 @@ class PayDict
|
||||
public const STATUS_FINISH = '2';//已支付
|
||||
|
||||
public const STATUS_AUDIT = '3';//待审核
|
||||
public const STATUS_CANCLE = '-1';//已取消
|
||||
public const STATUS_CANCEL = '-1';//已取消
|
||||
|
||||
public const MEMBER = 'member';
|
||||
public const USER = 'user';
|
||||
@ -112,7 +112,7 @@ class PayDict
|
||||
self::STATUS_WAIT => get_lang('dict_pay.status_wait'),
|
||||
self::STATUS_ING => get_lang('dict_pay.status_ing'),
|
||||
self::STATUS_FINISH => get_lang('dict_pay.status_finish'),
|
||||
self::STATUS_CANCLE => get_lang('dict_pay.status_cancle'),
|
||||
self::STATUS_CANCEL => get_lang('dict_pay.status_cancel'),
|
||||
self::STATUS_AUDIT => get_lang('dict_pay.status_audit')
|
||||
];
|
||||
}
|
||||
|
||||
@ -39,4 +39,5 @@ class ConfigKeyDict
|
||||
public const WECHAT_TRANSFER_SCENE_CONFIG = 'WECHAT_TRANSFER_SCENE_CONFIG';//微信转账场景配置
|
||||
|
||||
public const SMS = 'SMS';//短信配置
|
||||
public const SHOP_THIRD_PARTY_DELIVERY_CONFIG = 'SHOP_THREE_PARTY_DELIVERY_CONFIG';//短信配置
|
||||
}
|
||||
|
||||
@ -106,6 +106,9 @@ $system_event = [
|
||||
'ShowApp' => [
|
||||
'app\listener\system\ShowAppListener'
|
||||
],
|
||||
'ShowMarketing' => [
|
||||
'app\listener\system\ShowMarketingListener'
|
||||
],
|
||||
//获取微信转账场景配置
|
||||
'GetWechatTransferTradeScene' => [
|
||||
'app\listener\transfer\TransferCashOutListener'
|
||||
|
||||
@ -194,7 +194,7 @@ CREATE TABLE `diy_page` (
|
||||
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '页面标题(用于前台展示)',
|
||||
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '页面标识',
|
||||
`type` varchar(255) NOT NULL DEFAULT '' COMMENT '页面模板',
|
||||
`template` varchar(255) NOT NULL DEFAULT '' COMMENT '模板名称',
|
||||
`template` varchar(255) NOT NULL DEFAULT '' COMMENT '页面模板名称',
|
||||
`mode` varchar(255) NOT NULL DEFAULT 'diy' COMMENT '页面展示模式,diy:自定义,fixed:固定',
|
||||
`value` longtext COMMENT '页面数据,json格式',
|
||||
`is_default` int(11) NOT NULL DEFAULT 0 COMMENT '是否默认页面,1:是,0:否',
|
||||
@ -727,7 +727,7 @@ CREATE TABLE `sys_backup_records` (
|
||||
`id` INT NOT NULL AUTO_INCREMENT COMMENT '主键id',
|
||||
`version` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '备份版本号',
|
||||
`backup_key` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '备份标识',
|
||||
`content` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '备份内容',
|
||||
`content` TEXT DEFAULT NULL COMMENT '备份内容',
|
||||
`status` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '状态',
|
||||
`fail_reason` LONGTEXT DEFAULT NULL COMMENT '失败原因',
|
||||
`remark` VARCHAR(500) NOT NULL DEFAULT '' COMMENT '备注',
|
||||
@ -847,6 +847,7 @@ CREATE TABLE `sys_menu` (
|
||||
`addon` varchar(255) NOT NULL DEFAULT '' COMMENT '所属插件',
|
||||
`source` varchar(255) NOT NULL DEFAULT 'system' COMMENT '菜单来源 system 系统文件 create 新建菜单 generator 代码生成器',
|
||||
`menu_attr` varchar(50) NOT NULL DEFAULT '' COMMENT '菜单属性 common 公共 system 系统',
|
||||
`parent_select_key` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '上级key',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '菜单表' ROW_FORMAT = Dynamic;
|
||||
|
||||
@ -1046,8 +1047,9 @@ CREATE TABLE `sys_user_log` (
|
||||
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '管理员操作记录ID',
|
||||
`ip` varchar(50) NOT NULL DEFAULT '' COMMENT '登录IP',
|
||||
`uid` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '管理员id',
|
||||
`username` varchar(64) NOT NULL DEFAULT '' COMMENT '管理员姓名',
|
||||
`url` varchar(128) NOT NULL DEFAULT '' COMMENT '链接',
|
||||
`username` varchar(255) NOT NULL DEFAULT '' COMMENT '管理员姓名',
|
||||
`operation` varchar(255) NOT NULL DEFAULT '' COMMENT '操作描述',
|
||||
`url` varchar(255) NOT NULL DEFAULT '' COMMENT '链接',
|
||||
`params` longtext DEFAULT NULL COMMENT '参数',
|
||||
`type` varchar(32) NOT NULL DEFAULT '' COMMENT '请求方式',
|
||||
`create_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作时间',
|
||||
|
||||
@ -76,25 +76,25 @@ return [
|
||||
'var_balance' => '会员余额',
|
||||
'var_point' => '会员积分',
|
||||
],
|
||||
'dict_sms_api'=>[
|
||||
'template_status_again_report'=>'需重新报备',
|
||||
'template_status_need_edit'=>'需修改报备参数',
|
||||
'template_status_not_report'=>'未报备',
|
||||
'template_status_wait'=>'待审核',
|
||||
'template_status_pass'=>'审核通过',
|
||||
'template_status_refuse'=>'审核不通过',
|
||||
'dict_sms_api' => [
|
||||
'template_status_again_report' => '需重新报备',
|
||||
'template_status_need_edit' => '需修改报备参数',
|
||||
'template_status_not_report' => '未报备',
|
||||
'template_status_wait' => '待审核',
|
||||
'template_status_pass' => '审核通过',
|
||||
'template_status_refuse' => '审核不通过',
|
||||
|
||||
//验证码-1 行业通知-2 营销推广-3
|
||||
'template_type_verify_code'=>'验证码',
|
||||
'template_type_industry_notice'=>'行业通知',
|
||||
'template_type_sem'=>'营销推广',
|
||||
'template_type_verify_code' => '验证码',
|
||||
'template_type_industry_notice' => '行业通知',
|
||||
'template_type_sem' => '营销推广',
|
||||
|
||||
'sign_audit_status_wait'=>'待审核',
|
||||
'sign_audit_status_pass'=>'审核通过',
|
||||
'sign_audit_status_refuse'=>'审核不通过',
|
||||
'sign_audit_status_wait' => '待审核',
|
||||
'sign_audit_status_pass' => '审核通过',
|
||||
'sign_audit_status_refuse' => '审核不通过',
|
||||
|
||||
'balance_add'=>'充值',
|
||||
'balance_reduce'=>'扣减'
|
||||
'balance_add' => '充值',
|
||||
'balance_reduce' => '扣减'
|
||||
],
|
||||
|
||||
//上传附件相关
|
||||
@ -131,6 +131,7 @@ return [
|
||||
'login_mobile' => '手机验证码登录',
|
||||
'login_wechat' => '微信公众号授权登录',
|
||||
'login_weapp' => '微信小程序授权登录',
|
||||
'login_pc' => '电脑端微信授权登录',
|
||||
'account_point_adjust' => '账户调整',
|
||||
'account_point_member_register' => '会员注册',
|
||||
'account_point_level_upgrade' => '升级礼包',
|
||||
@ -203,7 +204,7 @@ return [
|
||||
'status_wait' => '待支付',
|
||||
'status_ing' => '支付中',
|
||||
'status_finish' => '已支付',
|
||||
'status_cancle' => '已取消',
|
||||
'status_cancel' => '已取消',
|
||||
'status_audit' => '待审核',
|
||||
'pay' => '收款',
|
||||
'refund' => '退款',
|
||||
@ -290,6 +291,7 @@ return [
|
||||
'dict_diy_form' => [
|
||||
'component_type_form' => '表单组件',
|
||||
'type_diy_form' => '自定义表单',
|
||||
'type_diy_form_member_info' => '个人资料',
|
||||
'type_sign_registration' => '签到报名登记',
|
||||
'type_leave_message_suggestion' => '留言建议',
|
||||
'type_write_off_voucher' => '核销凭证',
|
||||
@ -449,12 +451,22 @@ return [
|
||||
'complete' => '完成',
|
||||
'fail' => '失败'
|
||||
],
|
||||
'common_active_short'=>[
|
||||
'impulse_buy'=>'顺',
|
||||
'gift_card'=>'礼',
|
||||
'discount'=>'折',
|
||||
'exchange'=>'积',
|
||||
'manjiansong'=>'满减',
|
||||
'newcomer_discount'=>'新',
|
||||
'common_active_short' => [
|
||||
'impulse_buy_short' => '顺',
|
||||
'impulse_buy_name' => '顺手买',
|
||||
'gift_card_short' => '礼',
|
||||
'gift_card_name' => '礼品卡',
|
||||
'discount_short' => '折',
|
||||
'discount_name' => '限时折扣',
|
||||
'exchange_short' => '积',
|
||||
'exchange_name' => '积分商城',
|
||||
'manjiansong_short' => '满减',
|
||||
'manjiansong_name' => '满减送',
|
||||
'newcomer_discount_short' => '新',
|
||||
'newcomer_discount_name' => '新人专享',
|
||||
'pintuan_short' => '拼',
|
||||
'pintuan_name' => '拼团',
|
||||
'seckill_short' => '秒',
|
||||
'seckill_name' => '秒杀',
|
||||
]
|
||||
];
|
||||
|
||||
@ -56,7 +56,7 @@ class FriendspayPoster
|
||||
$pay_info = ( new Pay() )->field('money')->where([
|
||||
[ 'trade_id', '=', $trade_id ],
|
||||
[ 'trade_type', '=', $trade_type ],
|
||||
[ 'status', '<>', PayDict::STATUS_CANCLE ],///不查询已取消的单据
|
||||
[ 'status', '<>', PayDict::STATUS_CANCEL ],///不查询已取消的单据
|
||||
])->findOrEmpty()->toArray();
|
||||
|
||||
if (empty($pay_info)) return [];
|
||||
|
||||
54
niucloud/app/listener/system/ShowMarketingListener.php
Normal file
54
niucloud/app/listener/system/ShowMarketingListener.php
Normal file
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | Niucloud-admin 企业快速开发的多应用管理平台
|
||||
// +----------------------------------------------------------------------
|
||||
// | 官方网址:https://www.niucloud.com
|
||||
// +----------------------------------------------------------------------
|
||||
// | niucloud团队 版权所有 开源版本可自由商用
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: Niucloud Team
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\listener\system;
|
||||
|
||||
/**
|
||||
* 查询营销列表
|
||||
* Class ShowAppListener
|
||||
* @package app\listener\system
|
||||
*/
|
||||
class ShowMarketingListener
|
||||
{
|
||||
public function handle()
|
||||
{
|
||||
// 应用:app、addon 待定
|
||||
// 营销:marketing
|
||||
// 工具:tool
|
||||
return [
|
||||
// 应用
|
||||
'app' => [
|
||||
|
||||
],
|
||||
// 工具
|
||||
'tool' => [
|
||||
|
||||
],
|
||||
// 营销
|
||||
'marketing' => [
|
||||
[
|
||||
'title' => '核销管理',
|
||||
'desc' => '管理核销员及核销记录',
|
||||
'icon' => 'static/resource/images/marketing/verifier.png',
|
||||
'key' => 'verify',
|
||||
'url' => '/marketing/verifier',
|
||||
],
|
||||
[
|
||||
'title' => '签到管理',
|
||||
'desc' => '客户每日签到发放奖励',
|
||||
'icon' => 'static/resource/images/marketing/sign.png',
|
||||
'key' => 'sign',
|
||||
'url' => '/marketing/sign/config',
|
||||
],
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
||||
@ -17,7 +17,7 @@ use think\db\Query;
|
||||
|
||||
/**
|
||||
* 导出报表模型
|
||||
* Class SysUserLog
|
||||
* Class SysExport
|
||||
* @package app\model\sys
|
||||
*/
|
||||
class SysExport extends BaseModel
|
||||
|
||||
@ -29,14 +29,17 @@ use think\db\exception\DbException;
|
||||
class AddonService extends BaseAdminService
|
||||
{
|
||||
public static $cache_tag_name = 'addon_cache';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->model = new Addon();
|
||||
|
||||
}
|
||||
public function getList(){
|
||||
return (new CoreAddonService())->getLocalAddonList();
|
||||
|
||||
public function getList()
|
||||
{
|
||||
return ( new CoreAddonService() )->getLocalAddonList();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -45,7 +48,7 @@ class AddonService extends BaseAdminService
|
||||
*/
|
||||
public function getLocalAddonList()
|
||||
{
|
||||
return (new CoreAddonService())->getLocalAddonList();
|
||||
return ( new CoreAddonService() )->getLocalAddonList();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -107,7 +110,8 @@ class AddonService extends BaseAdminService
|
||||
* @param string $addon
|
||||
* @return void
|
||||
*/
|
||||
public function uninstallCheck(string $addon) {
|
||||
public function uninstallCheck(string $addon)
|
||||
{
|
||||
return ( new CoreAddonInstallService($addon) )->uninstallCheck();
|
||||
}
|
||||
|
||||
@ -128,7 +132,7 @@ class AddonService extends BaseAdminService
|
||||
*/
|
||||
public function getPage(array $where = [])
|
||||
{
|
||||
return (new CoreAddonService())->getPage($where);
|
||||
return ( new CoreAddonService() )->getPage($where);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -138,7 +142,7 @@ class AddonService extends BaseAdminService
|
||||
*/
|
||||
public function getInfo(int $id)
|
||||
{
|
||||
return (new CoreAddonService())->getInfo($id);
|
||||
return ( new CoreAddonService() )->getInfo($id);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -146,8 +150,9 @@ class AddonService extends BaseAdminService
|
||||
* @param int $id
|
||||
* @param int $status
|
||||
*/
|
||||
public function setStatus(int $id, int $status){
|
||||
return (new CoreAddonService())->setStatus($id, $status);
|
||||
public function setStatus(int $id, int $status)
|
||||
{
|
||||
return ( new CoreAddonService() )->setStatus($id, $status);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -155,9 +160,10 @@ class AddonService extends BaseAdminService
|
||||
* @param string $app_key
|
||||
* @return true
|
||||
*/
|
||||
public function download(string $app_key, string $version){
|
||||
public function download(string $app_key, string $version)
|
||||
{
|
||||
if (empty($version)) throw new CommonException('ADDON_DOWNLOAD_VERSION_EMPTY');
|
||||
return (new CoreAddonDownloadService())->download($app_key, $version);
|
||||
return ( new CoreAddonDownloadService() )->download($app_key, $version);
|
||||
}
|
||||
|
||||
|
||||
@ -165,8 +171,9 @@ class AddonService extends BaseAdminService
|
||||
* 查询已安装应用
|
||||
* @return array
|
||||
*/
|
||||
public function getInstallList(){
|
||||
return (new CoreAddonService())->getInstallAddonList();
|
||||
public function getInstallList()
|
||||
{
|
||||
return ( new CoreAddonService() )->getInstallAddonList();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -177,15 +184,16 @@ class AddonService extends BaseAdminService
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
*/
|
||||
public function getAddonListByKeys($keys){
|
||||
public function getAddonListByKeys($keys)
|
||||
{
|
||||
sort($keys);
|
||||
$cache_name = 'addon_list'.implode('_', $keys);
|
||||
$cache_name = 'addon_list' . implode('_', $keys);
|
||||
return cache_remember(
|
||||
$cache_name,
|
||||
function () use ($keys) {
|
||||
$where = [
|
||||
['key', 'in', $keys],
|
||||
['status', '=', AddonDict::ON]
|
||||
[ 'key', 'in', $keys ],
|
||||
[ 'status', '=', AddonDict::ON ]
|
||||
];
|
||||
return $this->model->where($where)->field('title, icon, key, desc, status, cover')->select()->toArray();
|
||||
|
||||
@ -244,7 +252,7 @@ class AddonService extends BaseAdminService
|
||||
|
||||
}
|
||||
|
||||
$addons = $this->model->where([['status', '=', AddonDict::ON]])->append(['status_name'])->column('title, icon, key, desc, status, type, support_app', 'key');
|
||||
$addons = $this->model->where([ [ 'status', '=', AddonDict::ON ] ])->append([ 'status_name' ])->column('title, icon, key, desc, status, type, support_app', 'key');
|
||||
if (!empty($addons)) {
|
||||
foreach ($addons as $k => $v) {
|
||||
if (!in_array($v[ 'key' ], $keys) && $v[ 'type' ] == AddonDict::ADDON && $v[ 'status' ] == AddonDict::ON) {
|
||||
@ -260,4 +268,38 @@ class AddonService extends BaseAdminService
|
||||
|
||||
return $list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询营销列表
|
||||
* @return array
|
||||
*/
|
||||
public function getShowMarketingTools()
|
||||
{
|
||||
$list = [
|
||||
'marketing' => [
|
||||
'title' => '营销活动',
|
||||
'list' => []
|
||||
]
|
||||
];
|
||||
|
||||
$apps = event('ShowMarketing');
|
||||
|
||||
$keys = [];
|
||||
foreach ($apps as $v) {
|
||||
foreach ($v as $ck => $cv) {
|
||||
if (!empty($cv)) {
|
||||
foreach ($cv as $addon_k => $addon_v) {
|
||||
if (in_array($addon_v[ 'key' ], $keys)) {
|
||||
continue;
|
||||
}
|
||||
$list[ $ck ][ 'list' ][] = $addon_v;
|
||||
$keys[] = $addon_v[ 'key' ];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return $list;
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,6 +14,7 @@ namespace app\service\admin\auth;
|
||||
use app\dict\sys\AppTypeDict;
|
||||
use app\model\sys\SysUser;
|
||||
use app\service\admin\captcha\CaptchaService;
|
||||
use app\service\admin\sys\RoleService;
|
||||
use app\service\admin\user\UserService;
|
||||
use app\service\core\sys\CoreConfigService;
|
||||
use core\base\BaseAdminService;
|
||||
@ -45,10 +46,10 @@ class LoginService extends BaseAdminService
|
||||
*/
|
||||
public function login(string $username, string $password)
|
||||
{
|
||||
$config = (new ConfigService())->getConfig();
|
||||
$is_captcha = $config['is_captcha'];
|
||||
if($is_captcha == 1){
|
||||
(new CaptchaService())->verification();
|
||||
$config = ( new ConfigService() )->getConfig();
|
||||
$is_captcha = $config[ 'is_captcha' ];
|
||||
if ($is_captcha == 1) {
|
||||
( new CaptchaService() )->verification();
|
||||
}
|
||||
|
||||
$user_service = new UserService();
|
||||
@ -60,6 +61,23 @@ class LoginService extends BaseAdminService
|
||||
throw new AuthException('USER_LOCK');
|
||||
}
|
||||
|
||||
if(!$userinfo->is_admin) {
|
||||
$role_service = new RoleService();
|
||||
$userrole = $role_service->getUserRoles($userinfo->role_ids);
|
||||
|
||||
if (!empty($userrole)) {
|
||||
$role_count = 0;
|
||||
foreach ($userrole as $k => $v) {
|
||||
if ($v[ 'status' ] == 0) {
|
||||
$role_count++;
|
||||
}
|
||||
}
|
||||
if ($role_count == count($userrole)) {
|
||||
throw new AuthException('USER_LOCK');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//修改用户登录信息
|
||||
$userinfo->last_time = time();
|
||||
$userinfo->last_ip = app('request')->ip();
|
||||
@ -70,8 +88,8 @@ class LoginService extends BaseAdminService
|
||||
|
||||
//查询权限以及菜单
|
||||
$data = [
|
||||
'token' => $token_info['token'],
|
||||
'expires_time' => $token_info['params']['exp'],
|
||||
'token' => $token_info[ 'token' ],
|
||||
'expires_time' => $token_info[ 'params' ][ 'exp' ],
|
||||
'userinfo' => [
|
||||
'uid' => $userinfo->uid,
|
||||
'username' => $userinfo->username,
|
||||
@ -80,8 +98,8 @@ class LoginService extends BaseAdminService
|
||||
];
|
||||
|
||||
// 获取站点布局
|
||||
$layout_config = (new CoreConfigService())->getConfig('SITE_LAYOUT');
|
||||
$data['layout'] = empty($layout_config) ? 'default' : $layout_config['value']['key'];
|
||||
$layout_config = ( new CoreConfigService() )->getConfig('SITE_LAYOUT');
|
||||
$data[ 'layout' ] = empty($layout_config) ? 'default' : $layout_config[ 'value' ][ 'key' ];
|
||||
return $data;
|
||||
}
|
||||
|
||||
@ -103,7 +121,7 @@ class LoginService extends BaseAdminService
|
||||
public function createToken(SysUser $userinfo)
|
||||
{
|
||||
$expire_time = env('system.admin_token_expire_time') ?? 3600;
|
||||
return TokenAuth::createToken($userinfo->uid, AppTypeDict::ADMIN, ['uid' => $userinfo->uid, 'username' => $userinfo->username], $expire_time);
|
||||
return TokenAuth::createToken($userinfo->uid, AppTypeDict::ADMIN, [ 'uid' => $userinfo->uid, 'username' => $userinfo->username ], $expire_time);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -131,7 +149,7 @@ class LoginService extends BaseAdminService
|
||||
//暴力操作,截停所有异常覆盖为token失效
|
||||
try {
|
||||
$token_info = TokenAuth::parseToken($token, AppTypeDict::ADMIN);
|
||||
} catch ( Throwable $e ) {
|
||||
} catch (Throwable $e) {
|
||||
throw new AuthException('LOGIN_EXPIRE', 401);
|
||||
|
||||
}
|
||||
|
||||
@ -96,7 +96,8 @@ class InstallSystemService extends BaseAdminService
|
||||
'sort' => $value[ 'sort' ] ?? '',
|
||||
'status' => 1,
|
||||
'is_show' => $value[ 'is_show' ] ?? 1,
|
||||
'menu_attr' => $value['menu_attr'] ?? ''
|
||||
'menu_attr' => $value['menu_attr'] ?? '',
|
||||
'parent_select_key' => $value['parent_select_key'] ?? ''
|
||||
];
|
||||
$refer = $value;
|
||||
if (isset($refer[ 'children' ])) {
|
||||
|
||||
@ -65,7 +65,7 @@ class MemberService extends BaseAdminService
|
||||
public function getList(array $where = [])
|
||||
{
|
||||
$field = 'member_id, nickname, headimg';
|
||||
$temp_where[] = [];
|
||||
$temp_where = [];
|
||||
if (!empty($where[ 'member_ids' ])) {
|
||||
$temp_where[] = [ 'member_id', 'in', implode(',', $where[ 'member_ids' ]) ];
|
||||
}
|
||||
@ -79,7 +79,7 @@ class MemberService extends BaseAdminService
|
||||
*/
|
||||
public function getInfo(int $member_id)
|
||||
{
|
||||
$field = 'member_id,member_no, username, mobile, password, register_channel, register_type, nickname, headimg, member_level, member_label, wx_openid, weapp_openid, wx_unionid, ali_openid, douyin_openid, login_ip, login_type, login_channel, login_count, login_time, create_time, last_visit_time, last_consum_time, sex, status, birthday, point, point_get, balance, balance_get, growth, growth_get, is_member, member_time, is_del, province_id, city_id, district_id, address, location, delete_time, money, money_get, commission, commission_get, commission_cash_outing';
|
||||
$field = 'member_id,member_no, id_card,remark,username, mobile, password, register_channel, register_type, nickname, headimg, member_level, member_label, wx_openid, weapp_openid, wx_unionid, ali_openid, douyin_openid, login_ip, login_type, login_channel, login_count, login_time, create_time, last_visit_time, last_consum_time, sex, status, birthday, point, point_get, balance, balance_get, growth, growth_get, is_member, member_time, is_del, province_id, city_id, district_id, address, location, delete_time, money, money_get, commission, commission_get, commission_cash_outing';
|
||||
return $this->makeUp($this->model->where([ [ 'member_id', '=', $member_id ] ])->field($field)->with('member_level_name_bind')->append([ 'register_channel_name', 'register_type_name', 'sex_name', 'login_channel_name', 'login_type_name', 'status_name' ])->findOrEmpty()->toArray());
|
||||
}
|
||||
|
||||
@ -155,6 +155,16 @@ class MemberService extends BaseAdminService
|
||||
return ( new CoreMemberService() )->modify($member_id, $field, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改字段
|
||||
* @param $data
|
||||
* @return Member
|
||||
*/
|
||||
public function batchModify($data)
|
||||
{
|
||||
return ( new CoreMemberService() )->batchModify($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 组合整理数据
|
||||
* @param $data
|
||||
|
||||
@ -418,8 +418,11 @@ class NiuSmsService extends BaseAdminService
|
||||
public function checkTemplateAudit($template_key, $template_id)
|
||||
{
|
||||
$config = $this->niu_service->getNiuLoginConfig(true);
|
||||
if (empty($config)) {
|
||||
throw new AdminException('SMS_TYPE_NOT_OPEN');
|
||||
}
|
||||
//当前使用短信功能提供商非牛云短信无需校验模版ID是否正常
|
||||
if ($config['default'] != SmsDict::NIUSMS) {
|
||||
if (isset($config['default']) && $config['default'] != SmsDict::NIUSMS) {
|
||||
return true;
|
||||
}
|
||||
$config = $config[SmsDict::NIUSMS];
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user