缺陷和留言的回复
This commit is contained in:
parent
007fee95bd
commit
c041f742c1
2
1234567
2
1234567
|
@ -1 +1 @@
|
|||
{"access_token":"G4QG7VJgF8Vmm71kLgC1XgHvyeXK-ZZrikaG7sPBrKuw6vgbYzV2FPYuNq3wNp7e-hsyfDI--rTlVspQXZk5bRK_CsZl8wWvuiPazV9mznGpOBGE5zVR8WOtvlqhylpHIMBdABABFU","expires_in":7200,"got_token_at":1460179500}
|
||||
{"access_token":"7MBMEBoE6sSC15bIHZYAZSxj47yCKlbWEVjrkUgEJxPP3K083tbhc1RIWmxGu3WoB5dAXxK_yd4l1jrcvt6YrsTcOfFGRirOHVfzrpvhsQgxOoxcdc7YljfO_dnwUtWgFTAcAIALZG","expires_in":7200,"got_token_at":1460189856}
|
|
@ -110,7 +110,11 @@ class BlogComment < ActiveRecord::Base
|
|||
}
|
||||
}
|
||||
logger.info "start send template message: #{data}"
|
||||
req = Wechat.api.template_message_send Wechat::Message.to(uw.openid).template(data)
|
||||
begin
|
||||
req = Wechat.api.template_message_send Wechat::Message.to(uw.openid).template(data)
|
||||
rescue Exception => e
|
||||
logger.error "[blog_comment] ===> #{e}"
|
||||
end
|
||||
logger.info "send over. #{req}"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -135,7 +135,11 @@ class HomeworkCommon < ActiveRecord::Base
|
|||
}
|
||||
}
|
||||
logger.info "start send template message: #{data}"
|
||||
req = Wechat.api.template_message_send Wechat::Message.to(uw.openid).template(data)
|
||||
begin
|
||||
req = Wechat.api.template_message_send Wechat::Message.to(uw.openid).template(data)
|
||||
rescue Exception => e
|
||||
logger.error "[homework_common] ===> #{e}"
|
||||
end
|
||||
logger.info "send over. #{req}"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -271,7 +271,11 @@ class Journal < ActiveRecord::Base
|
|||
}
|
||||
}
|
||||
logger.info "start send template message: #{data}"
|
||||
req = Wechat.api.template_message_send Wechat::Message.to(uw.openid).template(data)
|
||||
begin
|
||||
req = Wechat.api.template_message_send Wechat::Message.to(uw.openid).template(data)
|
||||
rescue Exception => e
|
||||
logger.error "[journal] ===> #{e}"
|
||||
end
|
||||
logger.info "send over. #{req}"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -341,7 +341,11 @@ class JournalsForMessage < ActiveRecord::Base
|
|||
}
|
||||
}
|
||||
logger.info "start send template message: #{data}"
|
||||
req = Wechat.api.template_message_send Wechat::Message.to(uw.openid).template(data)
|
||||
begin
|
||||
req = Wechat.api.template_message_send Wechat::Message.to(uw.openid).template(data)
|
||||
rescue Exception => e
|
||||
logger.error "[journal_for_message] ===> #{e}"
|
||||
end
|
||||
logger.info "send over. #{req}"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1155,9 +1155,12 @@ class Mailer < ActionMailer::Base
|
|||
}
|
||||
|
||||
logger.info "start send template message: #{data}"
|
||||
req = Wechat.api.template_message_send Wechat::Message.to(uw.openid).template(data)
|
||||
begin
|
||||
req = Wechat.api.template_message_send Wechat::Message.to(uw.openid).template(data)
|
||||
rescue Exception => e
|
||||
logger.error "[mailer] ===> #{e}"
|
||||
end
|
||||
logger.info "send over. #{req}"
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -10,7 +10,7 @@ app.factory('auth', function($http,$routeParams, $cookies, $q){
|
|||
var _openid = '';
|
||||
|
||||
if(debug===true){
|
||||
_openid = "6";
|
||||
_openid = "3";
|
||||
}
|
||||
|
||||
var getOpenId = function() {
|
||||
|
|
Loading…
Reference in New Issue