初始化代码

This commit is contained in:
2025-12-22 14:32:54 +08:00
parent e27ab90d9f
commit d02b31a8b9
1459 changed files with 240973 additions and 0 deletions

View File

@@ -0,0 +1,283 @@
<?php
/**
* Created by PhpStorm.
* User: shuixian
* Date: 2019/11/20
* Time: 18:29
*/
$copyRight = '{"name": "CopyrightConfig","url": "/sys/copyright"},' ;
$uplode_wecht = !longbingIsWeiqin()|| config('app.AdminModelList')['app_model_name'] =='longbing_card'?',{"name": "SProWechat","url": "/sys/wechat"}':'';
$menu = <<<SYS
{
"path": "/sys",
"component": "Layout",
"redirect": "/sys/config",
"meta": {
"menuName": "System",
"icon": "icon-xitong",
"subNavName": [
{
"name": "SProSetting",
"url": [
{
"name": "SProConfig",
"url": "/sys/config"
},
{
"name": "SProLink",
"url": "/sys/link"
},
{
"name": "SProPayment",
"url": "/sys/payment"
}
$uplode_wecht
]
},
{
"name": "OtherSetting",
"url": [
$copyRight
{
"name": "AllNotice",
"url": "/sys/clientNotice"
},{
"name": "ShareSet",
"url": "/sys/share"
}
]
}
]
},
"children": [
{
"path": "config",
"name": "SProConfig",
"component": "/system/smallProcedure/config",
"meta": {
"keepAlive": true,
"title": "SystemSetting",
"auth": [
],
"isOnly": false,
"pagePermission": [
{
"title": "SProConfig",
"index": 0,
"auth": [
"view",
"add",
"edit",
"del",
"outport"
]
}
]
}
},
{
"path": "payment",
"name": "SProPayment",
"component": "/system/smallProcedure/payment",
"meta": {
"title": "SystemSetting",
"isOnly": false,
"auth": [
],
"pagePermission": [
{
"title": "SProPayment",
"index": 0,
"auth": [
"view",
"add",
"edit",
"del",
"outport"]
}]
}
},
{
"path": "wechat",
"name": "SProWechat",
"component": "/system/smallProcedure/wechat",
"meta": {
"title": "SystemSetting",
"isOnly": false,
"auth": [
],
"pagePermission": [
{
"title": "SProWechat",
"index": 0,
"auth": [
"view",
"add",
"edit",
"del",
"outport"]
}]
}
},
{
"path": "link",
"name": "SProLink",
"component": "/system/smallProcedure/link",
"meta": {
"keepAlive": true,
"title": "SystemSetting",
"auth": [
],
"isOnly": false,
"pagePermission": [
{
"title": "SProLink",
"index": 0,
"auth": [
"view",
"add",
"edit",
"del",
"outport"
]
}
]
}
},
{
"path": "copyright",
"name": "CopyrightConfig",
"component": "/system/other/copyright",
"meta": {
"keepAlive": true,
"title": "SystemSetting",
"auth": [
],
"isOnly": false,
"pagePermission": [
{
"title": "CopyrightConfig",
"index": 0,
"auth": [
"view",
"add",
"edit",
"del",
"outport"
]
}
]
}
},
{
"path": "clientNotice",
"name": "AllNotice",
"component": "/system/other/clientNotice",
"meta": {
"keepAlive": true,
"title": "SystemSetting",
"auth": [
],
"isOnly": false,
"pagePermission": [
{
"title": "clientNotice",
"url": "/sys/clientNotice",
"index": 0,
"auth": [
"view",
"add",
"edit",
"del",
"outport"
]
},
{
"title": "radarNotice",
"url": "/sys/radarNotice",
"index": 1,
"auth": [
"view",
"add",
"edit",
"del",
"outport"
]
}
]
}
},
{
"path": "radarNotice",
"name": "AllNotice",
"component": "/system/other/radarNotice",
"meta": {
"keepAlive": true,
"title": "SystemSetting",
"auth": [
],
"isOnly": false,
"pagePermission": [
{
"title": "clientNotice",
"url": "/sys/clientNotice",
"index": 0,
"auth": [
"view",
"add",
"edit",
"del",
"outport"
]
},
{
"title": "radarNotice",
"url": "/sys/radarNotice",
"index": 1,
"auth": [
"view",
"add",
"edit",
"del",
"outport"
]
}
]
}
},
{
"path": "share",
"name": "ShareSet",
"component": "/system/other/share",
"meta": {
"keepAlive": true,
"title": "SystemSetting",
"auth": [],
"isOnly": false,
"pagePermission": [{
"title": "ShareSet",
"index": 0,
"auth": ["view", "add", "edit", "del", "outport"
]
}
]
}
}
]
}
SYS;
//return json_decode(['System' => $menu], true);
return ['admin' => $menu];

29
app/admin/info/Info.php Normal file
View File

@@ -0,0 +1,29 @@
<?php
/**
* Created by PhpStorm.
* User: shuixian
* Date: 2019/11/20
* Time: 18:30
*/
return [
//模块名称[必填]
'name' => 'admin',
//模块标题[必填]
'title' =>'系统',
//内容简介
'desc' =>'',
//封面图标
'icon' =>'',
//模块类型[必填] model:模块 可以出现在左侧一级 app:应用中心 , 是一个应用中心的应用
'type' => 'model',
// 模块唯一标识[必填],格式:模块名.开发者标识.module
'identifier' => 'admin.longbing.module',
// 版本[必填],格式采用三段式:主版本号.次版本号.修订版本号
'version' => '1.1.42',
// 模块依赖[可选],格式[[模块名, 模块唯一标识, 依赖版本, 对比方式]]
'need_module' => [],
// 插件依赖[可选],格式[[插件名, 插件唯一标识, 依赖版本, 对比方式]]
'need_plugin' => [],
];

View File

@@ -0,0 +1,84 @@
<?php
// +----------------------------------------------------------------------
// | Longbing [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright Chengdu longbing Technology Co., Ltd.
// +----------------------------------------------------------------------
// | Website http://longbing.org/
// +----------------------------------------------------------------------
// | Sales manager: +86-13558882532 / +86-13330887474
// | Technical support: +86-15680635005
// | After-sale service: +86-17361005938
// +----------------------------------------------------------------------
declare(strict_types=1);
namespace app\admin\info;
use longbingcore\permissions\PermissionAbstract;
/**
* 模块功能权限
* Class PermissionAdmin
*/
class PermissionAdmin extends PermissionAbstract {
const tabbarKey = null;
//后台管理菜单对应key[必填] , 当前模块文件夹名称
const adminMenuKey = 'admin';
public $saasKey ;
const apiPaths = [];
public function __construct(int $uniacid,$infoConfigOptions = [])
{
$this->saasKey = longbing_get_auth_prefix('AUTH_MINI') ;
parent::__construct($uniacid, self::tabbarKey, self::adminMenuKey, $this->saasKey, self::apiPaths , $infoConfigOptions);
}
/**
* 返回saas端授权结果
* @return bool
*/
public function sAuth(): bool
{
return true ;
}
/**
* 返回p端授权结果
* @return bool
*/
public function pAuth(): bool
{
return true;
}
/**
* 返回c端授权结果
*
* @param int $user_id
* @return bool
* @author ArtizanZhang
* @DataTime: 2019/12/9 17:13
*/
public function cAuth(int $user_id): bool
{
return true;
}
/**
* 获取授权数量
*
* @author shuixian
* @DataTime: 2019/12/19 19:02
*/
public function getAuthNumber(){
$authNumber = $this->getAuthVaule( $this->saasKey ,2 ) ;
$authNumber = $authNumber == 0 ? 99999999 : $authNumber ;
return $authNumber ;
}
}

View File

@@ -0,0 +1,667 @@
<?php
$radar_msg = [
[
"sign"=> "praises",
"type"=> 2,
"max"=> 0,
"pid"=> 0,
"msg"=> "请尽快把握商机",
"operation"=> "查看",
"item"=> "名片",
"show_count"=> 1,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "copy",
"type"=> 1,
"max"=> 0,
"pid"=> 0,
"msg"=> "对你已建立信任,保持联系持续跟进",
"operation"=> "",
"item"=> "手机号码存入了手机通讯录",
"show_count"=> 0,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "copy",
"type"=> 2,
"max"=> 0,
"pid"=> 0,
"msg"=> "咨询意向强烈,及时联系确保沟通顺畅",
"operation"=> "拨打",
"item"=> "手机号",
"show_count"=> 0,
"table_name"=> "longbing_card_user_info",
"field"=> "phone",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "copy",
"type"=> 3,
"max"=> 0,
"pid"=> 0,
"msg"=> "请随时保持电话畅通",
"operation"=> "拨打",
"item"=> "公司电话",
"show_count"=> 0,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "copy",
"type"=> 4,
"max"=> 0,
"pid"=> 0,
"msg"=> "客户请随时可能加你微信",
"operation"=> "复制了",
"item"=> "微信",
"show_count"=> 0,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "copy",
"type"=> 5,
"max"=> 0,
"pid"=> 0,
"msg"=> "可能随时邮寄文件给你,请注意查收",
"operation"=> "复制了",
"item"=> "邮箱",
"show_count"=> 0,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "copy",
"type"=> 6,
"max"=> 0,
"pid"=> 0,
"msg"=> "请及时留意雷达动态",
"operation"=> "复制",
"item"=> "公司名称",
"show_count"=> 0,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "copy",
"type"=> 7,
"max"=> 0,
"pid"=> 0,
"msg"=> "对你的公司非常感兴趣",
"operation"=> "查看了",
"item"=> "公司地址",
"show_count"=> 0,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "copy",
"type"=> 8,
"max"=> 0,
"pid"=> 0,
"msg"=> "请及时留意雷达动态",
"operation"=> "咨询",
"item"=> "产品",
"show_count"=> 1,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "copy",
"type"=> 9,
"max"=> 0,
"pid"=> 0,
"msg"=> "请及时留意雷达动态",
"operation"=> "播放",
"item"=> "语音",
"show_count"=> 1,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "copy",
"type"=> 10,
"max"=> 0,
"pid"=> 0,
"msg"=> "正在帮你裂变人脉,请及时留意雷达动态(快去表达一下你的感谢)",
"operation"=> "保存了",
"item"=> "名片海报",
"show_count"=> 0,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "copy",
"type"=> 11,
"max"=> 0,
"pid"=> 0,
"msg"=> "请随时保持电话畅通",
"operation"=> "拨打",
"item"=> "400热线",
"show_count"=> 0,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 1,
"max"=> 0,
"pid"=> 0,
"msg"=> "请尽快把握商机",
"operation"=> "浏览",
"item"=> "商城列表",
"show_count"=> 1,
"table_name"=> "longbing_card_shop_type",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 2,
"max"=> 0,
"pid"=> 0,
"msg"=> "请尽快把握商机,主动提供细致的商品讲解将大大有利于成交",
"operation"=> "正在查看你的",
"item"=> "商品",
"show_count"=> 0,
"table_name"=> "longbing_card_goods",
"field"=> "name",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 3,
"max"=> 0,
"pid"=> 0,
"msg"=> "看来TA对公司动态感兴趣",
"operation"=> "浏览",
"item"=> "动态列表",
"show_count"=> 1,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 4,
"max"=> 0,
"pid"=> 0,
"msg"=> "请尽快把握商机",
"operation"=> "点赞",
"item"=> "动态",
"show_count"=> 0,
"table_name"=> "longbing_card_timeline",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 5,
"max"=> 0,
"pid"=> 0,
"msg"=> "请尽快把握商机",
"operation"=> "评论了",
"item"=> "动态",
"show_count"=> 0,
"table_name"=> "longbing_card_timeline",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 6,
"max"=> 0,
"pid"=> 0,
"msg"=> "",
"operation"=> "查看了",
"item"=> "企业官网",
"show_count"=> 0,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 7,
"max"=> 0,
"pid"=> 0,
"msg"=> "",
"operation"=> "正在查看",
"item"=> "动态",
"show_count"=> 0,
"table_name"=> "longbing_card_timeline",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 8,
"max"=> 0,
"pid"=> 0,
"msg"=> "",
"operation"=> "正在查看",
"item"=> "动态视频",
"show_count"=> 0,
"table_name"=> "longbing_card_timeline",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 9,
"max"=> 0,
"pid"=> 0,
"msg"=> "",
"operation"=> "正在查看",
"item"=> "动态外链",
"show_count"=> 1,
"table_name"=> "longbing_card_timeline",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 10,
"max"=> 0,
"pid"=> 0,
"msg"=> "请尽快把握商机",
"operation"=> "通过动态列表跳转小程序",
"item"=> "",
"show_count"=> 1,
"table_name"=> "longbing_card_timeline",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 11,
"max"=> 0,
"pid"=> 0,
"msg"=> "请尽快把握商机",
"operation"=> "浏览",
"item"=> "商品分类列表",
"show_count"=> 1,
"table_name"=> "longbing_card_shop_type",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 12,
"max"=> 0,
"pid"=> 0,
"msg"=> "请尽快展开跟进",
"operation"=> "正在阅读",
"item"=> "文章",
"show_count"=> 0,
"table_name"=> "lb_marketing_article_v2",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 13,
"max"=> 0,
"pid"=> 0,
"msg"=> "正在帮你裂变人脉,请及时留意雷达动态(快去表达一下你的感谢)",
"operation"=> "分享了",
"item"=> "文章",
"show_count"=> 0,
"table_name"=> "lb_marketing_article_v2",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 14,
"max"=> 0,
"pid"=> 0,
"msg"=> "正在帮你裂变人脉,请及时留意雷达动态(快去表达一下你的感谢)",
"operation"=> "保存",
"item"=> "文章海报",
"show_count"=> 0,
"table_name"=> "lb_marketing_article_v2",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 15,
"max"=> 0,
"pid"=> 0,
"msg"=> "",
"operation"=> "查看了",
"item"=> "预约",
"show_count"=> 0,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 16,
"max"=> 0,
"pid"=> 0,
"msg"=> "请尽快把握商机",
"operation"=> "浏览",
"item"=> "预约栏目",
"show_count"=> 1,
"table_name"=> "lb_appoint_classify",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 17,
"max"=> 0,
"pid"=> 0,
"msg"=> "预约活动",
"operation"=> "正在查看",
"item"=> "预约",
"show_count"=> 0,
"table_name"=> "lb_appoint_project",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 18,
"max"=> 0,
"pid"=> 0,
"msg"=> "请尽快处理",
"operation"=> "在官网留言",
"item"=> "",
"show_count"=> 0,
"table_name"=> "longbing_card_form",
"field"=> "name,phone,content",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 19,
"max"=> 0,
"pid"=> 0,
"msg"=> "请前往订单中心查看详情",
"operation"=> "订单商品已发货,系统订单号为:",
"item"=> "",
"show_count"=> 0,
"table_name"=> "longbing_card_shop_order",
"field"=> "out_trade_no",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 20,
"max"=> 0,
"pid"=> 0,
"msg"=> "请前往订单中心查看详情",
"operation"=> "自提商品已提货",
"item"=> "",
"show_count"=> 0,
"table_name"=> "longbing_card_shop_order",
"field"=> "out_trade_no",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 21,
"max"=> 0,
"pid"=> 0,
"msg"=> "请等待管理员审核并注意查收",
"operation"=> "已申请退款",
"item"=> "",
"show_count"=> 0,
"table_name"=> "longbing_card_shop_order",
"field"=> "out_trade_no",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 22,
"max"=> 0,
"pid"=> 0,
"msg"=> "请前往订单中心查看详情",
"operation"=> "已取消申请退款",
"item"=> "",
"show_count"=> 0,
"table_name"=> "longbing_card_shop_order",
"field"=> "out_trade_no",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 23,
"max"=> 0,
"pid"=> 0,
"msg"=> "请前往订单中心查看详情",
"operation"=> "管理员拒绝退款",
"item"=> "",
"show_count"=> 0,
"table_name"=> "longbing_card_shop_order",
"field"=> "out_trade_no",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 24,
"max"=> 0,
"pid"=> 0,
"msg"=> "请注意查收",
"operation"=> "退款成功",
"item"=> "",
"show_count"=> 0,
"table_name"=> "longbing_card_shop_order",
"field"=> "out_trade_no",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 25,
"max"=> 0,
"pid"=> 0,
"msg"=> "",
"operation"=> "查看了",
"item"=> "活动",
"show_count"=> 0,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 26,
"max"=> 0,
"pid"=> 0,
"msg"=> "请尽快把握商机",
"operation"=> "浏览",
"item"=> "活动报名分类列表",
"show_count"=> 1,
"table_name"=> "lb_activity_classify",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 27,
"max"=> 0,
"pid"=> 0,
"msg"=> "请尽快把握商机",
"operation"=> "正在查看",
"item"=> "活动",
"show_count"=> 0,
"table_name"=> "lb_activity_activity",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 28,
"max"=> 0,
"pid"=> 0,
"msg"=> "请在活动开始前提醒客户",
"operation"=> "已参加了活动",
"item"=> "",
"show_count"=> 0,
"table_name"=> "lb_activity_activity",
"field"=> "title",
"send"=> 2,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 29,
"max"=> 0,
"pid"=> 0,
"msg"=> "",
"operation"=> "正在查看",
"item"=> "房源信息",
"show_count"=> 1,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "view",
"type"=> 30,
"max"=> 0,
"pid"=> 0,
"msg"=> "请尽快把握商机",
"operation"=> "查看了",
"item"=> "房源",
"show_count"=> 0,
"table_name"=> "longbing_card_house",
"field"=> "title",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "praise",
"type"=> 1,
"max"=> 0,
"pid"=> 0,
"msg"=> "请尽快把握商机",
"operation"=> "语音点赞",
"item"=> "",
"show_count"=> 0,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
],
[
"sign"=> "praise",
"type"=> 2,
"max"=> 0,
"pid"=> 0,
"msg"=> "请尽快把握商机",
"operation"=> "查看",
"item"=> "名片",
"show_count"=> 1,
"table_name"=> "",
"field"=> "",
"send"=> 1,
"uniacid"=> 2,
"status"=> 1
]
];
return $radar_msg;