fastlane-plugin-pgyer_jvtd 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 992372b718d83b14a52c6d05afc402aa0474bf38b6079f1ad994382246125204
|
4
|
+
data.tar.gz: 50dbf14c5efc6c1728656b41932fa0bf3fdec33cf8ca87055b1079a1f46a0ea9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67c5c15f8fa582ac2f6a3531fe0599e780a8db4966f62f2fdfeefaee75dc8ddad58abed10059a06f5d624e07cab3211efbc45418d64e0da939a8b6d8f7f85f23
|
7
|
+
data.tar.gz: b2e2cc3f1b547487ff33c366504ba46529892ac52837cd705672cf341e5ac86a06ac08b3985c59e42b50d37c0f3da028c96c1c07d2a8c21c19b0b6e5295da5ab
|
@@ -103,24 +103,44 @@ module Fastlane
|
|
103
103
|
appUrl = "https://www.pgyer.com/#{info['data']['appShortcutUrl']}"
|
104
104
|
|
105
105
|
unless access_token.nil?
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
106
|
+
# 将应用信息发送到钉钉
|
107
|
+
uri = URI.parse("https://oapi.dingtalk.com/robot/send?access_token=#{access_token}")
|
108
|
+
https = Net::HTTP.new(uri.host, uri.port)
|
109
|
+
https.use_ssl = true
|
110
|
+
req = Net::HTTP::Post.new(uri.request_uri)
|
111
|
+
req.body = {
|
112
|
+
"msgtype"=> "link",
|
113
|
+
"link"=> {
|
114
|
+
"text"=> "#{appType} App发布"。
|
115
|
+
"title"=> "请下载最新版本#{appVersion}(#{appBuildVersion})",
|
116
|
+
"picUrl"=> appIcon,
|
117
|
+
"messageUrl"=> appUrl}
|
118
|
+
}.to_json
|
119
|
+
req.content_type = 'application/json'
|
120
|
+
resp = https.request(req)
|
121
|
+
json = JSON.parse(resp.body)
|
116
122
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
123
|
+
if json["errcode"] != 0
|
124
|
+
UI.error('ding talk error message: ' + json["errmsg"])
|
125
|
+
end
|
126
|
+
|
127
|
+
req1 = Net::HTTP::Post.new(uri.request_uri)
|
128
|
+
req1.body = {
|
129
|
+
"msgtype"=> "link",
|
130
|
+
"link"=> {
|
131
|
+
"text"=> "#{appType} App发布"。
|
132
|
+
"title"=> "请下载最新版本#{appVersion}(#{appBuildVersion})",
|
133
|
+
"picUrl"=> appIcon,
|
134
|
+
"messageUrl"=> appUrl}
|
135
|
+
}.to_json
|
136
|
+
req1.content_type = 'application/json'
|
137
|
+
resp1 = https.request(req1)
|
138
|
+
json1 = JSON.parse(resp1.body)
|
139
|
+
|
140
|
+
if json1["errcode"] != 0
|
141
|
+
UI.error('ding talk error message: ' + json1["errmsg"])
|
142
|
+
end
|
143
|
+
UI.success("Successfully send qr code to ding talk!")
|
124
144
|
else
|
125
145
|
end
|
126
146
|
|