In the first case, for utility models and designs, publication means authorization, which means that the patent certificate will be sent on the day of publication (after receiving the authorization notice and paying the registration fee).
In the second case, for the invention patent, publication is only the publication of the text, which can only show that it has passed the formal examination, and there is still a long time before authorization, because it takes the longest time in the substantive examination procedure, and such publication has nothing to do with authorization. Whether it can be authorized depends on the results of substantive examination. If there is a prospect of authorization, it will not be authorized until 1-2 years after publication.