chuanglan 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chuanglan.rb +1 -1
- data/lib/chuanglan/international.rb +1 -1
- data/lib/chuanglan/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e6a8688b75b26f01c102863dfd163c34eb6222e
|
4
|
+
data.tar.gz: dfa1c83e290b45d1fc400aad707d016234a01e55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e24479ec3b2ae638617cd1a9c17bbcde59963aa5b639bd5680c0c15e37b242b099c0544498fdb0419f109810a695cba44b8edaf77446a04d8c70ecb1e97876f9
|
7
|
+
data.tar.gz: 064c8ff852cfc5f66c1dcd92c3eb9e4d4f7b1fdeb9d051ce2696a293408b9804596e772a137ec0d5e07249f0a96cff0d36517713e9386e99aaddf1fc4fb8177e
|
data/lib/chuanglan.rb
CHANGED
@@ -13,7 +13,7 @@ module Chuanglan
|
|
13
13
|
def send_to!(recipients, message, params = {})
|
14
14
|
params = base_params.merge(params)
|
15
15
|
params[:phone] = Array(recipients).join(',')
|
16
|
-
params[:msg] = "#{params.
|
16
|
+
params[:msg] = "#{params.delete(:signature) || signature}#{message}"
|
17
17
|
rsp = Request.new("#{GATEWAY}/msg/send", params).perform
|
18
18
|
success_or_raise_exception(rsp)
|
19
19
|
end
|
@@ -8,7 +8,7 @@ module Chuanglan
|
|
8
8
|
def send_to!(recipients, message, params = {})
|
9
9
|
params = base_params.merge(params)
|
10
10
|
params[:da] = Array(recipients).join(',')
|
11
|
-
params[:sm] = "#{params.
|
11
|
+
params[:sm] = "#{params.delete(:signature) || signature}#{message}"
|
12
12
|
rsp = Request.new("#{GATEWAY}/mt", params).perform
|
13
13
|
success_or_raise_exception(rsp)
|
14
14
|
end
|
data/lib/chuanglan/version.rb
CHANGED