微信开发学习日记(6):weiphp框架
微信开发学习日记(六):weiphp框架
最近重点在看weiphp这个开源的第三方微信公众平台框架。
在网上找微信资料,找到了这个。很早之前,就初步学习了Thinkphp和Onethink2个开源框架,当看到weiphp是用这2个框架开发的时候,我就更愿意去学习,毕竟学习成本很低了。
weiphp,目前开源版本,感觉没有重点维护了,bug不少。遇到bug,去官方论坛找找答案,很多热心网友都分享了解决办法。
但是,开源版本还是很不错的。搭建了微信平台,并且有很多现成的插件,文档还是有的。
------------------------
重点说几句微信相关的。
weiphp重点解决的还是微信相关的平台建设问题。
大致研究了下,发现它是对Thinkphp和Onethink的插件机制进行了部分改造,把微信的事件和消息进行了封装。
每当有一个事件的时候,就从所有插件里,寻找合适的,然后进行响应。
插件机制,是以Thinkphp和Onethink的插件为基础的。
插件机制,我有点失望的是,怎么都是 根据关键词进行消息分发的。
--------------------------------
今天,参照别人的例子,又写了一个HelloWorld的插件。只能说是照葫芦画瓢。
总的来说,截止到目前,插件机制还是一知半解。
很想找到一个比weiphp更牛逼的而且是开源的平台,感觉比较难啊。
现在,非常不想从头开发,太费时间了。
付出太多,没有现金回报,鸭梨还是比较大的。
--------------------------------
顺便,再总结一个问题,今天让我很郁闷的问题。
97.微信菜单没有刷新。
a.取消关注,再次关注。
b.等待,有的时候,菜单怎么弄,也没有及时刷新。只能耐心等待了。
通过微信调试工具,去获得微信菜单,才发现菜单已经修改成功了。
但是,通过微信公众号关注获得的菜单,却不是最新的。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Screen brightness is an integral part of using modern computing devices, especially when you look at the screen for long periods of time. It helps you reduce eye strain, improve legibility, and view content easily and efficiently. However, depending on your settings, it can sometimes be difficult to manage brightness, especially on Windows 11 with the new UI changes. If you're having trouble adjusting brightness, here are all the ways to manage brightness on Windows 11. How to Change Brightness on Windows 11 [10 Ways Explained] Single monitor users can use the following methods to adjust brightness on Windows 11. This includes desktop systems using a single monitor as well as laptops. let's start. Method 1: Use the Action Center The Action Center is accessible

In iOS 17, Apple introduced several new privacy and security features to its mobile operating system, one of which is the ability to require two-step authentication for private browsing tabs in Safari. Here's how it works and how to turn it off. On an iPhone or iPad running iOS 17 or iPadOS 17, Apple's browser now requires Face ID/Touch ID authentication or a passcode if you have any Private Browsing tab open in Safari and then exit the session or app to access them again. In other words, if someone gets their hands on your iPhone or iPad while it's unlocked, they still won't be able to view your privacy without knowing your passcode

The famous activation script MAS2.2 version supports digital activation again. The method originated from @asdcorp and the team. The MAS author calls it HWID2. Download gatherosstate.exe (not original, modified) from https://github.com/massgravel/Microsoft-Activation-Scripts, run it with parameters, and generate GenuineTicket.xml. First take a look at the original method: gatherosstate.exePfn=xxxxxxx;DownlevelGenuineState=1 and then compare with the latest method: gatheros

To run the ThinkPHP project, you need to: install Composer; use Composer to create the project; enter the project directory and execute php bin/console serve; visit http://localhost:8000 to view the welcome page.

ThinkPHP has multiple versions designed for different PHP versions. Major versions include 3.2, 5.0, 5.1, and 6.0, while minor versions are used to fix bugs and provide new features. The latest stable version is ThinkPHP 6.0.16. When choosing a version, consider the PHP version, feature requirements, and community support. It is recommended to use the latest stable version for best performance and support.

Steps to run ThinkPHP Framework locally: Download and unzip ThinkPHP Framework to a local directory. Create a virtual host (optional) pointing to the ThinkPHP root directory. Configure database connection parameters. Start the web server. Initialize the ThinkPHP application. Access the ThinkPHP application URL and run it.

Performance comparison of Laravel and ThinkPHP frameworks: ThinkPHP generally performs better than Laravel, focusing on optimization and caching. Laravel performs well, but for complex applications, ThinkPHP may be a better fit.

ThinkPHP installation steps: Prepare PHP, Composer, and MySQL environments. Create projects using Composer. Install the ThinkPHP framework and dependencies. Configure database connection. Generate application code. Launch the application and visit http://localhost:8000.
