fastlane-plugin-pgyer_jvtd 0.2.8 → 0.2.9
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: 287d6f66b892c877222809a960dae0c349c0509612b4abbb50cc1018c12e0edf
|
4
|
+
data.tar.gz: c1dc327c2147b548677ba610c9a984c4a31d34d49e5fab349de8861be638adea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40dacfa00756983d36c4e5350497316a4390efe76067a2c96d6c27caf8f562df4eec7f5c6e31d6f64e584a5dc8a47bdb881981c849b89da7c63c6fda09e73df4
|
7
|
+
data.tar.gz: 56098dda0c2b682be0b1d50f60c334d4448864b2cde34a809ca96870ed8cedccdff03cd2a5d320c53d80bdb47c1c146550499de97febf2ef06bece81970961d5
|
@@ -135,6 +135,27 @@ module Fastlane
|
|
135
135
|
uri = URI.parse(uriStr)
|
136
136
|
UI.success uriStr
|
137
137
|
|
138
|
+
params = {
|
139
|
+
"msgtype" => "text",
|
140
|
+
"text" => "#{appName}#{appType} App最新#{appEnvironment}版本已发布",
|
141
|
+
"at" => {
|
142
|
+
"atMobiles" => [],
|
143
|
+
"isAtAll" => is_at_all == "1"
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
https = Net::HTTP.new(uri.host, uri.port)
|
148
|
+
https.use_ssl = true
|
149
|
+
req = Net::HTTP::Post.new(uri.request_uri)
|
150
|
+
req.body = params.to_json
|
151
|
+
req.content_type = 'application/json'
|
152
|
+
resp = https.request(req)
|
153
|
+
info = JSON.parse(resp.body)
|
154
|
+
|
155
|
+
if info['errcode'] != 0
|
156
|
+
UI.error('ding talk error message: ' + info["errmsg"])
|
157
|
+
end
|
158
|
+
|
138
159
|
params = {
|
139
160
|
"msgtype" => "link",
|
140
161
|
"link" => {
|
@@ -160,9 +181,8 @@ module Fastlane
|
|
160
181
|
params = {
|
161
182
|
"msgtype" => "markdown",
|
162
183
|
"markdown" => {
|
163
|
-
"title" => "#{appName}#{appType} App最新#{appEnvironment}
|
164
|
-
"text" => "
|
165
|
-
"> 扫描二维码即可安装" +
|
184
|
+
"title" => "#{appName}#{appType} App最新#{appEnvironment}版本",
|
185
|
+
"text" => "> 扫描二维码即可安装\n" +
|
166
186
|
"> ![qrcode](#{appQrCode})\n"
|
167
187
|
},
|
168
188
|
"at" => {
|