The value of the ID in the temporary QR code development scenario of WeChat official account

Source: Internet
Author: User
The official document shows that the scenario ID is a 32-bit non-0 integer. I used $ scene_idtime (). $ ID in the Development id value; as the scenario value, this value is far from a 32-bit integer. However, the qrscene_xxxxx and xxxxx values are accepted after scanning the QR code. I do not know how... the official documentation shows that the scenario ID is a 32-bit non-0 integer. I used the development ID value
$ Scene_id = time (). $ id; // as the scene value, the value is far from a 32-bit integer.

However, the qrscene_xxxxx and xxxxx values are accepted after scanning the QR code. I don't know how.
If I change the scenario value ID to a smaller number

$ Scene_id = $ id;

The accepted xxxxx value is correct.

Confused. I don't know who used the scenario ID.

Reply content:

The official document shows that the scenario ID is a 32-bit non-0 integer. I used the development ID value
$ Scene_id = time (). $ id; // as the scene value, the value is far from a 32-bit integer.

However, the qrscene_xxxxx and xxxxx values are accepted after scanning the QR code. I don't know how.
If I change the scenario value ID to a smaller number

$ Scene_id = $ id;

The accepted xxxxx value is correct.

Confused. I don't know who used the scenario ID.

Permanent scenario ID: less than 100000,
Temporary scenario ID: 32-bit integer that does not contain 0, 32-bit indicates binary, not decimal, maximum value: 4294967296

Permanent or temporary?

The permanent number is far less than 32 bits.

That's why I'm depressed. It seems that the ID value cannot reach a 32-bit integer.

I tested using a mobile phone number as a temporary ID and found that the obtained value is always different. In fact, the temporary ID is far less than 32 characters. If I remember correctly, it would probably be no more than 9 characters? I do not remember. You can use 10000000000 or 900000000, which is not an integer.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.