#!/bin/bash
gid=$1
version=$2
if [ $1 == 200 ]||[ $1 == 201 ]||[ $1 == 202 ]||[ $1 == 203 ];then
curl http://IP:Port/notice/v1/getnotice?gid=$1\&version=$2
echo "------------------------------------------------notice地址為:"
echo "http://IP:Port/notice/v1/getnotice?gid=$1\&version=$2"
elif [ $1 == 205 ];then
curl http://IP:Port/notice/v1/getnotice?gid=$1\&version=$2
echo "------------------------------------------------notice地址為:"
echo "http://IP:Port/notice/v1/getnotice?gid=$1\&version=$2"
fi
( curl的鏈接為自己服務(wù)的鏈接,企業(yè)IP和端口較為隱私此處隱去 )