content(),true); if(isset($return['code'])){ $path = $request->path(); $type = 0; if($path == "api/materialAddU8"){ $type = RecordTable::type_one; }elseif ($path == "api/productInAddU8"){ $type = RecordTable::type_two; }elseif ($path == ""){ $type = RecordTable::type_three; } RecordTable::insert([ 'msg' => $return['msg'] ?? "", 'data' => json_encode($request->all()), 'crt_time' => time(), 'type' => $type, ]); } } }