Your usage is a bit strange. The constructor itself is to enrich the class attributes, to be precise, the object attributes. The constructor returns an object by default. If you customize the return 555, it will report an error. This is not tp6 problem.
replyIn this case, I want to verify the token in the constructor. If the token expires, I will return the msg of re-logging in or re-obtaining it. Does this mean that the verification cannot be placed in the constructor?
Your usage is a bit strange. The constructor itself is to enrich the class attributes, to be precise, the object attributes. The constructor returns an object by default. If you customize the return 555, it will report an error. This is not tp6 problem.