# Business configuration

The WeChat gateway supports Weixin Mini Program, WEB, APP and other types of business access, each business is assigned a gateway domain by default, and traffic is forwarded uniformly from the gateway domain to the service backend source.After accessing the WeChat gateway, all requests go through the private WeChat link, and the encrypted request is twice encapsulated in both directions. Data and interfaces are protected by the WeChat gateway, and the automatic near access, intelligent routing, dynamic routing, and preferential return capabilities of the WeChat network can significantly improve the success rate and request speed of small business requests.

# I. Weixin Mini Program Business

After the first access to the WeChat gateway, the access to the Weixin Mini Program information will be displayed in the service configuration, if you want to add more than one, you can click the "Add" button to add. The current addition method is a key access mode, the following capabilities are only applicable to a key access mode, manual access mode, please refer to Mini Program manual access

# 1. Access switch

Used to control whether the current Weixin Mini Program access to use WeChat gateway;

If closed, the Weixin Mini Program related request will no longer go WeChat gateway link, effective within 1 min, the ability and "one key disconnect" the same;

If turned on, the subsequent Weixin Mini Program request will go through the WeChat gateway link, protected by the WeChat gateway, and is expected to be more than 90% grey within 24h (the reason for not being 100% grey is that the one-click access method does not support low-base library versions and PC Mini Programs)

# 2. Access version

Supports access to all versions, online versions, experience versions, and development versions

  • All versions: Weixin Mini Program online version, experience version, development version are connected to use WeChat gateway protected by WeChat private link;After the test is no problem, recommends access to all versions , keep all versions access to the same version, to facilitate the subsequent investigation of problems.
  • On-line version: that is, only connect the Weixin Mini Program online version to use the WeChat gateway protected by WeChat private link; is not recommended , such as problems on the line, because the experience version, the development version is not connected to the WeChat gateway, can not quickly investigate the problem
  • Experience version: that is, only the Weixin Mini Program experience version access to use the WeChat gateway, only for the early access test use
  • Development version: that is, only use the Weixin Mini Program development version to access the WeChat gateway, only for early access test use

# 3. Weixin Mini Program URL

Support service according to Weixin Mini Program URL granularity access, the Mini Program domain name filled in for the Mini Program in WeChat public platform configuration request legal domain name

  • All: That is, by default, all request valid domain names configured by Weixin Mini Program are accessed by WeChat gateway
  • Preprefix: Supports adding more than one path under the same domain name. By default, the path is matched by prefix when the path is empty

# 4. Access Mode

Supports two access modes such as full capacity access and greyness proportional to traffic

  • Full access: 100% traffic access is supported for any access version, i.e. all traffic from the above-mentioned Weixin Mini Program URL will enter the WeChat gateway and be forwarded uniformly by the WeChat gateway to the service source domain.
  • Greying by volume: Greying by users is only valid for the Weixin Mini Program online version, i.e. when you select the access version as "all version," "online version," you can select the traffic-ratio graying capability;When the access version selects "All Versions," the greyscale ratio only applies to the online version

# 5. Grayness ratio

The greyscale ratio only applies to the online version, and both the development and the experience versions are fully accessible. The proportional value of ash degree, which may be inaccurate in the actual ash determination process; When graying is applied, when a user hits the graying rule, subsequent re-use of the business is still grayed.

# II. WEB BUSINESS

Supports standalone WEB services, WEBview services in Weixin Mini Program, H5 services in [[TS-1]], etc. The WEB services need to be separately connected to the WEB SDK of the WeChat gateway, and the code needs to be modified after the redistribution is effective.

Specific access steps, refer to WEB & H5 Using WeChat gateway

WEB business access is WeChat WeChat Gateway advanced value-added capabilities. Currently, a Basic version (specification: 500QPS * 10Mbps) and above gateway packages can be configured in the console, and the capability is not supported below the Basic version packages.

# III. APP Business

To support app business access using WeChat WeChat Gateway, the capability is currently in a testing phase. You can go to the WeChat Network Console - Technical Support , scan the QR code to join the WeChat gateway technology group and contact administrators to request.

APP business access is WeChat WeChat Gateway Advanced Value Added capability. Currently, a standard version (specification: 1000QPS * 20Mbps) and above gateway packages can be configured in the console, and the capability is not supported under standard packages.