weixin | go实现用于微信公众平台,美食应用的搭建,包括数据存储和查询 | Chat library
kandi X-RAY | weixin Summary
kandi X-RAY | weixin Summary
go实现用于微信公众平台,美食应用的搭建,包括数据存储和查询
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of weixin
weixin Key Features
weixin Examples and Code Snippets
Community Discussions
Trending Discussions on weixin
QUESTION
I have this code
...ANSWER
Answered 2020-Oct-26 at 08:56Without -k
(or the long version --insecure
), curl makes sure that the host you connect to (specified in the URL) is also correctly mentioned in the certificate provided by the server when it connects to it, as part of the TLS handshake. The check is done to make sure that it speaks to the legitimate machine.
The server certificate contains a list of host names (or wildcards) that curl checks if they match the host name in the URL.
When you specify an IP address in the URL, curl can only use that to compare against the names in the certificate. A server can still list specific IP addresses (https://1.1.1.1
is for example known to) but is very rare and rather exceptional.
Instead of using the IP address in the command line, use --resolve
to use the right host name and make sure curl connects to the exact IP address of your choice.
Using -k
completely disables curl's certificate check and you may then be subject for a MITM attack without being able to detect that.
QUESTION
I would like to implement a web application for a company in China. I need to use WeChat mini-APP
to make the sign-up/login straight-forward.
Please correct my assumptions if I am wrong:
- To implement the login of the website from
WeChat
, I need to use theOAuth2
protocol - I also need to create a
WeChat developer account
under a real name (need ID card or business registration stuff) if I want to diffuse the application - I also need to register a
domain name
toWeChat
so that they can allowOAuth2 authentication
to this domain name
Question: can I still use my localhost virtual machine
to develop my server?
(I didn't try but I assume WeChat will reject to create an OAuth2 token
for localhost 127.0.0.1
)
Or do I need to have a development domain name with a development server available from the Internet so that I can debug the OAuth2 authentication?
EDIT 1: I tried to send a HTTPS POST request https://127.0.0.1:8080
and I got an error linking to this URL
https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html
EDIT 2: I tried to send a HTTPS POST request https://192.168.1.148:8080
which correspond to my dev computer and I got the error VM17415:1 Cannot send network request to localhost.
(My test phone and computer both connected to network 192.168.1.x trough WiFi)
ANSWER
Answered 2020-Sep-24 at 03:04The documentation is available in English on the official WebSite [1]. It is written: network APIs allow communication with LAN IP addresses
. So basically, if the phone is connected to the same network as the virtual machine (i.e. WiFi), one should be able to send any kind of HTTP/HTTPS request properly.
Note that the development environment WeChat DevTools block this feature by default. In order to enable it, the user should open the Project Settings
and check the box
'Does not verify valid domain names, web-view (business domain names), TLS versions and HTTPS certificates.'.
[1] https://developers.weixin.qq.com/miniprogram/en/dev/framework/ability/network.html
QUESTION
I am trying to follow the WeChat Official Account tutorial to build an app.
In the step of
1.4 Basic Configuration for Developers
- After the restart is successful (python main.py 80), click the Submit button. If the prompt "token verification failed" appears, check the code or network link. If the token is successfully verified, you will be redirected back to the Basic Configuration page. Click Start.
However, based on the tutorial, there is no submit button related code. I cannot find the submit button.
When I open the pages through WeChat Official Account in the app WeChat, it just shows "hello, this is handle view".
Any guide? Thanks
main.py
...ANSWER
Answered 2020-Mar-17 at 07:21I figured out the submit button here in the tutorial is referring the submit button at
开发 -> 基本配置 -> 服务器配置 -> 修改配置 -> URL
After you fill the URL, that submit (提交) button.
(Unfortunately, the WeChat Official Accounts settings panel only has Mandarin language not like the developer doc. But hopefully my screenshot will help locate it.)
QUESTION
so, I am trying to add a random element to my site with Font Awesome icons that change on reload. I found a helpful post, here, but I can't find a way to make the code work. I am getting the console log, but no icon is displayed. I've tried assigning my an id and having the Jquery add a random class to that, but that doesn't seem to work. Any ideas?
...ANSWER
Answered 2020-Mar-06 at 21:49Your error description is not very precise, but I assume that the problem is that you are not adding the class (string), but its index.
Try replacing
QUESTION
For example, I want to take a screenshot of this, but I'm only getting the following screenshot with the embedded code. What should I do?
...ANSWER
Answered 2020-Feb-02 at 21:44This website is using lazy loading for images. Usually, it works by checking which images are in the viewport. It does it once on page load, and then on scroll.
So part of the solution would be to do this after you set the viewport :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install weixin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page