How to customize the description of the thinkphp project, thinkphp Project
This article describes how to obtain the sharing interface permission, set a secure domain name, modify the sharing title, modify the sharing description, modify the sharing image, and customize the sharing content in the thinkphp framework.
EXAMPLE After modification: http://games.zixuephp.cn
The following figure shows how to modify the sharing title, description, image sharing, and effect without modification:
Share without modification: the share content is the url path of the shared page.
You have modified the effect of shared content, for example, shared content customized for yourself.
1. Prerequisites: The authenticated public account.
2. In the public account management background, click public account settings to go to function settings, select the JS interface security domain name, and download the txt format authentication file to the website root directory, go back to the public account background management page, confirm the authentication, fill in the domain name of the Shared site, and save it.
3. Download The jssdk interface file package. : Link: http://pan.baidu.com/s/1eStCSXc password: 1p8k
4. Configure the jssdk interface package to the thinkphp extension directory, that is, to the thinkphp/Extend/Vendor/directory.
5. Obtain the appid and appsecret of the public account from the public account background, and configure them to the thinkphp configuration file.
6. Define the initialization function in the common. php file of thinkphp: (the parameters in this case should be obtained from the configuration file)
7. Define the shared content in the class file that needs to be used to customize the shared content, and then pass it to the template page:
Specifically, it is a custom title, brief is a custom share description, picture is a custom share image path, and a link to the custom share content after it is clicked.
8. Introduce the js file and use the configuration parameters on the page:
The above section describes how to customize the thinkphp project shared description. I hope it will be helpful to you. If you have any questions, please leave a message and I will reply to you in a timely manner. Thank you very much for your support for the help House website!