try {
$param = $request->all();
$param['building_id'] = 0;
$param['sync'] = 2; // 1小程序2App
$param['user_id'] = $receiveUser->id ?? 0;
$follow = FollowTool::follow($param);
if ($follow['status'] != 200) {
empty($follow['msg']) ? $msg = "未知错误 follow" : $msg = $follow['msg'] . ' follow';
return response()->json(['status' => 404, 'msg' => $msg]);
}
} catch (\Exception $e) {
$msg = [
'file_path' => $e->getFile(),
'file_line' => $e->getLine(),
'message' => $e->getMessage() . ' follow',
];
return response()->json(['status' => 404, 'msg' => '捕获异常错误', 'data' => $msg]);
}
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/112415.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...