Pineapple Pavilion ZBLOGCN .COM

Official Z-Blog Blog

Z-BlogPHP WeChat applet "zblog wxa" was released. Welcome to Try~ 😍

 wxa-bg.png

The update to version 1.7 of Z-BlogPHP includes API functions, which makes it more convenient to use Z-BlogPHP as a back-end development client. Following the release of @ Orange Sunshine's "os2020" SPA theme, developer @ jaeheng developed a simple applet - "zblogphp wxa" based on ZBP's own API, which enables webmasters to quickly build simple WeChat applets without additional plug-in installation, and also gives an example to more developers who want to use the API feature to develop applets. Let's have a look~

This client is a WeChat applet client, and its interface depends on the PHP version of Z-Blog blog program. The Z Log version during development is: 1.7.0.2955 (Tenet);

If the version is too high or too low, the interface definition may be inconsistent, resulting in failure of normal use. You can test it by yourself. It is better to leave a message below this article for others' reference.

 202107231627009743563635.jpg


Code hosting address: https://github.com/jaeheng/zblogphp-wxa

Installation method

  1. preparation

    The Z Log applet client relies on the Z Log API interface, so this function needs to be enabled first. Background ->Website Settings ->API Settings , open the Enable API protocol switch and submit it.

     20210723185407_59486.png

  2. Download code

    The code is hosted in Github, and you can download zip directly. It is recommended to use Git to clone the project directly:

     git clone  https://github.com/jaeheng/zblogphp-wxa.git
  3. Import Project

    Use WeChat developer tools to import projects. When importing, modify the AppId to your own.

     20210723185408_51846.png

  4. Modify interface domain name configuration

    In the config.js file of the root directory, change it to the domain name of your own website (you need to open the API function). Other page configuration json files can be modified by yourself, such as the page title


After completing the above steps, secondary development or testing can be carried out.

Powered By Z-BlogPHP 1.7.3

ZBLOGCN. COM All rights reserved E ICP B No. 19031813 - 6 Shoot the clouds again Provide CDN and cloud storage services

It is strictly prohibited to use Z-BLOG to engage in any illegal activities, and illegal websites are prohibited to use Z-BLOG and related procedures| Illegal and Bad Information Reporting Center