CN105763430A - Service encapsulation method and system for WeChat public account development - Google Patents
Service encapsulation method and system for WeChat public account development Download PDFInfo
- Publication number
- CN105763430A CN105763430A CN201610289118.XA CN201610289118A CN105763430A CN 105763430 A CN105763430 A CN 105763430A CN 201610289118 A CN201610289118 A CN 201610289118A CN 105763430 A CN105763430 A CN 105763430A
- Authority
- CN
- China
- Prior art keywords
- wechat public
- account
- keyword
- service end
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/046—Interoperability with other network applications or services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to the field of information technologies, in particular to a service encapsulation method and system for WeChat public account development.The method includes the following steps that a user sends key words to a WeChat public account service terminal through a client; the WeChat public account service terminal is configured with a service flow for designating the program processing order; the WeChat public account service terminal conducts object matching on the key words through a jave reflex mechanism, and designated service objects corresponding to the key words are generated; the designated service objects are returned to the client through a WeChat server in a unified message format according to the service flow.According to the service encapsulation method and system for WeChat public account development, the jave program is adopted for compiling, code execution efficiency and reliability are high, and program transportability is good; meanwhile, the configuration process is simple and flexible, designated service objects of different types can be generated according to the user key words, maintainability is good, and different requirements of the user can be met.
Description
Technical field
The present invention relates to areas of information technology, particularly to a kind of service method for packing for the exploitation of wechat public's account and system.
Background technology
The exploitation of wechat public's account service end is current mobile Internet fashion trend.Wechat public's account, i.e. wechat public account, be called for short weChat.Wechat public's account platform is utilized to carry out from media activity, just it is by the media sexual behaviour activity of one-to-many in simple terms, if businessman is by applying for public's wechat service number and passing through secondary development, the micro-official website of businessman, micro-member, micro-propelling movement, micropayments, micro-activity can be shown, micro-registration, differential are enjoyed, micro-business card etc., have defined the on-line off-line wechat interactive marketing mode of a kind of main flow.For wechat public's account, need the different key words according to user, generate corresponding information, and return to user in a certain order, and based on the one-to-many character of micro-property public's account, user is more many, and the difficulty carrying out information sifting and return according to user's key word is more big, it is therefore desirable to wechat public's account is carried out unified management.
Summary of the invention
The technical problem to be solved is to provide a kind of service method for packing for the exploitation of wechat public's account and system, solves prior art and is difficult to wechat public's account is carried out the technical problem of unified management.
The technical scheme is that a kind of service method for packing for the exploitation of wechat public's account, comprise the following steps:
Step 1, user is by client transmission keyword to wechat public's account service end;
Step 2, is used for the operation flow of designated program processing sequence in the configuration of wechat public's account service end;
Step 3, wechat public's account service end utilizes jave reflex mechanism that described keyword is carried out object matching, generates the specified services object that described keyword is corresponding;
Step 4, by described specified services object according to described operation flow, returns to client through wechat server unifying message format.
The invention has the beneficial effects as follows: technical scheme adopts java program to write, and the execution efficiency of code and reliability are all higher, and the portability of program is good;The present invention configures process simple and flexible simultaneously, it is possible to generate different types of specified services object according to user key words, not only maintainable good, and can meet the different needs of user.
On the basis of technique scheme, the present invention can also do following improvement.
Further, described step 1 particularly as follows:
User is by client transmission keyword to wechat server;
Wechat server generates corresponding access message according to described keyword, and described access message is linked into described wechat public's account service end.
Further, described step 3 particularly as follows:
Wechat public's account service end receives and parses through described access message, generates analysis result;
According to keyword match table in the data base of described wechat public's account service end, described analysis result is mated, generates the specified services object that described keyword is corresponding.
Above-mentioned further scheme is adopted to provide the benefit that: described analysis result is mated by this further technical scheme by keyword match table in data base, it is possible to according to service needed, keyword match table is modified, configures process simple and flexible.
Further, in step 3, the pattern carrying out object matching includes text, regular expression or SQL statement.
Above-mentioned further scheme is adopted to provide the benefit that: this is the multiple match pattern of technical scheme employing further, the type according to user key words and return information, it is possible to selecting suitable match pattern to mate, matching way is flexible.
Further, in step 3, it is intended that the type of business object includes any one or multiple combination of text object, graphics context, linked object, interface object and flow object.
Above-mentioned further scheme is adopted to provide the benefit that: this further technical scheme includes polytype specified services objects such as text object, graphics context, linked object, interface object and flow object, suitable specified services object can be selected to return according to the keyword of user, it is possible not only to meet the different needs of user, and maintainable good.
Further, in step 3, described keyword match table is text object allocation list, generates the text object of consolidation form according to text object allocation list, and described text object allocation list includes returning an object value ID, content of text, content of text type and service end wechat ID;
Or described keyword match table is graphics context allocation list, generate the graphics context of consolidation form according to graphics context allocation list, described graphics context allocation list includes returning an object value ID, picture and text exercise question, picture and text description, image link, URL link, server wechat end ID and graph-text content type;
Or described keyword match table is interface object allocation list, generate the interface object of consolidation form according to interface object allocation list, described interface object allocation list includes returning an object value ID, interface name, interface IP address, interface port, interface method, interface incoming message form, interface outgoing message form and interface type.
A kind of service package system for the exploitation of wechat public's account, including client and wechat public's account service end, described wechat public's account service end includes configuration module, matching module and message and returns module,
Described client sends keyword to wechat public's account service end for user;
Described configuration module for being used for the operation flow of designated program processing sequence in the configuration of wechat public's account service end;
Described matching module utilizes jave reflex mechanism that described keyword is carried out object matching for wechat public's account service end, generates the specified services object that described keyword is corresponding;
Described message return module for by described specified services object according to described operation flow, return to client through wechat server unifying message format.
Further, also including wechat server, described wechat server is used for receiving the keyword that client sends, and according to after the access message of keyword generation correspondence, described access message being linked into described wechat public's account service end.
Further, described matching module includes resolution unit and matching unit, and described resolution unit is used for receiving and parsing through described access message, generates analysis result;Described matching unit is used for according to keyword match table in the data base of described wechat public's account service end, described analysis result is mated, generates the specified services object that described keyword is corresponding.
Further, it is intended that the type of business object includes any one or multiple combination of text object, graphics context, linked object, interface object and flow object.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the service method for packing that the present invention develops for wechat public's account;
Fig. 2 is the structural representation of the service package system that the present invention develops for wechat public's account.
Detailed description of the invention
Below in conjunction with accompanying drawing, principles of the invention and feature being described, example is served only for explaining the present invention, is not intended to limit the scope of the present invention.
As it is shown in figure 1, the schematic flow sheet of the service method for packing developed for wechat public's account for the present invention, comprise the following steps:
Step 1, user is by client transmission keyword to wechat public's account service end;
Step 2, is used for the operation flow of designated program processing sequence in the configuration of wechat public's account service end;
Step 3, wechat public's account service end utilizes jave reflex mechanism that described keyword is carried out object matching, generates the specified services object that described keyword is corresponding;
Step 4, by described specified services object according to described operation flow, returns to client through wechat server unifying message format.
Technical scheme adopts java program to write, and the execution efficiency of code and reliability are all higher, and the portability of program is good;The present invention configures process simple and flexible simultaneously, it is possible to generate different types of specified services object according to user key words, not only maintainable good, and can meet the different needs of user.
In preferred embodiment, step 1 particularly as follows:
User is by client transmission keyword to wechat server;
Wechat server generates corresponding access message according to described keyword, and described access message is linked into described wechat public's account service end.
Described step 3 particularly as follows:
Wechat public's account service end receives and parses through described access message, generates analysis result;
According to keyword match table in the data base of described wechat public's account service end, described analysis result is mated, generates the specified services object that described keyword is corresponding.The pattern carrying out object matching includes text, regular expression or SQL statement.
In a preferred embodiment, described keyword match table is as shown in table 1 below:
Table 1 keyword match table
In a preferred embodiment, it is intended that the type of business object includes any one or multiple combination of text object, graphics context, linked object, interface object and flow object, as shown in table 2 below:
Table 2 specified services type list
When described keyword match table is text object allocation list, the text object of consolidation form is generated according to text object allocation list, described text object allocation list includes returning an object value ID, content of text, content of text type and service end wechat ID, and concrete text object allocation list is as shown in table 3 below:
Table 3 text object allocation list
When described keyword match table is graphics context allocation list, the graphics context of consolidation form is generated according to graphics context allocation list, described graphics context allocation list includes returning an object value ID, picture and text exercise question, picture and text description, image link, URL link, server wechat end ID and graph-text content type, and concrete graphics context allocation list is as shown in table 4 below:
Table 4 graphics context allocation list
Described keyword match table is interface object allocation list, the interface object of consolidation form is generated according to interface object allocation list, described interface object allocation list includes returning an object value ID, interface name, interface IP address, interface port, interface method, interface incoming message form, interface outgoing message form and interface type, and concrete interface object allocation list is as shown in table 5 below:
Table 5 interface object allocation list
As shown in Figure 2, structural representation for the service package system that the present invention develops for wechat public's account, including client and wechat public's account service end, described wechat public's account service end includes configuration module, matching module and message return module, and described client sends keyword to wechat public's account service end for user;Described configuration module for being used for the operation flow of designated program processing sequence in the configuration of wechat public's account service end;Described matching module utilizes jave reflex mechanism that described keyword is carried out object matching for wechat public's account service end, generates the specified services object that described keyword is corresponding;Described message return module for by described specified services object according to described operation flow, return to client through wechat server unifying message format.
In a preferred embodiment, also including wechat server, described wechat server is used for receiving the keyword that client sends, and according to after the access message of keyword generation correspondence, described access message being linked into described wechat public's account service end.Described matching module includes resolution unit and matching unit, and described resolution unit is used for receiving and parsing through described access message, generates analysis result;Described matching unit is used for according to keyword match table in the data base of described wechat public's account service end, described analysis result is mated, generates the specified services object that described keyword is corresponding.The type of described specified services object includes any one or multiple combination of text object, graphics context, linked object, interface object and flow object.
Technical scheme adopts java program to write, and the execution efficiency of code and reliability are all higher, and the portability of program is good;The present invention configures process simple and flexible simultaneously, it is possible to generate different types of specified services object according to user key words, not only maintainable good, and can meet the different needs of user.
Although above it has been shown and described that embodiments of the invention, it is understandable that, above-described embodiment is illustrative of, it is impossible to be interpreted as limitation of the present invention, and above-described embodiment can be changed, revises, replace and modification by those of ordinary skill in the art within the scope of the invention.
Claims (10)
1. the service method for packing for the exploitation of wechat public's account, it is characterised in that comprise the following steps:
Step 1, user is by client transmission keyword to wechat public's account service end;
Step 2, is used for the operation flow of designated program processing sequence in the configuration of wechat public's account service end;
Step 3, wechat public's account service end utilizes jave reflex mechanism that described keyword is carried out object matching, generates the specified services object that described keyword is corresponding;
Step 4, by described specified services object according to described operation flow, returns to client through wechat server unifying message format.
2. according to claim 1 for the wechat public's account exploitation service method for packing, it is characterised in that described step 1 particularly as follows:
User is by client transmission keyword to wechat server;
Wechat server generates corresponding access message according to described keyword, and described access message is linked into described wechat public's account service end.
3. according to claim 1 for the wechat public's account exploitation service method for packing, it is characterised in that described step 3 particularly as follows:
Wechat public's account service end receives and parses through described access message, generates analysis result;
According to keyword match table in the data base of described wechat public's account service end, described analysis result is mated, generates the specified services object that described keyword is corresponding.
4. according to the arbitrary described service method for packing for the exploitation of wechat public's account of claims 1 to 3, it is characterised in that in step 3, the pattern carrying out object matching includes text, regular expression or SQL statement.
5. the service method for packing for the exploitation of wechat public's account according to claim 4, it is characterized in that, in step 3, it is intended that the type of business object includes any one or multiple combination of text object, graphics context, linked object, interface object and flow object.
6. the service method for packing for the exploitation of wechat public's account according to claim 5, it is characterized in that, in step 3, described keyword match table is text object allocation list, generate the text object of consolidation form according to text object allocation list, described text object allocation list includes returning an object value ID, content of text, content of text type and service end wechat ID;
Or described keyword match table is graphics context allocation list, generate the graphics context of consolidation form according to graphics context allocation list, described graphics context allocation list includes returning an object value ID, picture and text exercise question, picture and text description, image link, URL link, server wechat end ID and graph-text content type;
Or described keyword match table is interface object allocation list, generate the interface object of consolidation form according to interface object allocation list, described interface object allocation list includes returning an object value ID, interface name, interface IP address, interface port, interface method, interface incoming message form, interface outgoing message form and interface type.
7. the service package system for the exploitation of wechat public's account, it is characterised in that include client and wechat public's account service end, described wechat public's account service end includes configuration module, matching module and message and returns module,
Described client sends keyword to wechat public's account service end for user;
Described configuration module for being used for the operation flow of designated program processing sequence in the configuration of wechat public's account service end;
Described matching module utilizes jave reflex mechanism that described keyword is carried out object matching for wechat public's account service end, generates the specified services object that described keyword is corresponding;
Described message return module for by described specified services object according to described operation flow, return to client through wechat server unifying message format.
8. the service package system for the exploitation of wechat public's account according to claim 7, it is characterized in that, also include wechat server, described wechat server is used for receiving the keyword that client sends, and according to after the access message of keyword generation correspondence, described access message being linked into described wechat public's account service end.
9. the service package system for the exploitation of wechat public's account according to claim 7, it is characterised in that described matching module includes resolution unit and matching unit, and described resolution unit is used for receiving and parsing through described access message, generates analysis result;Described matching unit is used for according to keyword match table in the data base of described wechat public's account service end, described analysis result is mated, generates the specified services object that described keyword is corresponding.
10. according to the arbitrary described service package system for the exploitation of wechat public's account of claim 7~9, it is characterized in that, it is intended that the type of business object includes any one or multiple combination of text object, graphics context, linked object, interface object and flow object.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610289118.XA CN105763430A (en) | 2016-05-04 | 2016-05-04 | Service encapsulation method and system for WeChat public account development |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610289118.XA CN105763430A (en) | 2016-05-04 | 2016-05-04 | Service encapsulation method and system for WeChat public account development |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105763430A true CN105763430A (en) | 2016-07-13 |
Family
ID=56323277
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610289118.XA Pending CN105763430A (en) | 2016-05-04 | 2016-05-04 | Service encapsulation method and system for WeChat public account development |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105763430A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107360240A (en) * | 2017-07-20 | 2017-11-17 | 广东小天才科技有限公司 | A kind of data-updating method and system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103647696A (en) * | 2013-11-13 | 2014-03-19 | 天脉聚源(北京)传媒科技有限公司 | Message reply method and system under micro message development mode |
CN104378282A (en) * | 2013-12-25 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Information sending method and information forwarding method, device and system |
CN104834442A (en) * | 2015-03-05 | 2015-08-12 | 广州鑫界数字科技有限公司 | Information editing method and system based on wechat development mode |
US20150281138A1 (en) * | 2013-07-19 | 2015-10-01 | Tencent Technology (Shenzhen) Company Limited | Keyword based automatic reply generation in a messaging application |
CN104965868A (en) * | 2015-06-09 | 2015-10-07 | 广西中烟工业有限责任公司 | Data inquiring and analyzing system and method based on WeChat public platform |
CN105450501A (en) * | 2014-09-01 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Method and apparatus for setting customized reply function |
CN105471708A (en) * | 2015-11-19 | 2016-04-06 | 上海斐讯数据通信技术有限公司 | Information processing method |
CN105515941A (en) * | 2015-11-25 | 2016-04-20 | 郑州威尔克科技股份有限公司 | Message and event replying method and system in wechat development mode |
-
2016
- 2016-05-04 CN CN201610289118.XA patent/CN105763430A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150281138A1 (en) * | 2013-07-19 | 2015-10-01 | Tencent Technology (Shenzhen) Company Limited | Keyword based automatic reply generation in a messaging application |
CN103647696A (en) * | 2013-11-13 | 2014-03-19 | 天脉聚源(北京)传媒科技有限公司 | Message reply method and system under micro message development mode |
CN104378282A (en) * | 2013-12-25 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Information sending method and information forwarding method, device and system |
CN105450501A (en) * | 2014-09-01 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Method and apparatus for setting customized reply function |
CN104834442A (en) * | 2015-03-05 | 2015-08-12 | 广州鑫界数字科技有限公司 | Information editing method and system based on wechat development mode |
CN104965868A (en) * | 2015-06-09 | 2015-10-07 | 广西中烟工业有限责任公司 | Data inquiring and analyzing system and method based on WeChat public platform |
CN105471708A (en) * | 2015-11-19 | 2016-04-06 | 上海斐讯数据通信技术有限公司 | Information processing method |
CN105515941A (en) * | 2015-11-25 | 2016-04-20 | 郑州威尔克科技股份有限公司 | Message and event replying method and system in wechat development mode |
Non-Patent Citations (1)
Title |
---|
贺建英等: "基于微信公众平台和OpenAPI的微校城平台构建与实现", 《现代电子技术》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107360240A (en) * | 2017-07-20 | 2017-11-17 | 广东小天才科技有限公司 | A kind of data-updating method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102185864B1 (en) | Server-side rendering method and system of native content for presentation | |
US9654586B2 (en) | Resource server providing a rapidly changing resource | |
CN100428241C (en) | System and method for defining and translating chat abbreviations | |
JP6097214B2 (en) | Starting a font subset | |
KR100490734B1 (en) | Annotation-based automatic document generation apparatus and method | |
CN104618488B (en) | A kind of information processing method, client and server | |
CN104541262B (en) | System and method for being adapted in the transparent network of Rich Internet application | |
CN108337236A (en) | A kind of gRPC call methods and device based on Protobuf and HTTP/1.1 | |
CN103248677B (en) | The Internet behavioural analysis system and method for work thereof | |
CN105637478A (en) | Computer-aided development of native mobile application code | |
JP2006501558A (en) | Apparatus and method for displaying a web page session for a web application to a user | |
CA2539474A1 (en) | System and method for dynamic generation and customization of web service client applications for terminals | |
CN102664909A (en) | Re-establishing push notification channels via user identifiers | |
CN102713904A (en) | Method and apparatus for utilizing a scalable data structure | |
CN104022940A (en) | Information processing method, device and system based on instant messaging (IM) | |
CN111176627A (en) | Device and method for separating front end from back end based on micro-service | |
CN103631829A (en) | Method and device for responding to webpage access request | |
US20140244646A1 (en) | Processing webpage data | |
CN106156262A (en) | A kind of search information processing method and system | |
CN112181393B (en) | Front-end and back-end code generation method and device, computer equipment and storage medium | |
CN105763430A (en) | Service encapsulation method and system for WeChat public account development | |
JP2007323336A (en) | Advertisement delivery system, advertisement delivery server, terminal device and advertisement delivery method | |
CN104239452A (en) | Method and device for resource acquisition | |
CN104915347A (en) | Processing method, apparatus and system for web address | |
CN102779064A (en) | Method and server for providing application calling |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160713 |