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~
Installation method
-
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.
-
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 -
Import Project Use WeChat developer tools to import projects. When importing, modify the AppId to your own.
-
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