Commit 4082ffdf by app.developer

修改和优化

parent d972d97e
......@@ -51,7 +51,7 @@ readonly PGY_API_KEY=$3
readonly PGY_USER_KEY=$4
readonly DD_HOST_URL=$5
readonly DD_PUSH=$6
readonly DD_MESSAGE=" "$7
readonly DD_MESSAGE=$7"."
function echo_log() {
echo "${COLOR_Cyan}$1${COLOR_Default}"
......
......@@ -45,7 +45,7 @@ def get_request_params_str():
app_message = get_pgy_message()
message = app_env + " 已更新" + " 密码:" + app_pwd + app_message
message = app_env + " 已更新" + " 密码:" + app_pwd + " " + app_message
print message
......
......@@ -57,7 +57,7 @@ PGY_UPLOAD_SERVER="https://qiniu-storage.pgyer.com/apiv1/app/upload"
# read -p "请输入蒲公英更新 log:" pgy_upload_log
# echo_log "更新 log 为:${pgy_upload_log}"
PGY_password="$(($RANDOM%9999+1111))"
PGY_upload_log="${EBIZ_ENV}_${NOW}${DD_MESSAGE}"
PGY_upload_log="${EBIZ_ENV}_${NOW},${DD_MESSAGE}"
# 上传到蒲公英,并接收 Response
PGY_RESPONSE=`curl -F "file=@/${EBIZ_IPA_PATH}" -F "uKey=${PGY_USER_KEY}" -F "_api_key=${PGY_API_KEY}" -F installType=2 -F password="${PGY_password}" -F "updateDescription=${PGY_upload_log}" ${PGY_UPLOAD_SERVER}`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment