WeChat development learning diary (5): bugs in the weiphp open source framework, public account permission editing issues

WBOY
Release: 2016-08-08 09:26:06
Original
1186 people have browsed it
I’ve been studying Weiphp recently, and overall I feel it’s pretty good. It’s said that there are quite a lot of bugs. No, I encountered one that seriously affected my use. It seems unlikely that such a serious bug should occur. Weiphp’s WeChat official account level, permission increase and bug editing, I can’t see the permission list, I can only see two incorrect plug-in names, “Good People” and “Environment”. [System BUG] User permissions cannot be displayed properly Problem description: User->Public Account Level->Edit Two plug-ins, Good People and Environment, appear Solution: Add a new public account in the background Level error Address http://****.com/Admin/PublicGroup/add/model/13.html The corresponding plug-in is not listed Reason: The upgrade modified the get_model_attribute( in ApplicationCommonCommonfunction.php ) function) caused the array subscript name to change. The content that could be obtained through $fields [1] [1] could no longer be obtained. The problem was solved after using $fields [1] ['addon_status'] instead. , Replace $fields [1] [1] with $fields [1] ['addon_status'] in ApplicationAdminControllerPublicGroupController.class.php. Note: This problem exists for additions and modifications. When editing, another problem is that the selected plug-in is "not selected". Solution: //$data ['addon_status'] = array_diff ( $fields [1] [1] ['value'], $data ['addon_status'] ); $data [ 'addon_status'] = array_diff ( $fields [1] ['addon_status'] ['value'], $data ['addon_status'] ); -------------- ----Please ignore the following--------------- The second one: [System BUG] There is a problem with the background management settings authorization plug-in (it seems to be the same as the first one) A problem, this code will not be changed) Problem description: =/admin/PublicLink/lists/mp_id/107.html Operation: Backstage Management-> Official Account Management-> Administrator Configuration- >Edit authorized plug-ins->Confirm Position: [Relationship between official account and administrator] List Problem: Authorized plug-ins are reset to empty and can no longer be edited ) It happened once, reinstalled it, and I didn’t dare to try it a second time Solution: I have also encountered this problem and have reported it to the official. ApplicationCommonCommonfunction.php file has a problem with obtaining attribute information and caching the get_model_attribute function. This function works fine with version 2.0 in August. In version 12.2, line 1024 of the get_model_attribute function should be modified to: $value [$val] = $attr [$val]; to: $value [$key] = $attr [$val ]; More issues are still being studied. Jiutianniao Q&A: http://ask.jiutianniao.com Wuhan Jiutianniao: Mobile Internet system developer

The above introduces the WeChat development learning diary (5): bugs in the weiphp open source framework, public account permission editing issues, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!