Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weixin_authorize
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
weixin_authorize
Commits
2b9b04a8
Commit
2b9b04a8
authored
Jan 29, 2015
by
lanrion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模板消息,优化设置所属行业参数
parent
6629f8bc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
lib/weixin_authorize/api/template.rb
+7
-2
No files found.
lib/weixin_authorize/api/template.rb
View file @
2b9b04a8
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment