初始化代码
This commit is contained in:
615
app/member/info/AdminMenu.php
Normal file
615
app/member/info/AdminMenu.php
Normal file
@@ -0,0 +1,615 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: shuixian
|
||||
* Date: 2019/11/20
|
||||
* Time: 18:29
|
||||
*/
|
||||
$menu = <<<MENU
|
||||
[{
|
||||
"path": "vip/list",
|
||||
"name": "VipList",
|
||||
"component": "/application/vip/list",
|
||||
"meta": {
|
||||
"keepAlive": true,
|
||||
"title": "AppManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipList",
|
||||
"index": 0,
|
||||
"url": "/app/vip/list",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipApply",
|
||||
"index": 1,
|
||||
"url": "/app/vip/apply",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipLevel",
|
||||
"index": 2,
|
||||
"url": "/app/vip/level",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipRight",
|
||||
"index": 3,
|
||||
"url": "/app/vip/right",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipSet",
|
||||
"index": 4,
|
||||
"url": "/app/vip/set",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipStoredSet",
|
||||
"index": 5,
|
||||
"url": "/app/vip/stored",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipRecord",
|
||||
"index": 6,
|
||||
"url": "/app/vip/record",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "vip/apply",
|
||||
"name": "VipApply",
|
||||
"component": "/application/vip/apply",
|
||||
"meta": {
|
||||
"keepAlive": true,
|
||||
"title": "AppManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipList",
|
||||
"index": 0,
|
||||
"url": "/app/vip/list",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipApply",
|
||||
"index": 1,
|
||||
"url": "/app/vip/apply",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipLevel",
|
||||
"index": 2,
|
||||
"url": "/app/vip/level",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipRight",
|
||||
"index": 3,
|
||||
"url": "/app/vip/right",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipSet",
|
||||
"index": 4,
|
||||
"url": "/app/vip/set",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipStoredSet",
|
||||
"index": 5,
|
||||
"url": "/app/vip/stored",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipRecord",
|
||||
"index": 6,
|
||||
"url": "/app/vip/record",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "vip/level",
|
||||
"name": "VipLevel",
|
||||
"component": "/application/vip/level",
|
||||
"meta": {
|
||||
"keepAlive": true,
|
||||
"title": "AppManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipList",
|
||||
"index": 0,
|
||||
"url": "/app/vip/list",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipApply",
|
||||
"index": 1,
|
||||
"url": "/app/vip/apply",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipLevel",
|
||||
"index": 2,
|
||||
"url": "/app/vip/level",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipRight",
|
||||
"index": 3,
|
||||
"url": "/app/vip/right",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipSet",
|
||||
"index": 4,
|
||||
"url": "/app/vip/set",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipStoredSet",
|
||||
"index": 5,
|
||||
"url": "/app/vip/stored",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipRecord",
|
||||
"index": 6,
|
||||
"url": "/app/vip/record",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "vip/right",
|
||||
"name": "VipRight",
|
||||
"component": "/application/vip/right",
|
||||
"meta": {
|
||||
"keepAlive": true,
|
||||
"title": "AppManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipList",
|
||||
"index": 0,
|
||||
"url": "/app/vip/list",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipApply",
|
||||
"index": 1,
|
||||
"url": "/app/vip/apply",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipLevel",
|
||||
"index": 2,
|
||||
"url": "/app/vip/level",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipRight",
|
||||
"index": 3,
|
||||
"url": "/app/vip/right",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipSet",
|
||||
"index": 4,
|
||||
"url": "/app/vip/set",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipStoredSet",
|
||||
"index": 5,
|
||||
"url": "/app/vip/stored",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipRecord",
|
||||
"index": 6,
|
||||
"url": "/app/vip/record",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "vip/set",
|
||||
"name": "VipSet",
|
||||
"component": "/application/vip/set",
|
||||
"meta": {
|
||||
"keepAlive": true,
|
||||
"title": "AppManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipList",
|
||||
"index": 0,
|
||||
"url": "/app/vip/list",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipApply",
|
||||
"index": 1,
|
||||
"url": "/app/vip/apply",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipLevel",
|
||||
"index": 2,
|
||||
"url": "/app/vip/level",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipRight",
|
||||
"index": 3,
|
||||
"url": "/app/vip/right",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipSet",
|
||||
"index": 4,
|
||||
"url": "/app/vip/set",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipStoredSet",
|
||||
"index": 5,
|
||||
"url": "/app/vip/stored",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipRecord",
|
||||
"index": 6,
|
||||
"url": "/app/vip/record",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "vip/stored",
|
||||
"name": "VipStoredSet",
|
||||
"component": "/application/vip/stored",
|
||||
"meta": {
|
||||
"keepAlive": true,
|
||||
"title": "AppManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipList",
|
||||
"index": 0,
|
||||
"url": "/app/vip/list",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipApply",
|
||||
"index": 1,
|
||||
"url": "/app/vip/apply",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipLevel",
|
||||
"index": 2,
|
||||
"url": "/app/vip/level",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipRight",
|
||||
"index": 3,
|
||||
"url": "/app/vip/right",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipSet",
|
||||
"index": 4,
|
||||
"url": "/app/vip/set",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipStoredSet",
|
||||
"index": 5,
|
||||
"url": "/app/vip/stored",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipRecord",
|
||||
"index": 6,
|
||||
"url": "/app/vip/record",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "vip/record",
|
||||
"name": "VipRecord",
|
||||
"component": "/application/vip/record",
|
||||
"meta": {
|
||||
"keepAlive": true,
|
||||
"title": "AppManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipList",
|
||||
"index": 0,
|
||||
"url": "/app/vip/list",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipApply",
|
||||
"index": 1,
|
||||
"url": "/app/vip/apply",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipLevel",
|
||||
"index": 2,
|
||||
"url": "/app/vip/level",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipRight",
|
||||
"index": 3,
|
||||
"url": "/app/vip/right",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipSet",
|
||||
"index": 4,
|
||||
"url": "/app/vip/set",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipStoredSet",
|
||||
"index": 5,
|
||||
"url": "/app/vip/stored",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}, {
|
||||
"title": "VipRecord",
|
||||
"index": 6,
|
||||
"url": "/app/vip/record",
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "vip/detail",
|
||||
"name": "VipDetail",
|
||||
"component": "/application/vip/detail",
|
||||
"meta": {
|
||||
"title": "AppManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipDetail",
|
||||
"index": 0,
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "vip/edit",
|
||||
"name": "VipLevelEdit",
|
||||
"component": "/application/vip/edit",
|
||||
"meta": {
|
||||
"title": "AppManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipLevelEdit",
|
||||
"index": 0,
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "vip/editRight",
|
||||
"name": "VipRightEdit",
|
||||
"component": "/application/vip/editRight",
|
||||
"meta": {
|
||||
"title": "AppManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipRightEdit",
|
||||
"index": 0,
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "vip/editStored",
|
||||
"name": "VipStoredEdit",
|
||||
"component": "/application/vip/editStored",
|
||||
"meta": {
|
||||
"title": "AppManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipStoredEdit",
|
||||
"index": 0,
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}]
|
||||
MENU;
|
||||
|
||||
|
||||
$menus = <<<MENU
|
||||
|
||||
|
||||
|
||||
{
|
||||
"path": "/vip",
|
||||
"component": "Layout",
|
||||
"redirect": "/vip/list",
|
||||
"meta": {
|
||||
"menuName": "Vip",
|
||||
"icon": "iconMember",
|
||||
"subNavName": [{
|
||||
"name": "VipManage",
|
||||
"url": [{
|
||||
"name": "VipList",
|
||||
"url": "/vip/list"
|
||||
}, {
|
||||
"name": "VipApply",
|
||||
"url": "/vip/apply"
|
||||
}]
|
||||
}, {
|
||||
"name": "VipRecord",
|
||||
"url": [{
|
||||
"name": "VipRecord",
|
||||
"url": "/vip/record"
|
||||
}]
|
||||
}, {
|
||||
"name": "VipSet",
|
||||
"url": [{
|
||||
"name": "VipLevel",
|
||||
"url": "/vip/level"
|
||||
}, {
|
||||
"name": "VipRight",
|
||||
"url": "/vip/right"
|
||||
}, {
|
||||
"name": "VipSet",
|
||||
"url": "/vip/set"
|
||||
}, {
|
||||
"name": "VipStoredSet",
|
||||
"url": "/vip/stored"
|
||||
}]
|
||||
}]
|
||||
},
|
||||
"children": [{
|
||||
"path": "list",
|
||||
"name": "VipManage",
|
||||
"component": "/application/vip/list",
|
||||
"meta": {
|
||||
"keepAlive": true,
|
||||
"refresh": false,
|
||||
"title": "VipManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipList",
|
||||
"index": 0,
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "apply",
|
||||
"name": "VipManage",
|
||||
"component": "/application/vip/apply",
|
||||
"meta": {
|
||||
"keepAlive": true,
|
||||
"refresh": false,
|
||||
"title": "VipManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipApply",
|
||||
"index": 0,
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "record",
|
||||
"name": "VipManage",
|
||||
"component": "/application/vip/record",
|
||||
"meta": {
|
||||
"keepAlive": true,
|
||||
"refresh": false,
|
||||
"title": "VipManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipRecord",
|
||||
"index": 0,
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "level",
|
||||
"name": "VipManage",
|
||||
"component": "/application/vip/level",
|
||||
"meta": {
|
||||
"keepAlive": true,
|
||||
"refresh": false,
|
||||
"title": "VipManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipLevel",
|
||||
"index": 0,
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "right",
|
||||
"name": "VipManage",
|
||||
"component": "/application/vip/right",
|
||||
"meta": {
|
||||
"keepAlive": true,
|
||||
"refresh": false,
|
||||
"title": "VipManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipRight",
|
||||
"index": 0,
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "set",
|
||||
"name": "VipManage",
|
||||
"component": "/application/vip/set",
|
||||
"meta": {
|
||||
"keepAlive": true,
|
||||
"refresh": false,
|
||||
"title": "VipManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipSet",
|
||||
"index": 0,
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "stored",
|
||||
"name": "VipManage",
|
||||
"component": "/application/vip/stored",
|
||||
"meta": {
|
||||
"keepAlive": true,
|
||||
"refresh": false,
|
||||
"title": "VipManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipStoredSet",
|
||||
"index": 0,
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "detail",
|
||||
"name": "VipManage",
|
||||
"component": "/application/vip/detail",
|
||||
"meta": {
|
||||
"title": "VipManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipDetail",
|
||||
"index": 0,
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "edit",
|
||||
"name": "VipManage",
|
||||
"component": "/application/vip/edit",
|
||||
"meta": {
|
||||
"title": "VipManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipLevelEdit",
|
||||
"index": 0,
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "editRight",
|
||||
"name": "VipManage",
|
||||
"component": "/application/vip/editRight",
|
||||
"meta": {
|
||||
"title": "VipManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipRightEdit",
|
||||
"index": 0,
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
"path": "editStored",
|
||||
"name": "VipManage",
|
||||
"component": "/application/vip/editStored",
|
||||
"meta": {
|
||||
"title": "VipManage",
|
||||
"isOnly": false,
|
||||
"auth": [],
|
||||
"pagePermission": [{
|
||||
"title": "VipStoredEdit",
|
||||
"index": 0,
|
||||
"auth": ["view", "add", "edit", "del", "outport"]
|
||||
}]
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
||||
|
||||
MENU;
|
||||
|
||||
$app_name = config('app.AdminModelList')['app_model_name'];
|
||||
|
||||
$menu = $app_name=='longbing_member'?$menus:$menu;
|
||||
|
||||
|
||||
return ["member" => $menu];
|
||||
|
||||
|
||||
35
app/member/info/Info.php
Normal file
35
app/member/info/Info.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: shuixian
|
||||
* Date: 2019/11/20
|
||||
* Time: 18:30
|
||||
*/
|
||||
|
||||
|
||||
$app_name = config('app.AdminModelList')['app_model_name'];
|
||||
|
||||
$model = $app_name=='longbing_member'?'model':'app';
|
||||
return [
|
||||
|
||||
//模块名称[必填]
|
||||
'name' => 'member',
|
||||
//模块标题[必填]
|
||||
'title' =>'等级会员',
|
||||
//内容简介
|
||||
'desc' =>'新用户成本高?存量用户分层服务,最大化企业收益',
|
||||
//封面图标
|
||||
'icon' =>'data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABTAAD/4QOJaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzEzOCA3OS4xNTk4MjQsIDIwMTYvMDkvMTQtMDE6MDk6MDEgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6OURDMDUxMzY2ODMxMTFFQTkzMDFBQjU5OTE3MDVEM0IiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTc4NUQ2ODFEODgxMTFFQUE0NzhEMTBFREY1RDFGRTgiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTc4NUQ2ODBEODgxMTFFQUE0NzhEMTBFREY1RDFGRTgiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MmZkNWUzNzMtNzFkNS05ZjQyLTkyYWYtZWMwY2EwYmU4YjRkIiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6MDY5OTM5YTUtODNiMy0xMWVhLTk0YTAtY2JjNzZlNGQ2OGMyIi8+IDwvcmRmOkRl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',
|
||||
//模块类型[必填] model:模块 可以出现在左侧一级 app:应用中心 , 是一个应用中心的应用
|
||||
'type' => $model,
|
||||
//跳转链接[type=app时必填]
|
||||
'appUrl' => '/app/vip/list',
|
||||
// 模块唯一标识[必填],格式:模块名.开发者标识.module
|
||||
'identifier' => 'marketing.longbing.module',
|
||||
// 版本[必填],格式采用三段式:主版本号.次版本号.修订版本号
|
||||
'version' => '1.0.21',
|
||||
// 模块依赖[可选],格式[[模块名, 模块唯一标识, 依赖版本, 对比方式]]
|
||||
'need_module' => [],
|
||||
// 插件依赖[可选],格式[[插件名, 插件唯一标识, 依赖版本, 对比方式]]
|
||||
'need_plugin' => [],
|
||||
];
|
||||
127
app/member/info/PermissionMember.php
Normal file
127
app/member/info/PermissionMember.php
Normal file
@@ -0,0 +1,127 @@
|
||||
<?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\member\info;
|
||||
|
||||
use longbingcore\permissions\PermissionAbstract;
|
||||
use think\facade\Db;
|
||||
|
||||
|
||||
/**
|
||||
* 模块功能权限
|
||||
* Class Permissionclosure
|
||||
*/
|
||||
class PermissionMember extends PermissionAbstract {
|
||||
|
||||
const tabbarKey = null;
|
||||
//后台管理菜单对应key[必填] , 当前模块文件夹名称
|
||||
const adminMenuKey = 'member';
|
||||
public $saasKey ;
|
||||
const apiPaths = [];
|
||||
|
||||
|
||||
public function __construct(int $uniacid,$infoConfigOptions = [])
|
||||
{
|
||||
$this->saasKey = longbing_get_auth_prefix('AUTH_MEMBER');
|
||||
|
||||
parent::__construct($uniacid, self::tabbarKey, self::adminMenuKey, $this->saasKey, self::apiPaths , $infoConfigOptions);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 返回saas端授权结果
|
||||
* @return bool
|
||||
*/
|
||||
public function sAuth(): bool
|
||||
{
|
||||
|
||||
|
||||
|
||||
if(!$this->getAuthIsSaasCheck()){
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
return $this->sassValue > 0 ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回p端授权结果
|
||||
* @return bool
|
||||
*/
|
||||
public function pAuth(): bool
|
||||
{
|
||||
|
||||
if (!$this->sAuth()) {
|
||||
return false;
|
||||
};
|
||||
|
||||
if(!$this->getAuthIsPlatformCheck()){
|
||||
return true ;
|
||||
}
|
||||
|
||||
|
||||
$pAuthConfig = $this->getPAuthConfig();
|
||||
|
||||
|
||||
|
||||
if (!$pAuthConfig || $pAuthConfig['member_switch'] == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
$all_count = Db::name('longbing_cardauth2_auth_app')->where(['app_name'=>'member'])->count('count');
|
||||
} catch (\Exception $exception) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if ($all_count > $this->getSaasValue()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
try {
|
||||
$cardauth2= Db::name('longbing_cardauth2_auth_app')->where(['modular_id' => $this->uniacid,'app_name'=>'member'])->find();
|
||||
} catch (\Exception $exception) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!$cardauth2|| $cardauth2['sign'] < time() || $cardauth2['count'] < 1||md5('ndvjnfjvnjnv'.$cardauth2['create_time'])==$cardauth2['sign_data']) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
163
app/member/info/Subscribe.php
Normal file
163
app/member/info/Subscribe.php
Normal file
@@ -0,0 +1,163 @@
|
||||
<?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\member\info;
|
||||
|
||||
use app\card\service\UserService;
|
||||
use longbingcore\diy\BaseSubscribe;
|
||||
|
||||
/**
|
||||
* @author shuixian
|
||||
* @DataTime: 2019/12/11 16:23
|
||||
* Class Subscribe
|
||||
* @package app\ucenter\info
|
||||
*/
|
||||
class Subscribe extends BaseSubscribe
|
||||
{
|
||||
|
||||
/**
|
||||
* 监听代理管理端授权小程序事件
|
||||
*
|
||||
* @param $data
|
||||
* @return array
|
||||
* @author shuixian
|
||||
* @DataTime: 2019/12/27 17:33
|
||||
*/
|
||||
public function onAgentAppAuthEdit($config){
|
||||
|
||||
$permission = new PermissionMember(0);
|
||||
|
||||
if($permission->sAuth() && $permission->infoConfig['auth_platform'] ) {
|
||||
|
||||
$auth_switch['formType'] = 'radio';
|
||||
|
||||
$auth_switch['name'] = 'member_switch';
|
||||
|
||||
$auth_switch['value'] = $config ? $config[ $auth_switch['name'] ] : 0;
|
||||
|
||||
$auth_switch['title'] = $permission->info['title'];
|
||||
|
||||
return [ $auth_switch ];
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 监听用户中心模块
|
||||
*
|
||||
* @return array
|
||||
* @author shuixian
|
||||
* @DataTime: 2019/12/18 14:04
|
||||
*/
|
||||
// public function onAddUcenterCompoent(){
|
||||
// $last_staff_id = '#last_staff_id#' ;
|
||||
//
|
||||
// $moduleMenuShop = <<<COMPOENT
|
||||
//{
|
||||
// "title": "等级会员",
|
||||
// "type": "moduleMenuMember",
|
||||
// "icon": "iconMember",
|
||||
// "isDelete": true,
|
||||
// "addNumber": 1,
|
||||
// "attr": [{
|
||||
// "title": "模板名称",
|
||||
// "type": "Switch",
|
||||
// "name": "isShowTitle"
|
||||
// },
|
||||
// {
|
||||
// "title": "选择模板",
|
||||
// "type": "ChooseModule",
|
||||
// "name": "module",
|
||||
// "data": [{
|
||||
// "title": "一行多列",
|
||||
// "name": "module-menu-row",
|
||||
// "img": "http://longbingcdn.xiaochengxucms.com/admin/diy/module-menu-col.jpg"
|
||||
// },
|
||||
// {
|
||||
// "title": "一行一列",
|
||||
// "name": "module-menu-col",
|
||||
// "img": "http://longbingcdn.xiaochengxucms.com/admin/diy/module-menu-row.jpg"
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// "title": "一行多少列",
|
||||
// "type": "InputNumber",
|
||||
// "name": "row"
|
||||
// }
|
||||
// ],
|
||||
// "data": {
|
||||
// "isShowTitle": false,
|
||||
// "module": "module-menu-row",
|
||||
// "row": {
|
||||
// "number": 4,
|
||||
// "min": 2,
|
||||
// "max": 5,
|
||||
// "label": "请输入"
|
||||
// },
|
||||
// "list": [{
|
||||
// "title": "我的会员",
|
||||
// "icon": "iconMember",
|
||||
// "link": {
|
||||
// "type": 2,
|
||||
// "url": "/vip/pages/home"
|
||||
// }
|
||||
// }]
|
||||
// }
|
||||
//
|
||||
// }
|
||||
//COMPOENT;
|
||||
//
|
||||
// $permission = new PermissionMember($this->_uniacid);
|
||||
// $compoentList = [] ;
|
||||
// if( $this->_uniacid == 0 || $permission->pAuth()){
|
||||
// $compoentList = [
|
||||
// json_decode($moduleMenuShop, true)
|
||||
// ] ;
|
||||
// }
|
||||
//
|
||||
//
|
||||
//
|
||||
// return $compoentList ;
|
||||
// }
|
||||
|
||||
/**
|
||||
* @param $item
|
||||
* @功能说明:监听支付菜单数据获取
|
||||
* @author jingshuixian
|
||||
* @DataTime: 2020/1/7 17:02
|
||||
*/
|
||||
// public function onDiyModuleMenuPayqr($item){
|
||||
// $last_staff_id = UserService::getLastStaffId($this->_uniacid,$this->getUserId()) ;
|
||||
//
|
||||
//
|
||||
// $list = [
|
||||
// [
|
||||
// "title" =>"去付款",
|
||||
// "icon" => "iconwodedingdan1",
|
||||
// "link"=> [
|
||||
// "type"=> 2,
|
||||
// "url"=> "/pay/pages/home?staff_id=".$last_staff_id
|
||||
// ]
|
||||
// ]
|
||||
// ] ;
|
||||
// $item['data']['list'] = $list ;
|
||||
// return $item;
|
||||
//
|
||||
// }
|
||||
|
||||
}
|
||||
166
app/member/info/UpdateSql.php
Normal file
166
app/member/info/UpdateSql.php
Normal file
@@ -0,0 +1,166 @@
|
||||
<?php
|
||||
//获取表前缀
|
||||
$prefix = longbing_get_prefix();
|
||||
|
||||
//每个一个sql语句结束,都必须以英文分号结束。因为在执行sql时,需要分割单个脚本执行。
|
||||
//表前缀需要自己添加{$prefix} 以下脚本被测试脚本
|
||||
|
||||
|
||||
$sql = <<<updateSql
|
||||
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `{$prefix}longbing_card_v2_member_config` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uniacid` int(11) DEFAULT NULL,
|
||||
`status` int(11) DEFAULT '0' COMMENT '会员开关',
|
||||
`growth_title` varchar(255) DEFAULT '' COMMENT '成长值名称',
|
||||
`growth_cash` varchar(11) DEFAULT '0' COMMENT '消费多少元增加成长值',
|
||||
`growth_order` varchar(11) DEFAULT '0' COMMENT '每笔订单增加多少',
|
||||
`growth_balance` varchar(11) DEFAULT '0' COMMENT '储值增加多少',
|
||||
`growth_limit` int(11) DEFAULT '0' COMMENT '储值开关',
|
||||
`growth_day_max` int(11) DEFAULT '0' COMMENT '每日最多增加多少',
|
||||
`integral_title` varchar(255) DEFAULT '' COMMENT '积分展示名称',
|
||||
`integral_cash` varchar(11) DEFAULT '0' COMMENT '每消费一元获得多少积分',
|
||||
`integral_limit` int(11) DEFAULT '0' COMMENT '积分限制',
|
||||
`integral_day_max` varchar(11) DEFAULT '0' COMMENT '每日最多获取多少积分',
|
||||
`explain` text COMMENT '说明',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员设置';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `{$prefix}longbing_card_v2_member_growth` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uniacid` int(11) DEFAULT NULL,
|
||||
`user_id` int(11) DEFAULT '0' COMMENT '用户id',
|
||||
`controller` varchar(128) DEFAULT '0' COMMENT '操作者',
|
||||
`growth_add` int(11) DEFAULT '0' COMMENT '新增成长值',
|
||||
`growth_before` int(11) DEFAULT '0' COMMENT '当前成长值',
|
||||
`growth_after` int(11) DEFAULT '0' COMMENT '修改后的成长值',
|
||||
`is_del` int(11) DEFAULT '0' COMMENT '是否清空',
|
||||
`is_member` int(11) DEFAULT '0' COMMENT '成为会员',
|
||||
`status` int(11) DEFAULT '1' COMMENT '状态',
|
||||
`create_time` int(11) DEFAULT '0' COMMENT '创建时间',
|
||||
`order_id` int(11) DEFAULT '0' COMMENT '订单状态',
|
||||
`goods_id` int(11) DEFAULT '0' COMMENT '商品id',
|
||||
`type` int(11) DEFAULT '1' COMMENT '类型',
|
||||
`controller_type` int(11) DEFAULT '0' COMMENT '操作类型',
|
||||
`update_time` int(11) DEFAULT '0',
|
||||
`refund` int(11) DEFAULT '0' COMMENT '是否退款',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `{$prefix}longbing_card_v2_member_integral` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uniacid` int(11) DEFAULT NULL,
|
||||
`user_id` int(11) DEFAULT '0' COMMENT '用户id',
|
||||
`controller` int(11) DEFAULT '0' COMMENT '操作者',
|
||||
`integral_add` int(11) DEFAULT '0' COMMENT '增减积分',
|
||||
`integral_before` int(11) DEFAULT '0' COMMENT '当前积分',
|
||||
`create_time` int(11) DEFAULT '0',
|
||||
`status` int(11) DEFAULT '0',
|
||||
`integral_after` int(11) DEFAULT '0',
|
||||
`order_id` int(11) DEFAULT '0' COMMENT '订单id',
|
||||
`type` int(11) DEFAULT '0',
|
||||
`controller_type` int(11) DEFAULT '0',
|
||||
`update_time` int(11) DEFAULT '0',
|
||||
`refund` int(11) DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `{$prefix}longbing_card_v2_member_level` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uniacid` int(11) DEFAULT NULL,
|
||||
`title` varchar(11) DEFAULT '' COMMENT '等级名字',
|
||||
`color` varchar(32) DEFAULT '0' COMMENT '背景颜色',
|
||||
`growth` int(11) DEFAULT '0' COMMENT '成长值',
|
||||
`discount` varchar(11) DEFAULT '0' COMMENT '消费折扣',
|
||||
`integral` varchar(11) DEFAULT '0' COMMENT '积分回馈倍率',
|
||||
`send_integral` varchar(11) DEFAULT '0' COMMENT '赠送积分',
|
||||
`is_goods` int(11) DEFAULT '0' COMMENT '买商品赠送会员开关',
|
||||
`status` int(11) DEFAULT '0',
|
||||
`create_time` int(11) DEFAULT '0',
|
||||
`update_time` int(11) DEFAULT '0',
|
||||
`top` int(11) DEFAULT '0' COMMENT '会员等级',
|
||||
`discount_switch` int(11) DEFAULT '0' COMMENT '消费折扣开关',
|
||||
`integral_switch` int(11) DEFAULT '0' COMMENT '积分回馈倍率开关',
|
||||
`send_integral_switch` int(11) DEFAULT '0' COMMENT '赠送积分开关',
|
||||
`upgrade_integral` int(11) DEFAULT '0' COMMENT '升级赠送积分',
|
||||
`upgrade_integral_switch` int(11) DEFAULT '0' COMMENT '升级赠送积分开关',
|
||||
`custom_rights_switch` int(11) DEFAULT '0' COMMENT '自定义权限开关',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员等级表';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `{$prefix}longbing_card_v2_member_list` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uniacid` int(11) DEFAULT NULL,
|
||||
`user_id` int(11) DEFAULT NULL,
|
||||
`create_time` int(11) DEFAULT '0' COMMENT '创建时间',
|
||||
`growth` int(11) DEFAULT '0' COMMENT '成长值',
|
||||
`status` int(11) DEFAULT '1' COMMENT '状态',
|
||||
`update_time` int(11) DEFAULT '0' COMMENT '更新时间',
|
||||
`integral` int(11) DEFAULT '0' COMMENT '会员积分',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `{$prefix}longbing_card_v2_member_rights` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uniacid` int(11) DEFAULT NULL,
|
||||
`title` varchar(225) DEFAULT '' COMMENT '权益名称',
|
||||
`show_title` varchar(255) DEFAULT '' COMMENT '展示名称',
|
||||
`icon` varchar(255) DEFAULT '' COMMENT '标志',
|
||||
`content` text COMMENT '简介',
|
||||
`top` int(11) DEFAULT '0' COMMENT '排序',
|
||||
`type` int(11) DEFAULT '0' COMMENT '服务方式',
|
||||
`status` int(11) DEFAULT '0',
|
||||
`create_time` int(11) DEFAULT '0',
|
||||
`update_time` int(11) DEFAULT '0',
|
||||
`use_type` int(11) DEFAULT '0' COMMENT '类型(1商品打折,2积分倍率想,3积分赠送)',
|
||||
`is_up` int(11) DEFAULT '0' COMMENT '升级赠送礼包',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员权益表';
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `{$prefix}longbing_card_v2_member_rights_relation` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uniacid` int(11) DEFAULT NULL,
|
||||
`rights_id` int(11) DEFAULT '0' COMMENT '权益id',
|
||||
`member_id` int(11) DEFAULT '0' COMMENT '等级id',
|
||||
`type` int(11) DEFAULT '0' COMMENT '类型',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
ALTER TABLE `{$prefix}longbing_card_member_level` ADD COLUMN `coupon_switch` int(11) DEFAULT '0' COMMENT '优惠券开关';
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `{$prefix}longbing_card_v2_member_coupon` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uniacid` int(11) DEFAULT NULL,
|
||||
`member_id` int(11) DEFAULT '0' COMMENT '等级的id',
|
||||
`coupon_id` int(11) DEFAULT '0' COMMENT '优惠券id',
|
||||
`num` int(11) DEFAULT '0' COMMENT '数量',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
updateSql;
|
||||
|
||||
|
||||
|
||||
|
||||
return $sql;
|
||||
Reference in New Issue
Block a user