From ac91d37bb31ebea1c6bd820d37117914f3ba6eca Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Fri, 7 Jul 2023 15:40:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8D=87=E7=BA=A7=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adminapi/controller/UpgradeController.php | 1275 +++++++++++++++++ 1 file changed, 1275 insertions(+) diff --git a/crmeb/app/adminapi/controller/UpgradeController.php b/crmeb/app/adminapi/controller/UpgradeController.php index 493c0c28b..fb9cd20dd 100644 --- a/crmeb/app/adminapi/controller/UpgradeController.php +++ b/crmeb/app/adminapi/controller/UpgradeController.php @@ -16797,6 +16797,1281 @@ INSERT INTO `@table` (`id`, `pid`, `app_name`, `name`, `mark`, `path`, `sort`, ` (183, 0, 'api', '发票', '', '', 0, 1683360771); SQL ], + + + + + + + [ + 'code' => 510, + 'type' => -1, + 'table' => "express", + 'sql' => "truncate table `@table`" + ], + [ + 'code' => 510, + 'type' => -1, + 'table' => "express", + 'sql' => << 510, + 'type' => 3, + 'table' => "store_order", + 'field' => "is_stock_up", + 'findSql' => "show columns from `@table` like 'is_stock_up'", + 'sql' => "ALTER TABLE `@table` ADD `is_stock_up` TINYINT(1) NOT NULL DEFAULT '0' COMMENT '是否备货中' AFTER `status`" + ], + [ + 'code' => 510, + 'type' => 3, + 'table' => "store_product_reply", + 'field' => "suk", + 'findSql' => "show columns from `@table` like 'suk'", + 'sql' => "ALTER TABLE `@table` ADD `suk` varchar(255) NOT NULL DEFAULT '' COMMENT '规格名称'" + ], + [ + 'code' => 510, + 'type' => 3, + 'table' => "system_attachment", + 'field' => "scan_token", + 'findSql' => "show columns from `@table` like 'scan_token'", + 'sql' => "ALTER TABLE `@table` ADD `scan_token` varchar(32) NOT NULL DEFAULT '' COMMENT '扫码上传的token'" + ], + [ + 'code' => 510, + 'type' => 6, + 'table' => "system_config_tab", + 'whereTable' => "system_config_tab", + 'findSql' => "select id from @table where `eng_title` = 'jd_oss_config'", + 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='storage_config'", + 'sql' => "INSERT INTO `@table` VALUES (NULL, @tabId, '京东云配置', 'jd_oss_config', 0, 0, '', 0, 0)" + ], + [ + 'code' => 510, + 'type' => 6, + 'table' => "system_config_tab", + 'whereTable' => "system_config_tab", + 'findSql' => "select id from @table where `eng_title` = 'obs_config'", + 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='storage_config'", + 'sql' => "INSERT INTO `@table` VALUES (NULL, @tabId, '华为云配置', 'obs_config', 0, 0, '', 0, 0)" + ], + [ + 'code' => 510, + 'type' => 6, + 'table' => "system_config_tab", + 'whereTable' => "system_config_tab", + 'findSql' => "select id from @table where `eng_title` = 'ty_oss_config'", + 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='storage_config'", + 'sql' => "INSERT INTO `@table` VALUES (NULL, @tabId, '天翼云配置', 'ty_oss_config', 0, 0, '', 0, 0)" + ], + [ + 'code' => 510, + 'type' => 7, + 'table' => "system_config_tab", + 'whereTable' => "system_config_tab", + 'findSql' => "select id from @table where `eng_title` = 'system_sms'", + 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='basics'", + 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'system_sms'" + ], + [ + 'code' => 510, + 'type' => 7, + 'table' => "system_config_tab", + 'whereTable' => "system_config_tab", + 'findSql' => "select id from @table where `eng_title` = 'online_translation'", + 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='basics'", + 'sql' => "UPDATE `@table` SET `config_tab_id` = @tabId WHERE `menu_name` = 'online_translation'" + ], + [ + 'code' => 510, + 'type' => 7, + 'table' => "system_config", + 'findSql' => "select id from @table where `menu_name` = 'sms_account'", + 'sql' => "UPDATE `@table` SET `info` = `一号通应用AppId`, `desc` = '一号通账号内创建应用的AppId' WHERE `menu_name` = 'sms_account'" + ], + [ + 'code' => 510, + 'type' => 7, + 'table' => "system_config", + 'findSql' => "select id from @table where `menu_name` = 'sms_token'", + 'sql' => "UPDATE `@table` SET `info` = `一号通应用AppSecret`, `desc` = '一号通账号内创建应用的AppSecret' WHERE `menu_name` = 'sms_token'" + ], + [ + 'code' => 510, + 'type' => 7, + 'table' => "system_config", + 'findSql' => "select id from @table where `menu_name` = 'integral_frozen'", + 'sql' => "UPDATE `@table` SET `desc` = '积分冻结(天),0为不冻结' WHERE `menu_name` = 'integral_frozen'" + ], + [ + 'code' => 510, + 'type' => 6, + 'table' => "system_config", + 'whereTable' => "system_config_tab", + 'findSql' => "select id from @table where `menu_name` = 'jd_accessKey'", + 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='jd_oss_config'", + 'sql' => "INSERT INTO `@table` VALUES (NULL, 'jd_accessKey', 'text', 'input', @table, '', 1, '', 100, 0, '\"\"', '京东云accessKey', '京东云accessKey', 0, 1)" + ], + [ + 'code' => 510, + 'type' => 6, + 'table' => "system_config", + 'whereTable' => "system_config_tab", + 'findSql' => "select id from @table where `menu_name` = 'jd_secretKey'", + 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='jd_oss_config'", + 'sql' => "INSERT INTO `@table` VALUES (NULL, 'jd_secretKey', 'text', 'input', @table, '', 1, '', 100, 0, '\"\"', '京东云secretKey', '京东云secretKey', 0, 1)" + ], + [ + 'code' => 510, + 'type' => 6, + 'table' => "system_config", + 'whereTable' => "system_config_tab", + 'findSql' => "select id from @table where `menu_name` = 'hw_accessKey'", + 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='obs_config'", + 'sql' => "INSERT INTO `@table` VALUES (NULL, 'hw_accessKey', 'text', 'input', @table, '', 1, '', 100, 0, '\"\"', '华为云accessKey', '华为云accessKey', 0, 1)" + ], + [ + 'code' => 510, + 'type' => 6, + 'table' => "system_config", + 'whereTable' => "system_config_tab", + 'findSql' => "select id from @table where `menu_name` = 'hw_secretKey'", + 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='obs_config'", + 'sql' => "INSERT INTO `@table` VALUES (NULL, 'hw_secretKey', 'text', 'input', @table, '', 1, '', 100, 0, '\"\"', '华为云secretKey', '华为云secretKey', 0, 1)" + ], + [ + 'code' => 510, + 'type' => 6, + 'table' => "system_config", + 'whereTable' => "system_config_tab", + 'findSql' => "select id from @table where `menu_name` = 'ty_secretKey'", + 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='ty_oss_config'", + 'sql' => "INSERT INTO `@table` VALUES (NULL, 'ty_secretKey', 'text', 'input', @table, '', 1, '', 100, 0, '\"\"', '天翼云secretKey', '天翼云secretKey', 0, 1)" + ], + [ + 'code' => 510, + 'type' => 6, + 'table' => "system_config", + 'whereTable' => "system_config_tab", + 'findSql' => "select id from @table where `menu_name` = 'ty_accessKey'", + 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='ty_oss_config'", + 'sql' => "INSERT INTO `@table` VALUES (NULL, 'ty_accessKey', 'text', 'input', @table, '', 1, '', 100, 0, '\"\"', '天翼云accessKey', '天翼云accessKey', 0, 1)" + ], + [ + 'code' => 510, + 'type' => 6, + 'table' => "system_config", + 'whereTable' => "system_config_tab", + 'findSql' => "select id from @table where `menu_name` = 'coupon_return_open'", + 'whereSql' => "SELECT id as tabId FROM `@whereTable` WHERE `eng_title`='store_base'", + 'sql' => "INSERT INTO `@table` VALUES (NULL, 'coupon_return_open', 'radio', 'input', @table, '1=>退还\n0=>不退还', 1, '', 0, 0, '\"1\"', '优惠券退还状态', '优惠券是否退回开关,商品成功退款后,退回/不退回使用的优惠券', 0, 1)" + ], + ]; return $data; }