What is the bug or the crash?
Tianditu can be added to WMS/WTMS with tk in url parameter:http://t0.tianditu.gov.cn/img_w/wmts?request=GetCapabilities&service=wmts&tk={your tk}.

But cannot be displayed and got some errors when getting tiles. I found there is no tk parameter in get tile url.
In ArcMap, the Tianditu Map can be displayed by setting parameter in:

How to set parameters in QGIS?
Steps to reproduce the issue
- add WMS/WTMS with tk in url parameter: http://t0.tianditu.gov.cn/img_w/wmts?request=GetCapabilities&service=wmts&tk={your tk}.
- success added
- double click and add to layer
- cannot display map and get error logs about failing to get tiles
Versions
3.38.2
Supported QGIS version
New profile
Additional context
No response
What is the bug or the crash?
Tianditu can be added to WMS/WTMS with tk in url parameter:http://t0.tianditu.gov.cn/img_w/wmts?request=GetCapabilities&service=wmts&tk={your tk}.

But cannot be displayed and got some errors when getting tiles. I found there is no tk parameter in get tile url.
In ArcMap, the Tianditu Map can be displayed by setting parameter in:

How to set parameters in QGIS?
Steps to reproduce the issue
Versions
3.38.2
Supported QGIS version
New profile
Additional context
No response