Commit 2b9b04a8 by lanrion

模板消息,优化设置所属行业参数

parent 6629f8bc
...@@ -4,8 +4,13 @@ module WeixinAuthorize ...@@ -4,8 +4,13 @@ module WeixinAuthorize
module Template module Template
# 设置所属行业 # 设置所属行业
def set_template_industry(industry_id1, industry_id2) # 需要选择公众账号服务所处的2个行业,每月可更改1次所选行业;
industries = {industry_id1: industry_id1, industry_id2: industry_id2} # 初始化行业时,传入两个,每月更改时,传入一个即可。
def set_template_industry(industry_id1, industry_id2="")
industries = {industry_id1: industry_id1}
if industry_id2 != ""
industries.merge!({industry_id2: industry_id2})
end
http_post("/template/api_set_industry", industries) http_post("/template/api_set_industry", industries)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment