Commit 1fdb4179 by app.developer

no message

parent fe2aac55
...@@ -57,17 +57,18 @@ readonly PGY_UPLOAD_SERVER="https://qiniu-storage.pgyer.com/apiv1/app/upload" ...@@ -57,17 +57,18 @@ readonly PGY_UPLOAD_SERVER="https://qiniu-storage.pgyer.com/apiv1/app/upload"
# read -p "请输入蒲公英更新 log:" pgy_upload_log # read -p "请输入蒲公英更新 log:" pgy_upload_log
# echo_log "更新 log 为:${pgy_upload_log}" # echo_log "更新 log 为:${pgy_upload_log}"
readonly PGY_password="$(($RANDOM%9999+1111))" readonly PGY_password="$(($RANDOM%9999+1111))"
readonly PGY_upload_log="${EBIZ_ENV}_${NOW}" readonly PGY_upload_log=""
# 上传到蒲公英,并接收 Response # 上传到蒲公英,并接收 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}` 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}`
echo $PGY_RESPONSE
RESPONSE_CODE=$(echo $PGY_RESPONSE | jq .code) RESPONSE_CODE=$(echo $PGY_RESPONSE | jq .code)
DD_ICON_URL=$(echo $PGY_RESPONSE | jq .data.appIcon)/120 DD_ICON_URL=$(echo $PGY_RESPONSE | jq .data.appIcon)/120
DD_DOWN_URL=$(echo $PGY_RESPONSE | jq .data.appShortcutUrl) DD_DOWN_URL=$(echo $PGY_RESPONSE | jq .data.appShortcutUrl)
if [ $RESPONSE_CODE -eq 0 ]; then if [ $RESPONSE_CODE -eq 0 ]; then
else else
echo_error "upload error" echo_error "upload error"
exit 1 exit 1
......
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