Just for my convenience , can you please provide me official magisk 23.zip ? Really thanks!
Magisk is no more released as zip but as apk. Go to the official Magisk site on Github:
https://github.com/topjohnwu/Magisk
Scroll to Downloads, spot Magisk v23, click to open v23 page, scroll down past the Bug Fixes, click on Assets and downliad Magisk-v23.0.apk
Go back to Magisk main page and read Installation Instructions, how to install Magisk with that apk.
For Xiaomi devices you have to patch boot.img !!!!!!!, not recovery.img although Magisk displays Ramdisk No (there is a note about that in the Installation Instructions, although, IMO, it should be better and more visible/clear explained there)
If you still really need Magisk zip file, just rename the apk file to zip.
That is also explained in Installation Instructions, scroll to Custom Recovery section and read
Similarly, if you rename Magisk.apk to
uninstall.zip, it will serve as the zip file for uninstalling Magisk through TWRP - find yourself where is that explained in Installation Instructions.
However, if/when you need to uninstall Magisk, better use the Uninstall option from Magisk apk