In TP51 return ['status'=>$status,'message'=>$message] will report an error
Add json() and it will still be wrong
https://www.php.cn/course/1073.html
Don’t you return data?
What error was reported? There is nothing wrong just by looking at the codes you sent
Don’t you return data?
What error was reported? There is nothing wrong just by looking at the codes you sent