首页
开发手册
应用中心
工具
用户中心
FoundPHP Official Account Development Model
FoundPHP 公众号开发模式
English
中文简体
English
上一篇
下一篇
### FoundPHP Official Account Development Model ####一. The official account opens the development mode 1. get WeChat official account information log in to WeChat Official Account,enter development->basic configuration menu ![](data/files/edit/21/01/29/210129_16344275.png) obtain the APPID and developer secret (AppSecret) according to the prompts, and set the IP whitelist ![](data/files/edit/21/01/29/210129_16368198.png)
Note: IP whitelist must be configured
2.program configuration file ```php $config['wx']['appid'] = ''; //WeChatAPPID $config['wx']['secret'] = ''; //WeChat key secret $config['wx']['dev'] Save the avatar= 1; //open developer mode 1, close developer mode 0 $config['wx']['dev_token'] = 'FoundPHP'; //development verification information $config['wx']['dev_asekey'] = ''; //encryption key in development mode $config['wx']['face_save'] = 1; //whether to save the avatar $config['wx']['face_dir'] = 'data/avatars/wechat/'; //save the avatar ``` 3. open developer mode After configuring the IP whitelist and developer A secret key, slide down the page to see the server configuration module, click modify configuration to configure the development server information ![](data/files/edit/21/01/30/210130_14144751.png) *** The server address (URL) is the auth.php file in the root directory of the FoundPHP framework,E.g:https://www.foundphp.com/auth.php Token is the $config['wx']['dev_token'] parameter in the configuration file Message encryption and decryption key (EncodingAESKey) Configure the generated secret key into the $config['wx']['dev_asekey'] parameter Message encryption and decryption method Recommended security mode ![](data/files/edit/21/01/30/210130_14462764.png) *** Message encryption and decryption method Recommended security mode ![](data/files/edit/21/01/30/210130_14542347.png)