This problem is not big, but in order to prevent myself from forgetting, I will record it here
Use the json_encode function when returning json
If you don't want to return the Unicode code, just write JSON_UNESCAPED_UNICODE in the second parameter of this function.
例:return json_encode($data, JSON_UNESCAPED_UNICODE);