|
|
|
@ -142,7 +142,7 @@ class WechatService
|
|
|
|
|
def three_keys_template(openid, template_id, type, id, first, key1, key2, key3, remark="",uid)
|
|
|
|
|
tmpurl = "#{Setting.protocol}://#{Setting.host_name}/wechat/user_activities#/#{type}/#{id}"
|
|
|
|
|
if uid && uid != 0
|
|
|
|
|
tmpurl = tmpurl + "&user_id="+uid.to_s
|
|
|
|
|
tmpurl = "#{Setting.protocol}://#{Setting.host_name}/wechat/user_activities#/#{type}?id=#{id}"+ "&user_id="+uid.to_s
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
data = {
|
|
|
|
@ -179,7 +179,7 @@ class WechatService
|
|
|
|
|
def four_keys_template(openid, template_id, type, id, first, key1, key2, key3, key4, remark="",uid)
|
|
|
|
|
tmpurl = "#{Setting.protocol}://#{Setting.host_name}/wechat/user_activities#/#{type}/#{id}"
|
|
|
|
|
if uid && uid != 0
|
|
|
|
|
tmpurl = tmpurl + "&user_id="+uid.to_s
|
|
|
|
|
tmpurl = "#{Setting.protocol}://#{Setting.host_name}/wechat/user_activities#/#{type}?id=#{id}"+ "&user_id="+uid.to_s
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
data = {
|
|
|
|
|