|
|
@@ -734,307 +734,220 @@ class UpgradeController
|
|
|
*/
|
|
|
public function upData()
|
|
|
{
|
|
|
- $data['new_version'] = 'CRMEB-BZ v5.2.1';
|
|
|
- $data['new_code'] = 521;
|
|
|
+ $data['new_version'] = 'CRMEB-BZ v5.3.0';
|
|
|
+ $data['new_code'] = 530;
|
|
|
$data['update_sql'] = [
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 3,
|
|
|
- 'table' => "agent_level",
|
|
|
- 'field' => "one_brokerage_percent",
|
|
|
- 'findSql' => "show columns from `@table` like 'one_brokerage_percent'",
|
|
|
- 'sql' => "ALTER TABLE `@table` ADD `one_brokerage_percent` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '一级分佣比例' AFTER `one_brokerage`"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 3,
|
|
|
- 'table' => "agent_level",
|
|
|
- 'field' => "two_brokerage_percent",
|
|
|
- 'findSql' => "show columns from `@table` like 'two_brokerage_percent'",
|
|
|
- 'sql' => "ALTER TABLE `@table` ADD `two_brokerage_percent` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '二级分佣比例' AFTER `two_brokerage`"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 3,
|
|
|
- 'table' => "store_bargain",
|
|
|
- 'field' => "is_commission",
|
|
|
- 'findSql' => "show columns from `@table` like 'is_commission'",
|
|
|
- 'sql' => "ALTER TABLE `@table` ADD `is_commission` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否返佣'"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 3,
|
|
|
- 'table' => "store_seckill",
|
|
|
- 'field' => "is_commission",
|
|
|
- 'findSql' => "show columns from `@table` like 'is_commission'",
|
|
|
- 'sql' => "ALTER TABLE `@table` ADD `is_commission` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否返佣'"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 6,
|
|
|
- 'table' => "system_config_tab",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `eng_title` = 'wechat_config'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='wechat'",
|
|
|
- 'sql' => "INSERT INTO `@table` VALUES (NULL, @tabId, '公众号配置', 'wechat_config', 1, 0, '', 3, 0)"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 6,
|
|
|
+ 'code' => 530,
|
|
|
+ 'type' => -1,
|
|
|
'table' => "system_config_tab",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `eng_title` = 'wechat_encoding'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='wechat'",
|
|
|
- 'sql' => "INSERT INTO `@table` VALUES (NULL, @tabId, '服务器域名配置', 'wechat_encoding', 1, 0, '', 3, 0)"
|
|
|
+ 'sql' => "truncate table `@table`"
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 6,
|
|
|
+ 'code' => 530,
|
|
|
+ 'type' => 3,
|
|
|
'table' => "system_config_tab",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `eng_title` = 'routine_config'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='routine'",
|
|
|
- 'sql' => "INSERT INTO `@table` VALUES (NULL, @tabId, '小程序配置', 'routine_config', 1, 0, '', 3, 0)"
|
|
|
+ 'field' => "menus_id",
|
|
|
+ 'findSql' => "show columns from `@table` like 'menus_id'",
|
|
|
+ 'sql' => "ALTER TABLE `@table` ADD `menus_id` int(11) NOT NULL DEFAULT '0' COMMENT '菜单ID'"
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 6,
|
|
|
+ 'code' => 530,
|
|
|
+ 'type' => -1,
|
|
|
'table' => "system_config_tab",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `eng_title` = 'routine_encoding'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='routine'",
|
|
|
- 'sql' => "INSERT INTO `@table` VALUES (NULL, @tabId, '消息推送配置', 'routine_encoding', 1, 0, '', 3, 0)"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'wechat_appid'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='wechat_config'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'wechat_appid'"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'wechat_appsecret'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='wechat_config'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'wechat_appsecret'"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'wechat_token'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='wechat_encoding'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'wechat_token'"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'wechat_encode'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='wechat_encoding'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'wechat_encode'"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'wechat_encodingaeskey'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='wechat_encoding'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'wechat_encodingaeskey'"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'wechat_qrcode'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='wechat_config'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'wechat_qrcode'"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'routine_appId'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='routine_config'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'routine_appId'"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'routine_appsecret'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='routine_config'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'routine_appsecret'"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'api'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='wechat_encoding'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'api'"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'routine_name'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='routine_config'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'routine_name'"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'routine_contact_type'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='routine_config'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'routine_contact_type'"
|
|
|
+ 'sql' => <<<SQL
|
|
|
+INSERT INTO `@table` (`id`, `pid`, `title`, `eng_title`, `status`, `info`, `icon`, `type`, `sort`, `menus_id`) VALUES
|
|
|
+(1, 129, '基础配置', 'basics', 1, 0, 'ios-settings', 0, 0, 23),
|
|
|
+(2, 78, '公众号配置(H5)', 'wechat', 1, 0, 'ios-chatbubbles', 3, 0, 1006),
|
|
|
+(4, 23, '微信支付配置', 'pay', 1, 0, 'ios-chatbubbles', 3, 0, 1063),
|
|
|
+(7, 78, '小程序配置', 'routine', 1, 0, 'logo-android', 3, 0, 1007),
|
|
|
+(9, 0, '分销配置', 'fenxiao', 1, 0, 'md-contacts', 3, 0, 28),
|
|
|
+(11, 100, '用户积分配置', 'point', 0, 0, 'logo-euro', 3, 0, 3423),
|
|
|
+(18, 65, '一号通', 'system_sms', 1, 0, 'ios-chatboxes', 3, 99, 3418),
|
|
|
+(21, 65, '小票打印配置', 'printing_deploy', 1, 0, 'logo-buffer', 3, 0, 1057),
|
|
|
+(23, 65, '商城支付配置', 'pay_config', 1, 0, 'logo-usd', 3, 70, 1063),
|
|
|
+(28, 100, '用户充值配置', 'recharge_site', 0, 0, '', 3, 2, 3423),
|
|
|
+(31, 79, '基础配置', 'base_config', 0, 0, '', 0, 0, 1012),
|
|
|
+(41, 65, '采集商品配置', 'copy_product', 1, 0, '', 3, 0, 1058),
|
|
|
+(45, 100, '用户等级配置', 'store_member', 1, 0, '', 3, 3, 3423),
|
|
|
+(50, 113, '发票功能配置', 'store_invoice', 1, 0, '', 3, 0, 3424),
|
|
|
+(63, 23, '支付宝支付配置', 'ali_pay', 1, 0, '', 3, 0, 1063),
|
|
|
+(64, 65, '物流查询配置', 'logistics_select', 1, 0, '', 3, 0, 1059),
|
|
|
+(65, 0, '接口设置', 'system_serve', 1, 0, 'md-briefcase', 3, 0, 1056),
|
|
|
+(66, 65, '电子面单配置', 'electronic_sheet', 1, 0, '', 3, 0, 1060),
|
|
|
+(67, 100, '付费会员配置', 'member_card', 0, 0, '', 3, 2, 3423),
|
|
|
+(69, 0, '客服配置', 'kefu_config', 1, 0, '', 3, 0, 3421),
|
|
|
+(70, 129, '分享配置', 'share_index_config', 1, 0, '', 0, 0, 23),
|
|
|
+(71, 113, '售后退款配置', 'refund_config', 1, 0, '', 3, 0, 3424),
|
|
|
+(72, 9, '分销模式', 'brokerage_type', 1, 0, '', 3, 0, 28),
|
|
|
+(73, 9, '返佣设置', 'brokerage_set', 1, 0, '', 3, 0, 28),
|
|
|
+(74, 9, '提现设置', 'extract_set', 1, 0, '', 3, 0, 28),
|
|
|
+(75, 78, 'PC站点配置', 'system_pc', 1, 0, '', 3, 0, 1010),
|
|
|
+(77, 78, 'APP配置', 'app', 1, 0, '', 3, 0, 1011),
|
|
|
+(78, 0, '应用配置', 'sys_app', 1, 0, '', 3, 0, 135),
|
|
|
+(79, 65, '系统存储配置', 'storage_config', 1, 0, '', 3, 0, 1012),
|
|
|
+(80, 79, '七牛云配置', 'qiniu_config', 0, 0, '', 0, 0, 1012),
|
|
|
+(81, 79, '阿里云配置', 'oss_config', 0, 0, '', 0, 0, 1012),
|
|
|
+(82, 79, '腾讯云配置', 'cos_config', 0, 0, '', 0, 0, 1012),
|
|
|
+(86, 21, '基础配置', 'print_basic', 1, 0, '', 3, 0, 1057),
|
|
|
+(87, 21, '易联云配置', 'yly_config', 1, 0, '', 3, 0, 1057),
|
|
|
+(89, 41, '基础配置', 'copy_basic', 1, 0, '', 3, 0, 1058),
|
|
|
+(90, 41, '99api配置', '99api_config', 1, 0, '', 3, 0, 1058),
|
|
|
+(91, 64, '基础配置', 'logistics_basic', 1, 0, '', 3, 0, 1059),
|
|
|
+(92, 64, '阿里云配置', 'logistics_aliyun', 1, 0, '', 3, 0, 1059),
|
|
|
+(93, 66, '基础配置', 'electronic_basic', 1, 0, '', 3, 0, 1060),
|
|
|
+(94, 66, '一号通配置', 'system_electronic_config', 1, 0, '', 3, 0, 1060),
|
|
|
+(96, 65, '短信接口配置', 'sms_config', 1, 0, '', 3, 0, 1062),
|
|
|
+(97, 96, '基础配置', 'sms_config_basic', 1, 0, '', 3, 0, 1062),
|
|
|
+(98, 96, '阿里云配置', 'sms_aliyun', 1, 0, '', 3, 0, 1062),
|
|
|
+(99, 96, '腾讯云配置', 'tencent_sms', 1, 0, '', 3, 0, 1062),
|
|
|
+(100, 0, '用户配置', 'system_user_config', 1, 0, 'md-contact', 3, 0, 3423),
|
|
|
+(102, 65, '对外接口配置', 'out_config', 1, 0, '', 3, 0, 0),
|
|
|
+(103, 102, '基础配置', 'out_basic', 1, 0, '', 3, 0, 0),
|
|
|
+(104, 102, '推送配置', 'out_push', 1, 0, '', 3, 0, 0),
|
|
|
+(105, 100, '新用户设置', 'new_user_setting', 1, 0, '', 3, 0, 3423),
|
|
|
+(106, 129, '翻译配置', 'online_translation', 0, 0, '', 3, 0, 23),
|
|
|
+(107, 21, '飞鹅云配置', 'fey_config', 1, 0, '', 3, 0, 1057),
|
|
|
+(108, 23, '通联支付', 'allinpay', 1, 0, '', 3, 0, 1063),
|
|
|
+(109, 23, '基础配置', 'pay_basic', 1, 0, '', 3, 100, 1063),
|
|
|
+(110, 79, '京东云配置', 'jd_oss_config', 0, 0, '', 0, 0, 1012),
|
|
|
+(111, 79, '华为云配置', 'obs_config', 0, 0, '', 0, 0, 1012),
|
|
|
+(112, 79, '天翼云配置', 'ty_oss_config', 0, 0, '', 0, 0, 1012),
|
|
|
+(113, 0, '订单配置', 'order_config', 1, 0, '', 3, 0, 3424),
|
|
|
+(114, 113, '包邮设置', 'free_shipping_config', 1, 0, '', 3, 10, 3424),
|
|
|
+(115, 113, '订单取消配置', 'order_cancel_config', 1, 0, '', 3, 0, 3424),
|
|
|
+(116, 113, '自动收货配置', 'auto_take_config', 1, 0, '', 3, 0, 3424),
|
|
|
+(117, 113, '自动评价配置', 'auto_reviews_config', 1, 0, '', 3, 0, 3424),
|
|
|
+(119, 113, '到店自提配置', 'self_mention_config', 1, 0, '', 3, 0, 3424),
|
|
|
+(120, 113, '警戒库存配置', 'store_stock_config', 1, 0, '', 3, 0, 3424),
|
|
|
+(122, 129, 'LOGO配置', 'site_logo_config', 1, 0, '', 0, 0, 23),
|
|
|
+(123, 129, '统计配置', 'statistics_config', 1, 0, '', 0, 0, 23),
|
|
|
+(124, 129, '地图配置', 'map_config', 1, 0, '', 0, 0, 23),
|
|
|
+(125, 129, '备案配置', 'beian_config', 1, 0, '', 0, 0, 23),
|
|
|
+(126, 100, '用户签到配置', 'user_sign_config', 0, 0, '', 3, 0, 3423),
|
|
|
+(129, 0, '系统配置', 'system_config', 1, 0, '', 0, 0, 23),
|
|
|
+(130, 2, '公众号配置', 'wechat_config', 1, 0, '', 3, 0, 1006),
|
|
|
+(131, 2, '服务器域名配置', 'wechat_encoding', 1, 0, '', 3, 0, 1006),
|
|
|
+(132, 7, '小程序配置', 'routine_config', 1, 0, '', 3, 0, 1007),
|
|
|
+(133, 7, '消息推送配置', 'routine_encoding', 1, 0, '', 3, 0, 1007),
|
|
|
+(134, 129, '模块配置', 'model_config', 1, 0, '', 0, 0, 23);
|
|
|
+SQL
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'weixin_ckeck_file'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='wechat_config'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'weixin_ckeck_file'"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'create_wechat_user'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='wechat_config'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'create_wechat_user'"
|
|
|
- ],
|
|
|
- [
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
+ 'code' => 530,
|
|
|
+ 'type' => -1,
|
|
|
'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'get_avatar'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='routine_config'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'get_avatar'"
|
|
|
+ 'sql' => "UPDATE `@table` SET `parameter` = '0=>银行卡\n1=>微信\n2=>支付宝\n3=>余额' WHERE `menu_name` = 'store_free_postage'"
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
+ 'code' => 530,
|
|
|
+ 'type' => -1,
|
|
|
'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'share_qrcode'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='wechat_config'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'share_qrcode'"
|
|
|
+ 'sql' => "DELETE FROM `@table` WHERE `id` = 459"
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
+ 'code' => 530,
|
|
|
+ 'type' => 6,
|
|
|
'table' => "system_config",
|
|
|
'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'order_shipping_open'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='routine_config'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'order_shipping_open'"
|
|
|
+ 'findSql' => "select id from @table where `menu_name` = 'model_checkbox'",
|
|
|
+ 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='model_config'",
|
|
|
+ 'sql' => "INSERT INTO `@table` VALUES (NULL, 'model_checkbox', 'checkbox', 'input', @tabId, 'seckill=>秒杀\nbargain=>砍价\ncombination=>拼团', 1, '', 0, 0, '[\"seckill\",\"bargain\",\"combination\"]', '模块配置', '模块配置,选中展示对应的模块,取消选中则前后端不展示模块相关内容', 0, 1)"
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
+ 'code' => 530,
|
|
|
+ 'type' => 6,
|
|
|
'table' => "system_config",
|
|
|
'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'routine_auth_type'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='routine_config'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'routine_auth_type'"
|
|
|
+ 'findSql' => "select id from @table where `menu_name` = 'sp_appid'",
|
|
|
+ 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='pay'",
|
|
|
+ 'sql' => "INSERT INTO `@table` VALUES (NULL, 'sp_appid', 'text', 'input', @tabId, '', 1, '', 100, 0, '\"\"', '主商户APPID', '开启服务商支付,需要配置主商户申请的时候开通的公众号服务号的APPID', 0, 1)"
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 7,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'wechat_template_to_miniprogram'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='wechat_config'",
|
|
|
- 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'wechat_template_to_miniprogram'"
|
|
|
+ 'code' => 530,
|
|
|
+ 'type' => 3,
|
|
|
+ 'table' => "system_notification",
|
|
|
+ 'field' => "wechat_data",
|
|
|
+ 'findSql' => "show columns from `@table` like 'wechat_data'",
|
|
|
+ 'sql' => "ALTER TABLE `@table` ADD `wechat_data` varchar(255) NOT NULL DEFAULT '' COMMENT '模版消息参数' AFTER `wechat_tempid`"
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 6,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'refund_time_available'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='refund_config'",
|
|
|
- 'sql' => "INSERT INTO `@table` VALUES (NULL, 'refund_time_available', 'text', 'input', @tabId, '', 1, '', 100, 0, '0', '售后期限', '订单收货之后,在多少天内可以进行退款,超出天数前端不显示退款按钮,设置0则永远显示', 0, 1)"
|
|
|
+ 'code' => 530,
|
|
|
+ 'type' => 3,
|
|
|
+ 'table' => "system_notification",
|
|
|
+ 'field' => "wechat_link",
|
|
|
+ 'findSql' => "show columns from `@table` like 'wechat_link'",
|
|
|
+ 'sql' => "ALTER TABLE `@table` ADD `wechat_link` varchar(255) NOT NULL DEFAULT '' COMMENT '模版消息链接' AFTER `wechat_data`"
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 6,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'routine_api'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='routine_encoding'",
|
|
|
- 'sql' => "INSERT INTO `@table` VALUES (NULL, 'routine_api', 'text', 'input', @tabId, '', 1, '', 100, 0, '\"\\/api\\/wechat\\/miniServe\"', '接口地址', '配置小程序消息推送使用的接口地址,直接复制输入框内容(此项系统生成,无法修改)', 0, 1)"
|
|
|
+ 'code' => 530,
|
|
|
+ 'type' => 3,
|
|
|
+ 'table' => "system_notification",
|
|
|
+ 'field' => "wechat_to_routine",
|
|
|
+ 'findSql' => "show columns from `@table` like 'wechat_to_routine'",
|
|
|
+ 'sql' => "ALTER TABLE `@table` ADD `wechat_to_routine` int(1) NOT NULL DEFAULT '0' COMMENT '模版消息跳转小程序' AFTER `wechat_link`"
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 6,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'routine_token'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='routine_encoding'",
|
|
|
- 'sql' => "INSERT INTO `@table` VALUES (NULL, 'routine_token', 'text', 'input', @tabId, '', 1, '', 100, 0, '\"\"', '小程序验证TOKEN', '小程序验证TOKEN', 0, 1)"
|
|
|
+ 'code' => 530,
|
|
|
+ 'type' => 3,
|
|
|
+ 'table' => "system_notification",
|
|
|
+ 'field' => "routine_data",
|
|
|
+ 'findSql' => "show columns from `@table` like 'routine_data'",
|
|
|
+ 'sql' => "ALTER TABLE `@table` ADD `routine_data` varchar(255) NOT NULL DEFAULT '' COMMENT '订阅消息参数' AFTER `routine_tempid`"
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 6,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'routine_encode'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='routine_encoding'",
|
|
|
- 'sql' => "INSERT INTO `@table` VALUES (NULL, 'routine_encode', 'radio', 'input', @tabId, '0=>明文模式\n1=>兼容模式\n2=>安全模式', 1, '', 0, 0, '0', '消息加解密方式', '小程序消息推送中的消息加密方式,暂时仅支持明文模式', 0, 1)"
|
|
|
+ 'code' => 530,
|
|
|
+ 'type' => 3,
|
|
|
+ 'table' => "system_notification",
|
|
|
+ 'field' => "routine_link",
|
|
|
+ 'findSql' => "show columns from `@table` like 'routine_link'",
|
|
|
+ 'sql' => "ALTER TABLE `@table` ADD `routine_link` varchar(255) NOT NULL DEFAULT '' COMMENT '订阅消息链接' AFTER `routine_data`"
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
- 'type' => 6,
|
|
|
- 'table' => "system_config",
|
|
|
- 'whereTable' => "system_config_tab",
|
|
|
- 'findSql' => "select id from @table where `menu_name` = 'routine_encodingaeskey'",
|
|
|
- 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='routine_encoding'",
|
|
|
- 'sql' => "INSERT INTO `@table` VALUES (NULL, 'routine_encodingaeskey', 'text', 'input', @tabId, '', 1, '', 0, 0, '\"\"', 'EncodingAESKey', '消息加密密钥由43位字符组成,字符范围为A-Z,a-z,0-9', 0, 1)"
|
|
|
+ 'code' => 530,
|
|
|
+ 'type' => 3,
|
|
|
+ 'table' => "system_notification",
|
|
|
+ 'field' => "custom_trigger",
|
|
|
+ 'findSql' => "show columns from `@table` like 'custom_trigger'",
|
|
|
+ 'sql' => "ALTER TABLE `@table` ADD `custom_trigger` varchar(255) NOT NULL DEFAULT '' COMMENT '自定义消息触发位置' AFTER `add_time`"
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
- 'type' => -1,
|
|
|
- 'table' => "system_menus",
|
|
|
- 'sql' => "DELETE FROM `@table` WHERE `id` = 657"
|
|
|
+ 'code' => 530,
|
|
|
+ 'type' => 3,
|
|
|
+ 'table' => "system_notification",
|
|
|
+ 'field' => "custom_variable",
|
|
|
+ 'findSql' => "show columns from `@table` like 'custom_variable'",
|
|
|
+ 'sql' => "ALTER TABLE `@table` ADD `custom_variable` varchar(1000) NOT NULL DEFAULT '' COMMENT '自定义消息变量' AFTER `custom_trigger`"
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
+ 'code' => 530,
|
|
|
'type' => -1,
|
|
|
'table' => "system_menus",
|
|
|
- 'sql' => "INSERT INTO `@table` VALUES (657, 656, '', '首页装修', 'admin', '', '', '', '', '[]', 100, 1, 1, 1, '/setting/pages/devise/0', '12/656', 1, '', 0, 'admin-setting-pages-devise', 0, '页面设计')"
|
|
|
+ 'sql' => "INSERT INTO `@table` VALUES (NULL, 993, '', '小程序链接', 'admin', '', '', '', '', '[]', 0, 1, 1, 1, '/app/routine/link', '135/993', 1, '', 0, '', 0, '')"
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
+ 'code' => 530,
|
|
|
'type' => -1,
|
|
|
'table' => "system_menus",
|
|
|
- 'sql' => "INSERT INTO `@table` VALUES (NULL, 656, '', '商品分类', 'admin', '', '', '', '', '[]', 95, 1, 1, 1, '/setting/pages/cate_page/1', '656', 1, '', 0, '', 0, '')"
|
|
|
+ 'sql' => "INSERT INTO `@table` VALUES (NULL, 56, '', '模块配置', 'admin', '', '', '', '', '[]', 0, 1, 1, 1, '/marketing/integral/system_config/2/134', '25/56', 1, '', 0, 'system-model-system_config', 0, '')"
|
|
|
],
|
|
|
[
|
|
|
- 'code' => 521,
|
|
|
- 'type' => -1,
|
|
|
- 'table' => "system_menus",
|
|
|
- 'sql' => "INSERT INTO `@table` VALUES (NULL, 656, '', '个人中心', 'admin', '', '', '', '', '[]', 90, 1, 1, 1, '/setting/pages/user_page/2', '656', 1, '', 0, '', 0, '')"
|
|
|
+ 'code' => 530,
|
|
|
+ 'type' => 1,
|
|
|
+ 'table' => "routine_scheme",
|
|
|
+ 'findSql' => "select * from information_schema.tables where table_name ='@table'",
|
|
|
+ 'sql' => "CREATE TABLE IF NOT EXISTS `@table` (
|
|
|
+ `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号',
|
|
|
+ `title` varchar(255) NOT NULL DEFAULT '' COMMENT '名称',
|
|
|
+ `path` varchar(255) NOT NULL DEFAULT '' COMMENT '小程序页面地址',
|
|
|
+ `url` varchar(255) NOT NULL DEFAULT '' COMMENT '生成链接地址',
|
|
|
+ `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间',
|
|
|
+ `expire_type` int(11) NOT NULL DEFAULT '-1' COMMENT '到期类型',
|
|
|
+ `expire_interval` int(11) NOT NULL DEFAULT '0' COMMENT '到期天数',
|
|
|
+ `expire_time` int(11) NOT NULL DEFAULT '0' COMMENT '到期时间',
|
|
|
+ `is_del` int(11) NOT NULL DEFAULT '0' COMMENT '是否删除',
|
|
|
+ PRIMARY KEY (`id`)
|
|
|
+) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='小程序外链'"
|
|
|
],
|
|
|
];
|
|
|
return $data;
|