diff --git a/function/function.sh b/function/function.sh index f292c7c..d6e5e02 100644 --- a/function/function.sh +++ b/function/function.sh @@ -105,6 +105,7 @@ mod_gm_package(){ } +#gm 发送包 gm_send_package(){ ip_txt=${1} if is_valid_ip "$ip_txt"; then diff --git a/update_gm.sh b/update_gm.sh index 421b660..65db805 100644 --- a/update_gm.sh +++ b/update_gm.sh @@ -27,9 +27,11 @@ mvn clean package #删除旧文件 rm -rf ${BASE_DIR}/gm/* + #创建新目录文件 json_dir=${BASE_DIR}/gm/config/jsonconf mkdir -p ${json_dir} + #复制文件 cp -f ${TABLE_DIR}/miduo_server/conf/server/ItemConfig.txt ${json_dir}/ItemConfig.txt cp -f ${TABLE_DIR}/miduo_server/conf/server/RechargeCommodityConfig.txt ${json_dir}/RechargeCommodityConfig.txt