node-webot / weixin-robot

微信公共帐号自动回复机器人 A Node.js robot for wechat.
1.76k stars 555 forks source link

该公众号暂时无法提供服务,请稍后再试 #79

Closed cosmo2097 closed 9 years ago

cosmo2097 commented 9 years ago

https://mp.weixin.qq.com/cgi-bin/announce?action=getannouncement&key=1413446944&version=15&lang=zh_CN 根据微信最新的策略,如果设置了noReply=true或者回复内容为空串时,res.body应该为空。 否则一直会出现“该公众号暂时无法提供服务,请稍后再试”。 对wechat-mp做如下修改后测试正常。

/**
 * dump reply as xml string
 */
Wechat.dump = function(reply) {
  if (reply.content === '') {
    return '';
  }
  return mp_xml.build(reply);
}
ktmud commented 9 years ago

Thank you. 发个PR如何?

On Wednesday, November 12, 2014, 张朝 notifications@github.com wrote:

https://mp.weixin.qq.com/cgi-bin/announce?action=getannouncement&key=1413446944&version=15&lang=zh_CN 根据微信最新的策略,如果设置了noReply=true或者回复内容为空串时,res.body应该为空。 否则一直会出现“该公众号暂时无法提供服务,请稍后再试”。 对wechat-mp做如下修改后测试正常。 ` /**

  • dump reply as xml string */ Wechat.dump = function(reply) { if (reply.content === '') { return ''; } return mp_xml.build(reply); } `

— Reply to this email directly or view it on GitHub https://github.com/node-webot/weixin-robot/issues/79.

Best Regards, Jesse Yang

cosmo2097 commented 9 years ago

OK,已经PR到wechat-mp项目。

ktmud commented 9 years ago

https://github.com/node-webot/wechat-mp/pull/8

limsgithub commented 9 years ago

如果设置了noReply=true或者回复内容为空串时,res.body应该为空。 否则一直会出现“该公众号暂时无法提供服务,请稍后再试”。

请问下这是在哪里设置的啊???